diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-04 14:55:19 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-04 14:55:19 +1300 |
commit | 6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d (patch) | |
tree | f63a011a642d8bdaa75aee6d87c17306784244bc /vim/vimrc | |
parent | Merge branch 'hotfix/v4.6.1' into develop (diff) | |
download | dotfiles-6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d.tar.gz dotfiles-6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d.zip |
Add experimental delimit_operator.vim plugin
This is an attempt at a small subset of surround.vim's behaviour,
hopefully drastically simplified. I'm not actually sure how useful or
practical this is going to be yet.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -421,5 +421,13 @@ nnoremap <Leader>: ^"zyg_:<C-R>z<CR> " \! executes line with 'shell' nnoremap <Leader>! ^"zyg_:!<C-R>z<CR> +" Testing out delimit_operator.vim, in development +" Use q for a prefix key, followed by the wrapping quote +for s:char in ["'", '"', '`', '[', '<', '(', '{', '*'] + execute 'nmap q'.s:char.' <Plug>(DelimitOperator)'.s:char + execute 'xmap q'.s:char.' <Plug>(DelimitOperator)'.s:char +endfor +unlet s:char + " Source any .vim files from ~/.vim/config runtime! config/*.vim |