我正在使用 mvim 。我正在尝试映射键,以便我可以直观地选择元素,然后我可以向内或向外缩进代码。然而,在每次击键后进行外部工作时,底部的另一行被选中。解决方法是什么。
" Ctrl-x - move the block of visually selected code one tab right and keep visual mode alive
" Ctrl-z moves the data in opposite direction
" Usage : shift v and select multiple lines. then Ctrl x multiple times and
" then Ctrl z multiple times
vmap <C-x> >gv
vmap <C-z> <gv