Plug 'diegomarangoni/vim-spacemacs'
" alias leader key to space bar
map <Space> <leader>
Use by pressing LEADER + keys
Keys | Description | Requirement |
---|---|---|
generic | ||
TAB | previous buffer | |
b: buffer | ||
bd | kill current buffer | |
bD | kill current buffer discarding any change | |
bb | list buffers | fzf.vim, fzf |
bn | next buffer | |
bp | previous buffer | |
f: file | ||
fs | save file | |
fc | close file | |
fC | close file discarding any change | |
ft | show file in tree | NERDTree |
ff | find all files | fzf.vim, fzf |
fp | find project files | fzf.vim, fzf |
fd | find files in current file directory | fzf.vim, fzf |
fh | find recent opened file | fzf.vim, fzf |
fy | copy file relative path | |
fY | copy file full path | |
g: git | ||
gs | git status | Fugitive |
m: mode golang |
||
md | directory definitions | vim-go |
mf | file definitions | vim-go |
mh | reference highlight | vim-go |
mH | clear reference highlighting | vim-go |
ml | list code references | vim-go |
mr | rename | vim-go |
p: project | ||
pt | open project tree | NERDTree |
pf | find current file in tree | NERDTree |
q: quit | ||
quit | ||
quit discarding any change | ||
qr | reload ~/.vimrc | |
s: search | ||
sc | clear search results | |
sb | search open buffers | fzf.vim, fzf |
sB | search current buffer | fzf.vim, fzf |
st | search tags | fzf.vim, fzf |
sT | search current buffer tags | fzf.vim, fzf |
t: toggle | ||
tl | word wrap | |
tn | line numbers | |
tr | relative line numbers | |
tt | theme | fzf.vim, fzf |
w: window | ||
wj | move down | |
wk | move up | |
wh | move left | |
wl | move right | |
ws | split horizontally | |
wS | split vertically | |
wc | close split | |
wC | close all splits |