User Tools

Site Tools


vim_comments

Differences

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

Link to this comparison view

Next revision
Previous revision
vim_comments [2016/11/18 13:28]
osotolongo created
vim_comments [2020/08/04 10:58] (current)
Line 2: Line 2:
 ==== To comment out blocks in vim:==== ==== To comment out blocks in vim:====
  
-press Esc (to leave editing or other mode) +  * press Esc (to leave editing or other mode) 
- +  hit ctrl+v (visual block mode) 
-hit ctrl+v (visual block mode) +  use the up/down arrow keys to select lines you want (it won't highlight everything - it's OK!) 
- +  Shift+i (capital I) 
-use the up/down arrow keys to select lines you want (it won't highlight everything - it's OK!) +  insert the text you want, i.e. '% ' 
- +  press Esc 
-Shift+i (capital I) +  Give it a second to work.
- +
-insert the text you want, i.e. '% ' +
- +
-press Esc +
- +
-Give it a second to work.+
  
 ==== To uncomment blocks in vim:==== ==== To uncomment blocks in vim:====
  
-press Esc (to leave editing or other mode) +  * press Esc (to leave editing or other mode) 
- +  hit ctrl+v (visual block mode) 
-hit ctrl+v (visual block mode) +  use the up/down arrow keys to select the lines to uncomment. 
- +  If you want to select multiple characters, use one or combine these methods: 
-use the up/down arrow keys to select the lines to uncomment. +  use the left/right arrow keys to select more text 
- +  to select chunks of text use shift + left/right arrow key 
-If you want to select multiple characters, use one or combine these methods: +  you can repeatedly push the delete keys below, like a regular delete button 
- +  press d or x to delete characters, repeatedly if necessary 
-use the left/right arrow keys to select more text +  press Esc 
- +  Give it a second to work.
-to select chunks of text use shift + left/right arrow key +
- +
-you can repeatedly push the delete keys below, like a regular delete button +
- +
-press d or x to delete characters, repeatedly if necessary +
- +
-press Esc +
- +
-Give it a second to work.+
vim_comments.1479475711.txt.gz · Last modified: 2020/08/04 10:44 (external edit)