What are some lesser-known Vim commands?
What are some lesser-known Vim commands?
Other urls found in this thread:
:q
:%s/op/faggot/g
:r! fortune | cowsay
.
repeat the last edit where the cursor is now.
:!emacs %
:q!
;
Repeat last ftF or T command
,
Same, but in reverse
The donate command.
:help!
i prefer the elisp port
M-x feed-niggers
gv reselect last selected region
`] go to bottom of pasted text
pressing o while selecting will allow you to change the selection's start
= auto-indents a region
: while selecting will allow you to perform regex on selected block
protip: stop using tabs and learn the buffer system
>pressing o while selecting will allow you to change the selection's start
:qa!
-quit everything --help panels reg lists splits etc.
caw
-change a word
c4w
-change 4 words
ci)
-change inside parentheses
(ca)
-delete parentheses and whats inside them
ci}
ci]
:earlier 3m
make my shit the way it was 3 minutes ago.
:later 1m
learn to record macros.
not hard.
thank me later.
:sort
Is pretty neat
:Buffdo "normal gg=G | :w"
Was super helpful at work the other day
>tfw a and i as movement commands
>: while selecting will allow you to perform regex on selected block
Not just regex but any ex command in general. You can even do something like :'
thx man, I was trying to quit this shit for week now.. finally I can use my terminal again for other things
33oFizzqqABuzz5kq19@q:%s/^$/\=line('.')
fukken hired
ty but im already employed and paid as a neet full time