From c7c74e04e5291966ee9b96be3ff84bab86b7ed2f Mon Sep 17 00:00:00 2001 From: hugogogo Date: Tue, 19 Jul 2022 14:16:47 +0200 Subject: [PATCH] add in vim tuto --- tutos/vim.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tutos/vim.txt b/tutos/vim.txt index ea24399..f6db6f5 100644 --- a/tutos/vim.txt +++ b/tutos/vim.txt @@ -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** 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 #** to delete the old copy **:sp** split windows (**** 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