VIM-1.3 More VIM Editor Commands Tutorial

Publié le: 19 mai 2012
sur la chaîne: fuzicast
6,709
30

Make sure to subscribe to my channel for more videos on UNIX, Perl and SQL.
facebook: www.facebook.com/fuzicast
twitter: @fuzicast

Here are a list of VIM commands I used in this tutorial
:tabdo %s/pattern/replacement/g - execute commands on all open tabs
:command1 | command2 - run multiple commands
:help
vim file1 file2 file3 - open multiple files
:n - go to next file
:only - when in split screen, close all other screens and keep current screen
. - repeats last action
:g/pattern/ - returns you all the lines that contains the pattern
:g/pattern/d - delete all lines that contains this pattern
:v/pattern/ - return all lines that don't contain this pattern
:v/pattern/d - delete all lines that don't contain this pattern
ctrl + o - the same as '.
: + up/down key - view history of : commands
/ + up/down key - view history of / searches
ctrl + w + (hyphen) - maximize the windows
ctrl + w + = - restore original windows
== - aligns line to same position as previous line
select block; :fold - compress lines, zo to expand, zc to compress again
:%s/pattern/replacement/gc - search and replace
ctrl + v ctrl + m - get special characters
:%d - delete whole file content
:diffget - sync current screen with the other screen
]c - get to next diff


Sur cette page du site, vous pouvez voir la vidéo en ligne VIM-1.3 More VIM Editor Commands Tutorial durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur fuzicast 19 mai 2012, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 6,709 fois et il a aimé 30 téléspectateurs. Bon visionnage!