diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-09-12 17:21:17 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-09-12 17:21:17 +0100 |
commit | 4b3aa74d4844d5d8393051c8088728fd6c4fadd0 (patch) | |
tree | 18b0409f7f31590fbfb9fffcad50396815f2ea30 /vim/.vimrc | |
parent | 481bb2c26f2d9aa52e5c8dec8dfc64af7bbff049 (diff) |
[vim] Add mappings to add whitespace before/after cursor
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -286,6 +286,12 @@ endif "" Mappings +nnoremap <silent> <Plug>AddWhiteSpaceAfter a <Esc>h:silent call repeat#set("\<Plug>AddWhiteSpaceAfter")<cr> +nnoremap <silent> <Plug>AddWhiteSpaceBefore i <Esc>l:silent call repeat#set("\<Plug>AddWhiteSpaceBefore")<cr> + +nmap ]w <Plug>AddWhiteSpaceAfter +nmap [w <Plug>AddWhiteSpaceBefore + nnoremap <Leader>w :update<cr> nnoremap <Leader>q :q!<cr> nnoremap <Leader>d :bd!<cr> |