add in vim tuto

This commit is contained in:
hugogogo
2022-07-19 14:16:47 +02:00
parent 921d9b5e36
commit c7c74e04e5

View File

@@ -29,6 +29,7 @@ and change the content to whatever you want
**:bn** go to next buffer
**:bd** delete buffer
**:b#** switch to last edited buffer
**:explore / :ex<tab>** navigate through directory, rename, and plus
**:%y+** copie toutes les lignes DANS LE CLIPBOARD
**:set paste** copier sans les effets des tabulations
**: up** affiche les dernieres commandes
@@ -46,6 +47,7 @@ and change the content to whatever you want
**:!rm oldname** or **:!rm <ctr r>#** to delete the old copy
**:sp** split windows (**<ctr w arrow>** to navigate)
**:vsp** split verivally
**:on** unsplit by closing all windows except the active one
**:sp filename** open a new or already existing filename in split mode
**:sp %:h/filename** open new file in the same directory
**%** refers to the current directory
@@ -119,6 +121,7 @@ and change the content to whatever you want
**q:** affiche les dernieres commandes
**==** rétablit la bonne indentation pour la ligne
**=G** rétablit la bonne indentation pour toute la page
**''** go to last cursor position
/REMPLACER/
**:s/old/new** remplace la 1ere occurence de ancien par nouveau