User Tools

Site Tools


snippets:vim:shortcuts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
snippets:vim:shortcuts [2015/05/27 14:40] allspark_cpsnippets:vim:shortcuts [2018/05/29 14:55] (current) allspark
Line 13: Line 13:
  * normal mode: gT  * normal mode: gT
  * :tabp  * :tabp
 +
 +# split
 +
 +```
 + :e filename      - edit another file
 + :split filename  - split window and load another file
 + ctrl-w up arrow  - move cursor up a window
 + ctrl-w ctrl-w    - move cursor to another window (cycle)
 + ctrl-w_          - maximize current window
 + ctrl-w=          - make all equal size
 + 10 ctrl-w+       - increase window size by 10 lines
 + :vsplit file     - vertical split
 + :sview file      - same as split, but readonly
 + :hide            - close current window
 + :only            - keep only this window open
 + :ls              - show current buffers
 + :b 2             - open buffer #2 in this window
 +```
 +
 +## resize
 +
 +```
 +:resize 60
 +:res +5
 +:res -5
 +:vertical resize 80
 +:vertical resize +5
 +:vertical resize -5
 +```
  
 # editing # editing
snippets/vim/shortcuts.1432730427.txt.gz · Last modified: by allspark_cp