commit 266e70efdf273d85ee5eca74ec8f46e4955d7403 parent 93d56bf65d82f0575d2a190379c3a5c1e8d92bb5 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Mon, 27 May 2019 16:18:12 +0200 vim: mappings Former-commit-id: eec40b3f2eb0b322cc8810001aa9c604d6058851 Diffstat:
M | vim/map.vimrc | | | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/vim/map.vimrc b/vim/map.vimrc @@ -93,15 +93,13 @@ nnoremap <C-E><C-L> :vsplit $DOTFILES/vim/pluginconf.vimrc<CR> " Yank to clipboard nnoremap <leader>d "*d +vnoremap <leader>d "*d +nnoremap <leader>D "*D nnoremap <leader>y "*y +vnoremap <leader>y "*y nnoremap <leader>p "*p nnoremap <leader>P "*P nnoremap <leader>n "_ -nnoremap <leader>n "_ -nnoremap <leader>n "_ -nnoremap <leader>n "_ -vnoremap <leader>y "*y -vnoremap <leader>d "*d vnoremap <leader>n "_ " This should be a plugin but for now... @@ -122,3 +120,6 @@ nnoremap <leader>f :call ToggleNetrw()<CR> if mapcheck("<leader>F") == "" nnoremap <leader>F :next **/* endif + +" Strip trailing whitespace +nnoremap <leader>$ :%s/ \+$//e<CR>