Tutorial: How to Use vi/vim on Linux and UNIX Intermediate Usage

Pubblicato il: 21 febbraio 2019
sul canale di: The Expat Professor
377
like

Getting to Know Linux - Episode 004
vi (vim) Visual Editor

!!! Get VIM !!!
sudo apt-get install vim

!!! Alias VIM !!!
echo "alias vi='vim'" DOUBLE_ANGLE_BRACKETS ~/.bashrc

!!! Apply the Alias !!!
source ~/.bashrc

Two Primary Modes:
Command Mode (includes colon : commands)
Insert Mode

Three Required Commands:
i = Insert Text
[ESC]:q!
Leave insert mode, enter a colon-command, quit, do NOT save
[ESC]:wq
Leave insert mode, enter a colon-command, quit, SAVE

Useful Commands: (in COMMAND MODE)
a = append
o = open a new line
d = delete, used with a number or just another d
d100d = delete 100 lines
u = undo
p = put a line
/ = find: /hello will find the word "hello"
:%s/original/replacement/g = replace text

Getting to Know Linux, Introduction, Basics, First Steps, Paul W. Poteete, Linux Mint, vi, vim, visual editor

Please join me:
   / paulwpoteete  
  / paulwpoteete  
  / paulwpoteete  
  / paulwpoteete  

*all copyrighted materials in this video are the property of their respective owners.


#linux, #unix, #tutorial, #administration, #engineering, #beginner, #expert, #advanced, #intermediate, #training


In questa pagina del sito puoi guardare il video online Tutorial: How to Use vi/vim on Linux and UNIX Intermediate Usage della durata di ore minuti seconda in buona qualità , che l'utente ha caricato The Expat Professor 21 febbraio 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 377 volte e gli è piaciuto like spettatori. Buona visione!