2013-10-10 112 views

回答

6

使用cs變化文本,並保持在插入模式

+0

感謝您的快速和明確的答案。我注意到's'也可以在視覺模式下工作,沒有做出選擇(單個字符刪除和開始插入),這很方便。 –

3

我覺得你只是想按小號

+1

** + 1 **努力避免30個字符限制的警告:-) – Birei

+0

哈!謝謝,很高興有人注意到。 – YXD

3

Vim的幫助只是回答你的問題正是:

{Visual}["x]c or     *v_c* *v_s* 
{Visual}["x]s  Delete the highlighted text [into register x] and 
      start insert (for {Visual} see |Visual-mode|). {not 
      in Vi} 

          *v_r* 
{Visual}["x]r{char} Replace all selected characters by {char}. 

          *v_C* 
{Visual}["x]C  Delete the highlighted lines [into register x] and 
      start insert. In Visual block mode it works 
      differently |v_b_C|. {not in Vi} 
          *v_S* 
{Visual}["x]S  Delete the highlighted lines [into register x] and 
      start insert (for {Visual} see |Visual-mode|). {not 
      in Vi} 
          *v_R* 
{Visual}["x]R  Currently just like {Visual}["x]S. In a next version 
      it might work differently. {not in Vi} 

我會提醒surround plugin用戶,用它的默認映射,它會覆蓋{visual}S