Add vim command to trim whitespace from line endings.
This commit is contained in:
4
.vimrc
4
.vimrc
@ -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>
|
||||||
|
Reference in New Issue
Block a user