From 630fc5d5d62e913b5024e79a288590f2fddb1499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 17 Sep 2015 10:39:51 +0200 Subject: [PATCH] Add operator pending map for { and } --- autoload/vimtex/motion.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/vimtex/motion.vim b/autoload/vimtex/motion.vim index 5589afb..ba20b09 100644 --- a/autoload/vimtex/motion.vim +++ b/autoload/vimtex/motion.vim @@ -104,6 +104,8 @@ function! vimtex#motion#init_buffer() " {{{1 nnoremap (vimtex-{) :call vimtex#motion#next_paragraph(1,0) xnoremap (vimtex-}) :call vimtex#motion#next_paragraph(0,1) xnoremap (vimtex-{) :call vimtex#motion#next_paragraph(1,1) + onoremap (vimtex-}) :execute "normal \(v)\(vimtex-})" + onoremap (vimtex-{) :execute "normal \(v)\(vimtex-{)" xnoremap (vimtex-ip) :call vimtex#motion#sel_paragraph(1) xnoremap (vimtex-ap) :call vimtex#motion#sel_paragraph() onoremap (vimtex-ip) :execute "normal \(v)\(vimtex-ip)"