User Tools

Site Tools


simple_vi_vim_handling

Differences

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

Link to this comparison view

simple_vi_vim_handling [2012/01/12 12:32]
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)\
-Press I (capital i) and write the text you want to prepend to each line of the selected block, e.g. %.\+Press I (capital i) and write the text you want to prepend to each line of the selected block, e.g. %.\\
 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 line(s) (visual mode) =====
 +
 +Shift + v
 +
  
  
simple_vi_vim_handling.1326371564.txt.gz · Last modified: 2012/01/12 12:32 by root