-
-
Notifications
You must be signed in to change notification settings - Fork 2
9.3. Operator Plus Motion
shinokada edited this page Mar 11, 2014
·
2 revisions
Notes taken from Practical Vim by Drew Neil
c,d,y,gU
g~ # swap case
gu # make lowercase
! # filter(motion) lines through an external program
= # Autoindent
< # shift left
> # shift right
gUaw # to convert the current word to uppercase.
dap # delete a paragraph
gUap # Make a paragraph to uppercase
dd # delete the line
>> # indent the line
gUgU # or gUU to uppercase the line
This comments and uncomments as well. Use .
for repeating.
3\\j # comment out 3 lines below including the current line
4\\k # comment out 4 lines above including the current line
\\ap # or gcap tocomment out a paragraph
\\G # comment out the current line to the end of the file
\\\ # or gcc to comment the current line
gcu # to uncomment
Read about indentation without plugins.
gg=G # autoindent the entire file
# if you have vim-textobj-entire
=ae # or =ie
# if you have vim-textobj-entire and vim-commentary
\\ae # comment entire file and indent at the same time
Important: The Tables of Content are generated. Any change will be overridden on the next update.
For more information: GitHub Wikifier