summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-09-12 17:21:17 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-09-12 17:21:17 +0100
commit4b3aa74d4844d5d8393051c8088728fd6c4fadd0 (patch)
tree18b0409f7f31590fbfb9fffcad50396815f2ea30 /vim
parent481bb2c26f2d9aa52e5c8dec8dfc64af7bbff049 (diff)
[vim] Add mappings to add whitespace before/after cursor
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 42e06c9..a97b547 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -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>