Skip to content

cheatsheet advanced

Salam Hiyali edited this page Jul 19, 2017 · 6 revisions

Terminal

:terminal - Open terminal

Line Numbers

,3 - Toggle numbers

Color

,tc - Toggle color

Comments

" - Comments current line

4" - Comments 4 line from current line to below 4 line

Window

,s - Horizontal split window

,v - Vertical split window

Ctrl-w 10 < - Current window width

Ctrl-w 10 > - Current window width

Ctrl-P

Ctrl-P - Find some file in root directory

Tabs

,n - To next tab

,q - To previous tab

Nerdtree

F3 - Open / close nerdtree

s - Open new nerdtree on new split window

A - Zoom (maximize/minimize) the NERDTree window

C - Change the tree root to the selected dir

u - Move the tree root up one directory

? - Toggle the display of the quick help

m - Display the NERD tree menu

r - Recursively refresh the current directory

p - Jump to current nodes parent

Fold

za - Toggle fold/unfold under cursor one level

zR - Unfold all level

zM - Fold all level

zr - Unfold under corsor one level

zm - Fold under cursor one level

Jobs

Ctrl-z - close jobs

jobs - Show jobs list (in terminal)

fg %<job-num> - Back to job (in terminal)

Clone this wiki locally