diff options
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -61,26 +61,11 @@ set complete-=i " happened to me but who knows, it might one day set fileformats+=mac -" Don't join lines with two spaces at the end of sentences; I don't two-space, -" despite the noble Steve Losh's exhortations -set nojoinspaces - " Don't jump my screen around when I join lines, keep my cursor in the same " place; this is done by dropping a mark first and then immediately returning " to it; note that it wipes out your z mark, if you happen to use it nnoremap J mzJ`z -" Strip trailing whitespace with \x -if has('eval') - function! StripTrailingWhitespace() - let l:search = @/ - %substitute/\s\+$//e - let @/ = l:search - nohlsearch - endfunction - nnoremap <silent> <leader>x :<C-U>call StripTrailingWhitespace()<CR> -endif - " Keep plenty of command and search history, because disk space is cheap set history=2000 |