From 6ed48b12e451a0770d5a3f236e66e0e7e9a39c8d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 4 Jan 2019 14:55:19 +1300 Subject: 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. --- vim/vimrc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 724a32e7..bf30df7d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -421,5 +421,13 @@ nnoremap : ^"zyg_:z " \! executes line with 'shell' nnoremap ! ^"zyg_:!z +" 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.' (DelimitOperator)'.s:char + execute 'xmap q'.s:char.' (DelimitOperator)'.s:char +endfor +unlet s:char + " Source any .vim files from ~/.vim/config runtime! config/*.vim -- cgit v1.2.3