Map F5 to delete trailing whitespace
This commit is contained in:
3
.vimrc
3
.vimrc
@@ -40,6 +40,9 @@ if exists('+mouse')
|
|||||||
else
|
else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" F5 to trim trailing whitespace
|
||||||
|
map <silent> <F5> :let _s=@/ <Bar> :%s/\s\+$//e <Bar> :let @/=_s <Bar> :nohl <Bar> :unlet _s <CR>
|
||||||
|
|
||||||
" NERDTree binding
|
" NERDTree binding
|
||||||
map <C-n> :NERDTreeToggle<CR>
|
map <C-n> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user