SlideShare a Scribd company logo
1 of 12
Download to read offline
WHAT IS VIM? 
A brief introduction 
by: Tatiana Tylosky
WHAT IS VIM? 
VIM is a text editor that lives inside 
the terminal. VIM allows for more 
efficient coding and workflow!
WHY VIM? 
“Why use vim when I already use sublime?” 
- To save time 
- Very efficient way of editing text 
- Vimscript is a programming language for text editing 
- Extremely customizable for your particular work habits 
- To be cool. 
:%s/cool/a total badass/g
VIM BASICS 
Type “vim yourfilename” into your terminal 
to open your file in vim 
- Navigate text space in vim using hjkl 
- Use the vim command line 
K 
H 
J 
- “:” lets you enter the vim command line 
L 
- “:q” quits vim 
- “:w” writes changes (aka saves file changes)
DON’T BE THIS GUY 
If you learn nothing today, please at least learn that 
you can exit vim using “:q” or “:q!”
VIM MODES 
vim has two modes and normal mode isn’t “normal” 
#1 Normal Mode - Enter via [ESC] 
In this mode you have access to ENDLESS “vim commands” that are useful 
shortcuts for editing text 
Some fun examples: 
a – append, u – undo, dd – delete line 
#2 Text edit mode – Enter via a, i, and more 
Your keyboard acts likes you would expect
VIM COMMANDS 
There are SO many vim commands that you will learn 
more and more new ones every day! 
Here are JUST A FEW useful examples 
- Action commands 
- ‘a’ for append 
- ‘d’ for delete 
- ‘u’ for undo 
- Movement commands 
- ‘0’ beginning of line 
- ‘w’ beginning of word 
- ‘$’ end of line 
But wait that is not all! 
Commands have additional tricks that make them even better!
NORMAL MODE COMMANDS 
Normal mode commands have a format so that they are easily repeatable 
over a specific range. 
operator [number] motion 
Where: 
operator - is what to do, such as d for delete 
[number] - is an optional count to repeat the motion 
motion - moves over the text to operate on, such as w (word), 
$ (to the end of line), etc. 
Ex. 1. “d2w” - deletes the next two words 
Ex. 2. “vi(” - select inside parentheses
NEXT LEVEL VIMSCRIPT 
Example: Mapping 
Mapping keys lets you tell Vim: If you type 
“:map <space> u” 
vim will now undo 
actions when you 
press the space bar 
“When I press this key, I 
want you to do this stuff 
instead of whatever you 
would normally do.”
Things to do with the time you save using vim 
- Code more 
- Go hiking 
- Go to brunch 
- SO MUCH MORE!! 
With vim the possibilities are ENDLESS!
VIM RESOURCES 
- Type “vimtutor” into your terminal 
- Play Vim Adventures 
http://vim-adventures.com/ 
- Read 
https://medium.com/brigade-engineering/crap-wrong-mode-9021375c2826 
http://learnvimscriptthehardway.stevelosh.com/
WHAT CRITICS ARE SAYING! 
“The power of Vim’s text manipulation shortcuts 
coupled with its extensibility have made other 
editors feel inadequate.” - some dude 
“Yes, Tatiana, I use vim.” - Saul Diez-Guerra 
“Cool kids use vim:wq” - anonymous source

More Related Content

Similar to What is Vim?

Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim Introduction
Keith Pickett
 
Tuffarsi in vim
Tuffarsi in vimTuffarsi in vim
Tuffarsi in vim
sambismo
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
root_fibo
 
Presentacion vim
Presentacion vimPresentacion vim
Presentacion vim
Icalia Labs
 

Similar to What is Vim? (20)

Augusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim IntroductionAugusta Linux User Group - Vim Introduction
Augusta Linux User Group - Vim Introduction
 
Vi
ViVi
Vi
 
vim brownbag - Richard forth
vim brownbag - Richard forthvim brownbag - Richard forth
vim brownbag - Richard forth
 
Vim Book
Vim BookVim Book
Vim Book
 
Vi editor
Vi editorVi editor
Vi editor
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Vi Editor
Vi EditorVi Editor
Vi Editor
 
Small Screen Development
Small Screen DevelopmentSmall Screen Development
Small Screen Development
 
Tuffarsi in vim
Tuffarsi in vimTuffarsi in vim
Tuffarsi in vim
 
Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)Vim Editor And Basic Scripting (Ch-7)
Vim Editor And Basic Scripting (Ch-7)
 
