SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
MOVEMENT (lines - ends at <CR>; sentence - ends at puncuation-space; section - ends at <EOF>)
By Character
By Line
nG to line n
0, $ first, last position on line
^ or _ first non-whitespace char on line
+, - first character on next, prev line
By Screen
^F, ^B scroll foward, back one full screen
^D, ^U scroll forward, back half a screen
^E, ^Y show one more line at bottom, top
L go to the bottom of the screen
z↵↵ position line with cursor at top
z. position line with cursor at middle
z- position line with cursor at
Marking Position on Screen
mp mark current position as p (a..z)
`p move to mark position p
'p move to first non-whitespace on line w/mark p
Miscellaneous Movement
fm forward to character m
Fm backward to character m
tm forward to character before m
Tm backward to character after m
w move to next word (stops at puncuation)
W move to next word (skips punctuation)
b move to previous word (stops at punctuation)
B move to previous word (skips punctuation)
e end of word (puncuation not part of word)
E end of word (punctuation part of word)
), ( next, previous sentence
]], [[ next, previous section
}, { next, previous paragraph
% goto matching parenthesis () {} []
EDITING TEXT
Entering Text
a append after cursor
A or $a append at end of line
i insert before cursor
I or _i insert at beginning of line
o open line below cursor
O open line above cursor
cm change text (m is movement)
Cut, Copy, Paste (Working w/Buffers)
dm delete (m is movement)
dd delete line
D or d$ delete to end of line
x delete char under cursor
X delete char before cursor
ym yank to buffer (m is movement)
yy or Y yank to buffer current line
p paste from buffer after cursor
P paste from buffer before cursor
“bdd cut line into named buffer b (a..z)
“bp paste from named buffer b
Searching and Replacing
/w search forward for w
?w search backward for w
/w/+n search forward for w and move down n lines
n repeat search (forward)
N repeat search (backward)
:s/old/new replace next occurence of old with new
:s/old/new/g replace all occurences on the line
:x,ys/old/new/g replace all ocurrences from line x to y
:%s/old/new/g replace all occurrences in file
:%s/old/new/gc same as above, with confirmation
Miscellaneous
n>m indent n lines (m is movement)
n<m un-indent left n lines (m is movement)
. repeat last command
U undo changes on current line
u undo last command
J join end of line with next line (at <cr>)
:rf insert text from external file f
^G show status
Vi Quick Reference
http://www.sfu.ca/~yzhang/linux
h
j
l
k
hjkl

Weitere ähnliche Inhalte

Andere mochten auch

Manipulacion de informacion con el uso de los comandos dml (data manipulation...
Manipulacion de informacion con el uso de los comandos dml (data manipulation...Manipulacion de informacion con el uso de los comandos dml (data manipulation...
Manipulacion de informacion con el uso de los comandos dml (data manipulation...Miguel Angel Prado Garcia
 
Nossa oficina de brincadeiras populares antigas corrigida
Nossa oficina de brincadeiras populares antigas corrigidaNossa oficina de brincadeiras populares antigas corrigida
Nossa oficina de brincadeiras populares antigas corrigidaGuilherme Ribeiro
 
Amplitude wave architecture - Test
Amplitude wave architecture - TestAmplitude wave architecture - Test
Amplitude wave architecture - TestKiran Naiga
 
CV-Yuyao-YANG-FR-Info
CV-Yuyao-YANG-FR-InfoCV-Yuyao-YANG-FR-Info
CV-Yuyao-YANG-FR-InfoYuyao YANG
 
Civil engineer - moutaz qudah
Civil engineer - moutaz qudahCivil engineer - moutaz qudah
Civil engineer - moutaz qudahmoutaz hasan
 
Elementos de la investigacion cientifica by Jorge Cazar
Elementos de la investigacion cientifica by Jorge CazarElementos de la investigacion cientifica by Jorge Cazar
Elementos de la investigacion cientifica by Jorge Cazarjorgecazar
 

Andere mochten auch (8)

Manipulacion de informacion con el uso de los comandos dml (data manipulation...
Manipulacion de informacion con el uso de los comandos dml (data manipulation...Manipulacion de informacion con el uso de los comandos dml (data manipulation...
Manipulacion de informacion con el uso de los comandos dml (data manipulation...
 
Nossa oficina de brincadeiras populares antigas corrigida
Nossa oficina de brincadeiras populares antigas corrigidaNossa oficina de brincadeiras populares antigas corrigida
Nossa oficina de brincadeiras populares antigas corrigida
 
Amplitude wave architecture - Test
Amplitude wave architecture - TestAmplitude wave architecture - Test
Amplitude wave architecture - Test
 
Columna lotiforme
Columna lotiformeColumna lotiforme
Columna lotiforme
 
CV-Yuyao-YANG-FR-Info
CV-Yuyao-YANG-FR-InfoCV-Yuyao-YANG-FR-Info
CV-Yuyao-YANG-FR-Info
 
Civil engineer - moutaz qudah
Civil engineer - moutaz qudahCivil engineer - moutaz qudah
Civil engineer - moutaz qudah
 
Δημόσια Βιβλιοθήκη Κέρκυρας
Δημόσια Βιβλιοθήκη Κέρκυρας Δημόσια Βιβλιοθήκη Κέρκυρας
Δημόσια Βιβλιοθήκη Κέρκυρας
 
Elementos de la investigacion cientifica by Jorge Cazar
Elementos de la investigacion cientifica by Jorge CazarElementos de la investigacion cientifica by Jorge Cazar
Elementos de la investigacion cientifica by Jorge Cazar
 

Kürzlich hochgeladen

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 

Kürzlich hochgeladen (20)

Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 

Vi quick reference

  • 1. MOVEMENT (lines - ends at <CR>; sentence - ends at puncuation-space; section - ends at <EOF>) By Character By Line nG to line n 0, $ first, last position on line ^ or _ first non-whitespace char on line +, - first character on next, prev line By Screen ^F, ^B scroll foward, back one full screen ^D, ^U scroll forward, back half a screen ^E, ^Y show one more line at bottom, top L go to the bottom of the screen z↵↵ position line with cursor at top z. position line with cursor at middle z- position line with cursor at Marking Position on Screen mp mark current position as p (a..z) `p move to mark position p 'p move to first non-whitespace on line w/mark p Miscellaneous Movement fm forward to character m Fm backward to character m tm forward to character before m Tm backward to character after m w move to next word (stops at puncuation) W move to next word (skips punctuation) b move to previous word (stops at punctuation) B move to previous word (skips punctuation) e end of word (puncuation not part of word) E end of word (punctuation part of word) ), ( next, previous sentence ]], [[ next, previous section }, { next, previous paragraph % goto matching parenthesis () {} [] EDITING TEXT Entering Text a append after cursor A or $a append at end of line i insert before cursor I or _i insert at beginning of line o open line below cursor O open line above cursor cm change text (m is movement) Cut, Copy, Paste (Working w/Buffers) dm delete (m is movement) dd delete line D or d$ delete to end of line x delete char under cursor X delete char before cursor ym yank to buffer (m is movement) yy or Y yank to buffer current line p paste from buffer after cursor P paste from buffer before cursor “bdd cut line into named buffer b (a..z) “bp paste from named buffer b Searching and Replacing /w search forward for w ?w search backward for w /w/+n search forward for w and move down n lines n repeat search (forward) N repeat search (backward) :s/old/new replace next occurence of old with new :s/old/new/g replace all occurences on the line :x,ys/old/new/g replace all ocurrences from line x to y :%s/old/new/g replace all occurrences in file :%s/old/new/gc same as above, with confirmation Miscellaneous n>m indent n lines (m is movement) n<m un-indent left n lines (m is movement) . repeat last command U undo changes on current line u undo last command J join end of line with next line (at <cr>) :rf insert text from external file f ^G show status Vi Quick Reference http://www.sfu.ca/~yzhang/linux h j l k hjkl