Add vim shortcut to trim trailing whitespace: <leader>ts
This commit is contained in:
parent
1815f3d896
commit
50be14282f
1
vimrc
1
vimrc
@ -38,6 +38,7 @@ map <leader>rc :source $MYVIMRC<CR>
|
|||||||
map <leader>nt :NERDTreeToggle<CR>
|
map <leader>nt :NERDTreeToggle<CR>
|
||||||
map <leader>ss :setlocal spell!<CR>
|
map <leader>ss :setlocal spell!<CR>
|
||||||
map <leader>ct :TlistToggle<CR> " taglist shortcut
|
map <leader>ct :TlistToggle<CR> " taglist shortcut
|
||||||
|
map <leader>ts :%s/\s\s*$//g<CR> " trim trailing whitespace
|
||||||
|
|
||||||
if bufwinnr(1)
|
if bufwinnr(1)
|
||||||
map <leader>+ <C-W><
|
map <leader>+ <C-W><
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user