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?

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

5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
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-...Steffen Staab
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 

Recently uploaded (20)

Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
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-...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 

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