Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ,cc - comment out lines
- ,cu - uncomment out lines
- rw switch between vim tabs hjkl
- df <Esc>
- :'<,'>s/old/new/g search & replace selected
- H top line of screen
- M middle line of screen
- L bottom line of screen
- e end of current word
- b beginning of current word
- w beginning of next word
- gg first line
- G last line
- 0 beginning of current line
- $ end of current line
- % move to matching parenthesisjjj
- o insert line below, then enter insert
- O insert line above, then enter insert
- r overwrite one character, then command mode
- dd in command mode (after pressing escape) will cut the line,
- p in command mode will paste.
- d and then a movement will cut the equivalent of that movement,
- dw will cut a word
- d will cut this line and the line below,
- d50w will cut 50 words
- yy is copy line, and works like dd.
- D cuts from cursor to end of line.
- v (visual mode)
- V (visual line mode)
- v (visual block modej)
- VIM Sessions
- :mks ~/.vim/sessions/rooster.vim
- vim -S ~/.vim/sessions/rooster.vim
- :FOLDS
- set foldmethod=indent
- zo opens a fold at the cursor.
- zO opens all folds at the cursor.
- zc closes a fold at the cursor.
- zm increases the foldlevel by one.
- zM closes all open folds.
- zr decreases the foldlevel by one.
- zR decreases the foldlevel to zero -- all folds will be open.
- TABS:
- gt next tab
- gT previous tab
- gt go to nnn tab
- gm move tab left
- gM move tab right
- NERDTree:
- tw opens nerdtree
- ts tree find
- :Bookmark create bookmark
- B show bookmarks
- D delete bookmark
- FILESYSTEM:
- m opens up node/files menu
- U move up directory & leave old root open
- u move up directory
- C change tree root to this directory
- R refresh current root
- r refresh cursor directory
- cd change CWD to selectred directory
- CD change tree root to CWD
- DIRECTORIES:
- o open & close
- O recursively open
- x close parent
- X close all children recursively
- e explore selected dir
- TREE NAVIGATION:
- p go to parent
- P go to root
- K go to first child
- J go to last child
- go to prev sibling
- go to next sibling
- FILES:
- o open in previous window
- t open in new tab
- T open in new tab silently
- i open split
- s open vsplit
- TREE FILTERING
- l hidden files (off)
- f file filters (on)
- F files on
- B bookmarks (off)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement