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>
nmap <Leader>b :CtrlPBuffer<CR> nmap <Leader>b :CtrlPBuffer<CR>
" Format Bible quotes in Markdown (bold verse numbers)
vmap <Leader>qb :s/\v\s+(\d+)\s+/ **\1** /g<CR> vmap <Leader>qb :s/\v\s+(\d+)\s+/ **\1** /g<CR>
" remove trailing whitespace from all lines
nmap <Leader>ss :%s/\s\+$//<CR>