Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 880 Bytes

vim.md

File metadata and controls

25 lines (19 loc) · 880 Bytes

Vim cheat sheet

spliting and controlling splitted windows

  • :split filename - split window and load another file
  • CTRL+W + arrow - move to the window in direction of arrow
  • CTRL+WCTRL+W - cycle through windows
  • :vsplit - vertical split
  • CTRL+W then _ - maximaze current split window
  • CTRL+W then = - equal size for all split windows

useful tricks for writing code

  • :set autoindent - does exactly what it says
  • :set number - will show line numbers on the right of all lines
  • use the following steps to tabulate a section
    1. CTRL+V
    2. mark required area
    3. SHIFT+I
    4. press TAB (or space as needed)
    5. ESC

if ever using vim in Hebrew

  • :set rightleft - right to left