p paste buffer below cursor line P paste buffer above cursor line.yy copy line into paste buffer dd cut line into paste buffer.d deletes in the direction of the motion.dw delete word D delete to end of line dd delete whole line.ci( change inside parentheses (see text object selection for more examples).c changes text in the direction of the motion.cw change word C change to end of line cc change whole line.r replace single character R replace multiple characters.o open new line below O open new line above.a append text after cursor A append text after end of line.i insert text at cursor I insert text at start of line.^E scroll one line up ^Y scroll one line downĪll insertion commands are terminated with to return to command mode.^F forward full screen ^B backward full screen.0 start of line ^ first non-whitespace.e end word (by punctuation) E end word (by spaces).b back word (by punctuation) B back word (by spaces). w next word (by punctuation) W next word (by spaces).Commands preceded by : are executed on the command line at the bottom of the screen.gets you out of any mode and back to command mode.Nearly all commands can be preceded by a number for a repeat count.more useful tips and graphical cheat sheet.Here's a tip sheet I wrote up once, with the commands I actually use regularly: References
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |