Vim Tutorial Part 5 - Command Mode
Mental Outlaw
In this video I introduce VIMs command mode, and show several of the commands that I use often, the commands covered in this video are below
#commands we already know :q! = quit without saving :wq = quit with saving the document :wq (document name) = quit and save with the document name :tabnew = creates a new tab :tabp = goes to the previous tab :tabn = goes to the next tab :tabfirst = goes to the first tab :tablast = goes to the last tab
:e = open a file :cd = gives us the current working directory :put=range(start,end) = writes a list of numbers below the cursor :put=range(start,end,jump) = writes a list of numbers below the cursor #good example of put :for i in range(1,10) | put ='192.168.0.'.i | endfor :g/^/m0 (reverse all the lines in the document) :registers = shows us what is in all the current registers :oldfiles = shows us files that we have previously edited :browse oldfiles = lets us browse the oldfiles we have previously edited (opens in place of the current document)
:Sexplore = Opens a file explorer in a horizontal window :Vexplore = Opens a file explorer in a Vertical Window :Texplore = Opens a file explorer in a new tab
Subscribe to my YouTube channel http://goo.gl/9U10Wz and be sure to click that notification bell so you know when new videos are released. ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
Bitcoin 3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV
Ethereum 0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079
Litecoin MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF
Dash Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz
Zcash t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr
Chainlink 0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14
Bitcoin Cash qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp
Etherum Classic 0xeA641e59913960f578ad39A6B4d02051A5556BfC
USD Coin 0x0B045f743A693b225630862a3464B52fefE79FdB ... https://www.youtube.com/watch?v=tBjXm4Mw2lM
27365717 Bytes