ALL THESE COMMANDS IN ESC MODE:
using the commands viewing the screen without using cursor
one more thing you have to remember when you come across learning vi editor is you shouldn't use the mouse think you don't have mouse ...................
W - blank delimited word to right
B - blank delimited word to left
E - end of the blank delimited word to right
ctrl+D - farword one half full screen
ctrl+U - backward one half full screen
ctrl+F - farword one full screen
ctrl+B - backward one full screen
H - to top of the screen
M - to middle of the screen
L - to the bottom of the screen
deleting commands:(deleting commands start with 'd')
D - deletes to end of the line
dd - deletes current
dw - deletes a word from the beginning of cursor
ctrl+H - erase a bet
ctrl+u - kills line
ctrl+w - kill word
dw + i = cw
dtc - deletes until the next charecter c on the current line
dt; - deletes upto next ;
nx - deletes the number of charecters specified by n, from starting
nX - deletes the n charecters before the current charector
d0 - deletes to beginning line
d3w - deletes upto 3 words (or) upto end of the 3rd word
db - deletes to beginning of word
d^ - deletes to the beginning of the line
dW - deletes to the end of blank - delimited word
dB - deletes to beginning of blank - delimited word
d7B - deletes to 7th previous beginning of blank - delimited word
d) - deletes to end of sentence
d( - deletes to beginning of sentence
d} - deletes to end of paragraph
d{ - deletes to beginning of paragraph
5dd - deletes 5 lines from the cursor position
dL - deletes through last line of the screen
dM - delets through middle line on the screen
dH - delets through first line on the screen
d1G - deletes through beginning of the buffer
dG - deletes through end of the buffer
j$ - move the cursor to the end of the next line
dtc - deletes to the next charecter c on the current line
dt; - deletes upto next ;
C - changes to end of the line
ncc[eg:n=5]- changes the number of lines specified by n
APPENDING THE CHARECTERS:
A - AT THE END OF THE LINE TEXT ADDS
i - insert mode where we can input from current position
a - insert next charecter at the end of the line
o - open a line below current line
O - open a line above current line
Yanking of the charecters [nothing but like copying ]
'' - moves cursor to previous position
'x - moves cursor to x
yy - copying
nyy[i.e:n=5]- coping n number of lines
Y - yanking upto end of line
P - paste text before
p - paste text after
No comments:
Post a Comment