User Tools

Site Tools


bordel

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bordel [2024/12/24 11:49] albanbordel [2024/12/24 11:52] (current) alban
Line 60: Line 60:
 ==== Commandes utiles VIM ==== ==== Commandes utiles VIM ====
   * A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition   * A pour aller en fin de ligne en mode édition et a pour aller en fin de mot en mode édition
 +  * Pour commenter :
 +
 +Put your cursor on the first # character, press CtrlV (or CtrlQ for gVim), and go down until the last commented line and press x, that will delete all the # characters vertically.
 +
 +  * Decommenter 
 +
 +    First, go to the first line you want to comment, press CtrlV. This will put the editor in the VISUAL BLOCK mode.
 +    Then using the arrow key and select until the last line
 +    Now press ShiftI, which will put the editor in INSERT mode and then press #. This will add a hash to the first line.
 +    Then press Esc (give it a second), and it will insert a # character on all other selected lines.
  
  
bordel.1735040981.txt.gz · Last modified: by alban