07 vi text_editor
07 vi text_editor07 vi text_editor
07 vi text_editor
 
Vim Basics
Vim BasicsVim Basics
Vim Basics
 
lectuer 21-22.pptx
lectuer 21-22.pptxlectuer 21-22.pptx
lectuer 21-22.pptx
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
 
Emacs tutorial
Emacs tutorialEmacs tutorial
Emacs tutorial
 
Presentacion vim
Presentacion vimPresentacion vim
Presentacion vim
 
Improving your shell usage - 2009
Improving your shell usage - 2009Improving your shell usage - 2009
Improving your shell usage - 2009
 
Vi survival guide
Vi survival guideVi survival guide
Vi survival guide
 
Vim survival guide
Vim survival guideVim survival guide
Vim survival guide
 
NYPHP March 2009 Presentation
NYPHP March 2009 PresentationNYPHP March 2009 Presentation
NYPHP March 2009 Presentation
 

Recently uploaded

%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 

Recently uploaded (20)

tonesoftg
tonesoftgtonesoftg
tonesoftg
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 

What is Vim?

  • 1. WHAT IS VIM? A brief introduction by: Tatiana Tylosky
  • 2. WHAT IS VIM? VIM is a text editor that lives inside the terminal. VIM allows for more efficient coding and workflow!
  • 3. WHY VIM? “Why use vim when I already use sublime?” - To save time - Very efficient way of editing text - Vimscript is a programming language for text editing - Extremely customizable for your particular work habits - To be cool. :%s/cool/a total badass/g
  • 4. VIM BASICS Type “vim yourfilename” into your terminal to open your file in vim - Navigate text space in vim using hjkl - Use the vim command line K H J - “:” lets you enter the vim command line L - “:q” quits vim - “:w” writes changes (aka saves file changes)
  • 5. DON’T BE THIS GUY If you learn nothing today, please at least learn that you can exit vim using “:q” or “:q!”
  • 6. VIM MODES vim has two modes and normal mode isn’t “normal” #1 Normal Mode - Enter via [ESC] In this mode you have access to ENDLESS “vim commands” that are useful shortcuts for editing text Some fun examples: a – append, u – undo, dd – delete line #2 Text edit mode – Enter via a, i, and more Your keyboard acts likes you would expect
  • 7. VIM COMMANDS There are SO many vim commands that you will learn more and more new ones every day! Here are JUST A FEW useful examples - Action commands - ‘a’ for append - ‘d’ for delete - ‘u’ for undo - Movement commands - ‘0’ beginning of line - ‘w’ beginning of word - ‘$’ end of line But wait that is not all! Commands have additional tricks that make them even better!
  • 8. NORMAL MODE COMMANDS Normal mode commands have a format so that they are easily repeatable over a specific range. operator [number] motion Where: operator - is what to do, such as d for delete [number] - is an optional count to repeat the motion motion - moves over the text to operate on, such as w (word), $ (to the end of line), etc. Ex. 1. “d2w” - deletes the next two words Ex. 2. “vi(” - select inside parentheses
  • 9. NEXT LEVEL VIMSCRIPT Example: Mapping Mapping keys lets you tell Vim: If you type “:map <space> u” vim will now undo actions when you press the space bar “When I press this key, I want you to do this stuff instead of whatever you would normally do.”
  • 10. Things to do with the time you save using vim - Code more - Go hiking - Go to brunch - SO MUCH MORE!! With vim the possibilities are ENDLESS!
  • 11. VIM RESOURCES - Type “vimtutor” into your terminal - Play Vim Adventures http://vim-adventures.com/ - Read https://medium.com/brigade-engineering/crap-wrong-mode-9021375c2826 http://learnvimscriptthehardway.stevelosh.com/
  • 12. WHAT CRITICS ARE SAYING! “The power of Vim’s text manipulation shortcuts coupled with its extensibility have made other editors feel inadequate.” - some dude “Yes, Tatiana, I use vim.” - Saul Diez-Guerra “Cool kids use vim:wq” - anonymous source