Posted by Arkham on October 5th, 2009

- <Ctrl>-o – Switch from insert mode to command mode for one single command.
- vim +linenumber file – Open file at line number.
- vim +/pattern file – Open file at first occurence of pattern.
- :next files – Open a list of files, each in a new buffer.
- :up[date] - Save a modified file.
- “byy + “bp – Copy a line inside named buffer “b” and paste it.
- <Ctrl>-] – Follow green links in documentation pages.
- <Ctrl>-t – Go back to the previous documentation page.
- >ap – Indent whole paragraph.
- 10dd + 2. – Delete 10 lines, repeat twice (delete 20 lines more).
- VU – Make the whole line uppercase.
- V10j + : + !sort – sort alphabetically next 10 lines.
- :!uname -a – Display system information.
- :! wc % – Display information about current file.
- :r!uname -a – Insert system information into the next line.
- gg=G – Reformat whole file.
- <Ctrl>-n – Start autocompletion.
October 5th, 2009 at 11:48
You forgot the most important one: “don’t use it”.
October 5th, 2009 at 15:05
When I need a test editor, I always use vim.
When I need an OS, I sometimes use emacs.