2012-02-07 15 views
18

視覚モードでvimを使用して選択しているとします。 vと打ってから、と右に移動を開始します。次に、右の点を変更せずに選択範囲を左に広げたいとします。つまり、'>に満足していますが、'<を変更したいとします。Vim:逆視覚モードの視点

スワップすると、'>で開始し、左側を選択しているように、'<を変更しますか?

私はこれまでに見たことのある曖昧な思い出を持っていますが、グーグルにとっては難しいです。

答えて

19

おっと、ドキュメントから...(F)マニュアルそれははるかに簡単に読み込むことができます

3. Changing the Visual area    *visual-change* 

          *v_o* 
o   Go to Other end of highlighted text: The current 
      cursor position becomes the start of the highlighted 
      text and the cursor is moved to the other end of the 
      highlighted text. The highlighted area remains the 
      same. 
+1

グレート質問と答え:) – lucapette

+3

大文字の 'O'は、対角線にならないブロックワイズ(矩形)選択で忘れないでください:':help v_O'。 – Benoit

5

o

をStackOverflowのために掲示する素晴らしい方法:

o   Go to Other end of highlighted text: The current 
      cursor position becomes the start of the highlighted 
      text and the cursor is moved to the other end of the 
      highlighted text. The highlighted area remains the 
      same.