User Tools

Site Tools


vim:cheatsheet:marking_text_visual_mode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

vim:cheatsheet:marking_text_visual_mode [2021/02/16 09:29] – created petervim:cheatsheet:marking_text_visual_mode [2021/02/16 09:31] (current) peter
Line 1: Line 1:
 ====== VIM - Cheatsheet - Marking text (visual mode) ====== ====== VIM - Cheatsheet - Marking text (visual mode) ======
 +
 +<code>
 +    v - start visual mode, mark lines, then do a command (like y-yank)
 +    V - start linewise visual mode
 +    Ctrl + v - start visual block mode
 +
 +    o - move to other end of marked area
 +    O - move to other corner of block
 +
 +    aw - mark a word
 +
 +    ab - a block with ()
 +    aB - a block with {}
 +    at - a block with <> tags
 +
 +    ib - inner block with ()
 +    iB - inner block with {}
 +    it - inner block with <> tags
 +
 +    Esc - exit visual mode
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  Instead of b or B one can also use ( or { respectively.
 +</WRAP>
 +
  
vim/cheatsheet/marking_text_visual_mode.1613467758.txt.gz · Last modified: 2021/02/16 09:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki