Add vim command to trim whitespace from line endings.

This commit is contained in:
Jonathan Bernard
2019-10-31 02:49:43 -05:00
parent c4121b150c
commit dc0e302e86

4
.vimrc
View File

@ -84,4 +84,8 @@ nmap <Leader>ws :w<CR>:silent !git add %<CR>:!git commit<CR>
" Format the file using java-file-formatter. java-file-formatter should be a " Format the file using java-file-formatter. java-file-formatter should be a
" command that takes a file path as the first argument and either alters the " command that takes a file path as the first argument and either alters the
" file in place or prints out the altered file on STDOUT.
nmap <Leader>jsf :!java-file-formatter %:p<CR> nmap <Leader>jsf :!java-file-formatter %:p<CR>
nmap <Leader>wo :vsplit /home/jdbernard/projects/worklog/worklog.txt<CR><C-w>L200<C-w><43<C-w>>
nmap <Leader>ws :w<CR>:silent !git add %<CR>:!git commit<CR>