+ controle + ws = split horizontalement
+ controle + wq = ferme la fenêtre courante (si split)
+ controle + wv = split verticalement
+ controle + wh = bascule sur la fenêtre de gauche
+ controle + wj = bascule sur la fenêtre du dessous
+ controle + wk = bascule sur la fenêtre du dessus
+ controle + wl = bascule sur la fenêtre de droite
+ controle + "+" = agrandit la fenêtre courante
+ controle + "-" = réduit la fenêtre courante
+ controle + "=" = égalise les fenêtres courante
+ controle + r = echange les positions des fenêtres split
+
-
"0" vas au début de la ligne courante
quand on éffectue une recherche avec "/" n permet de passer au mot suivant
"fin" permet d'aller à la fin de la ligne courante
-
- Action en mode insertion
- controle + d = permet d'indenté une ligne
- controle + t = permet de désindenté une ligne
-
- Autre
- :set number = numéroter les lignes
- Pour chercher dans un man/vim/less = /"mot-a-chercher"
- Sous vim pour rechercher et remplacer = :%s/"ancien truc"/"nouveau truc"/g
(très ressemblant à la commande sed, dans tout le document utiliser l'exemple, pour faire que sur un mot il faut retirer le "%" et le "g" de fin, et pour ne faire qu'une ligne il faut aussi retirer le "%" mais laisser le "g" de fin)
- Pour installer space vim = curl -sLf https://spacevim.org/install.sh | bash
+
+
+