Chris Keating writes:
"Could you ask your readership if there's a vim equivalent for emacs MMM mode:
http://mmm-mode.sourceforge.net/
mmm mode basically allows you to have different syntax highlighting for different parts of your document. This is really handy when you have SQL embedded in strings, etc."
Anybody have any ideas?
Wednesday, November 11, 2009
Tuesday, November 10, 2009
Setting Options
Typing :options will allow you to set options interactively from inside of Vim. Just choose a command set to edit, and edit from there. This is a nice way to discover new settings.
Monday, November 9, 2009
Undo Levels
You can set the number of desired undo levels by issuing a :set undolevels=N ex command.
Friday, November 6, 2009
Autowrite
If you're tired of Vim asking you if you want to save the current buffer, you can :set autowrite to avoid this. Be careful if you enable this settings as it relies on your own prudence to prevent accidents from happening.
Thursday, November 5, 2009
Next and Previous Characters
Hitting "^" will take you to the first non-blank character on the current line. Hitting the Enter key will take you to the first non-blank character on the next line. Hitting "-" will take you to the first non-blank character on the previous line. All these should be executed from normal mode.
Wednesday, November 4, 2009
Beginning and End of a Buffer
Hitting "gg" in normal mode will take you to the first line of the current buffer. Hitting "G" will take you to the end of the current buffer.
Tuesday, November 3, 2009
Grab A Ruler
If you :set ruler in your vimrc, you'll retain a constant ruler at the bottom of your editing window. It contains the same statistics as provided by ctrl-g and allows valuable information to be gleaned with a quick glance.
Subscribe to:
Posts (Atom)