Vim Tips

Moving around

  • Jump back to previous location - ‘’ (single quote twice)
  • Jump to next/previous occurence of search (n / shift+n)
  • add at the end of line - shift+a
  • add at the beginning of line - shift+i
  • use bookmark - m<name>, ‘<name>

Selection

  • insert character at beginning of lines - ctrl+v, up/down, shift+i, character_to_insert

Delete

  • delete from the cursor to specified character - df <character>

Window

  • increase window width by N - ctrl+w+>
 
misc/vim.txt · Last modified: 2007/10/31 01:08