This shows you the differences between two versions of the page.
simple_vi_vim_handling [2012/01/12 12:37] root |
simple_vi_vim_handling [2012/01/12 12:39] (current) root |
||
---|---|---|---|
Line 28: | Line 28: | ||
:1,.s/from/morf/g | :1,.s/from/morf/g | ||
- | ===== VIM - Comment blocks of code ===== | + | ===== VIM - Comment blocks of code (visual mode) ===== |
Mark the area which is to be commented using the *blockwise* visual mode (CTRL-V)\\ | Mark the area which is to be commented using the *blockwise* visual mode (CTRL-V)\\ | ||
Line 34: | Line 34: | ||
Then press ESC and the text will be inserted to the left of each line of the selected block. | Then press ESC and the text will be inserted to the left of each line of the selected block. | ||
- | ===== VIM - Select multiple line (visual mode) ===== | + | ===== VIM - Select line(s) (visual mode) ===== |
Shift + v | Shift + v |