2012-02-07 23 views
18

Digamos que está utilizando vim para seleccionar en modo visual. Tocas v, luego empiezas a mover hacia la derecha con l. Luego, supongamos que desea extender su selección hacia la izquierda, sin cambiar el punto de la derecha. Es decir, está satisfecho con '> pero desea cambiar '<.Vim: perspectiva del modo visual inverso

¿Cómo se intercambia para que sea como si empezaste en '> y estás seleccionando a la izquierda, cambiando '<?

Tengo un vago recuerdo de que he visto esto antes, pero es difícil buscarlo en Google.

Respuesta

19

Vaya, lo increíble publicar a stackoverflow puede hacer que la lectura de la (F) manual que mucho más fácil ...

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

gran pregunta y respuesta;) – lucapette

+3

No te olvides del capital 'O' en la selección de bloques (rectangular), que no va en diagonal:': ayuda v_O'. – Benoit

5

o

De la documentación:

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. 
Cuestiones relacionadas