Map F5 to delete trailing whitespace

This commit is contained in:
2017-05-04 21:30:16 -04:00
parent 9062dad436
commit 2f47e15c43

3
.vimrc
View File

@@ -40,6 +40,9 @@ if exists('+mouse')
else
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
map <C-n> :NERDTreeToggle<CR>