
Don't forget:
- Make a Chuck Norris reference
Here's some that I a lot...
Visual *block* mode
Instead of just regular visual mode 'v', you can use CTRL-v for visual block mode. I tend to use this as a quick way to comment out lines. type [0] for beginning of line, then [CTRL-v], arrow down, [Shift-i], [#], then [Esc] and it will stick a # at the beginning of the every line in the visual block. But one of the nice things is that you don't have to be at the beginning of a line. You can indent everything after column 40, for example, across your selected lines and it will move everything after your visual block. It's also very handle for visually selecting a single column of text in a file and then using the [x] to delete it.
<< and >>
In normal mode, hitting the key [>] twice will indent the whole current line (or visually selected area) to the next tabstop.
[v][i][p]
This visually selects the current paragraph in its entirety (a paragraph being lines of text separated by a blank line). One that I type all the time is [v][i][p][=] because I have my "equalprog" value set to perltidy and this reformats my current block of code. I just prefer not to run perltidy across a whole file of my code at once. I also use this one a lot with shell commands like !sort.
And a couple for your ~/.vimrc:
map zz za
I use folds a lot and I just find it more convenient to hit zz to open/close the current fold.
nmap
If you use split windows a lot, this let's you just hit the Tab key while in normal mode to switch through regions.
Geez, I just noticed my ~/.vimrc file is up to 29K...
Filed under: Peripherals
While we're still not sure whether refilling those empty ink cartridges is indeed a criminal act (or a waste of money), Epson has taken one more step towards forcing the average consumer to purchase name-brand carts at sky-high prices. Of course, Epson would have you believe that it's simply protecting its patents, but in a recent preliminary ruling that deemed some 24 suppliers that "import and sell Epson-compatible cartridges" as in the wrong, it could spell higher prices and less choices for consumers with Epson printers. Nevertheless, if the final ruling (set for July 30th) follows the same path as this one, a "general exclusion order on the cartridges" would be enforced, barring any future imports of the presumably lower-cost alternatives into the States. It looks we're almost down to two choices when it comes to printing: break the law, or break the bank?Read | Permalink | Email this | Comments
BOLD MOVES: THE FUTURE OF FORD A new documentary series. Be part of the transformation as it happens in real-time
Office Depot Featured Gadget: Xbox 360 Platinum System Packs the power to bring games to life!
The Trap: What Happened to Our Dream of Freedom is a BBC documentary series by British filmmaker Adam Curtis, well known for other documentaries including The Century of the Self and The Power of Nightmares. It began airing on BBC Two on 11 March, 2007.
The FDA has just approved for military use a shunt which allows partially-severed limbs to continue to get circulation. According to the article, "For most, it won't be a matter of saving a limb outright but rather salvaging the quality of a wounded leg or arm." This is because "The tubelike device is designed to connect the two ends of a severed blood vessel, providing a temporary bridge or shunt around a wound to restore blood flow to an
The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system.