What are some lesser-known Vim commands?
:q
:%s/op/faggot/g
:r! fortune | cowsay
.
repeat the last edit where the cursor is now.
>>61789087
:!emacs %<cr>
:q!
>>61789087
;
Repeat last ftF or T command
,
Same, but in reverse
>>61789087
The donate command.
https://www.vi-improved.org/vim-tips/
:help!
>>61789330
i prefer the elisp portM-x feed-niggers
>>61789087
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
>>61789414
>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
>>61789582
>tfw a and i as movement commands
>>61789414
>: 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:'<,'> normal [some normal mode keystrokes]
Another one of my favorite is @:, which repeat the last ex command. Pretty useful for things like cycling through buffers/tabs/anything without having to set keymaps.
>>61789123
thx man, I was trying to quit this shit for week now.. finally I can use my terminal again for other things
33o<CR>Fizz<CR><Esc>qqABuzz<Esc>5kq19@q:%s/^$/\=line('.')<CR>
>>61793394
fukken hired
>>61793418
ty but im already employed and paid as a neet full time