commit da1edbfc83f3b7b568c76a0f1a3d9e1b964fbd67 parent 4544067294717360caf4b6fa71bc630ac0dc84a3 Author: Ed van Bruggen <edvb54@gmail.com> Date: Wed, 4 Feb 2015 21:25:34 -0800 Vim: Add (<Space> mapping to auto insert extra spaces Diffstat:
vimrc | | | 31 | +++++++++++++++++-------------- |
1 file changed, 17 insertions(+), 14 deletions(-)
diff --git a/vimrc b/vimrc @@ -292,20 +292,23 @@ nnoremap <C-N> :bnext<CR> nnoremap <C-P> :bprev<CR> " pair completion{{{2 -inoremap { {}<Left> -inoremap {<CR> {<CR>}<Esc>O -inoremap {{ { -inoremap {} {} - -inoremap ( ()<Left> -inoremap (<CR> (<CR>)<Esc>O -inoremap (( ( -inoremap () () - -inoremap [ []<Left> -inoremap [<CR> [<CR>]<Esc>O -inoremap [[ [ -inoremap [] [] +inoremap { {}<Left> +inoremap {<CR> {<CR>}<Esc>O +inoremap {<Space> {<Space><Space>}<Left><Left> +inoremap {{ { +inoremap {} {} + +inoremap ( ()<Left> +inoremap (<CR> (<CR>)<Esc>O +inoremap (<Space> (<Space><Space>)<Left><Left> +inoremap (( ( +inoremap () () + +inoremap [ []<Left> +inoremap [<CR> [<CR>]<Esc>O +inoremap [<Space> [<Space><Space>]<Left><Left> +inoremap [[ [ +inoremap [] [] inoremap <> <><Left> inoremap "" ""<Left>