[Another in my series of posts on Vim]
Sometimes when you’re typing natural language text, you find yourself wanting to rephrase the sentence you’ve written so far. You could hit backspace many times to delete the characters to the left of the cursor, or you could type Ctrl-W. When you’re in Insert mode, Ctrl-W will delete from the cursor to the beginning of the previous word.
[Another in my series of posts on Vim]
If you’re a developer, you will often find yourself having to insert a line of dashes or hashes (#) or asterisks into your comments. In this post I’ll show you how to do this quickly. Memorize this because you’ll wind up doing this often. Position the cursor to the beginning of a blank like (in command mode) and enter the following:
80a#<ESC>
Wow. This cool Firefox feature has been around since 2005, but I just found out about it a few months ago! I swear I haven’t been living in a cave all this time. So if you’re like me and don’t know about this yet, listen up: In Firefox, you can bookmark a search with a keyword, and then use that keyword in your URL entry field. As this article shows, you right-click on the input field and select “Add a Keyword for this Search.” This will allow you to bookmark the search and add a keyword. I usually use two letter keywords like ‘we’ for weather.com and ‘im’ for imdb.com.
If you’re like me, you spend a lot of time jumping from project to project in a Linux shell. I find that I have to switch back and forth between directories. The bash shell has commands to maintain a stack of directories. I’ve written some functions that use these utilities to make directory navigation easier. I’ve found these functions very useful, and perhaps you will too. Let’s see them in action first with some examples, and then look at the code: