Joined November 2012
·
Posted to
Replace tabs with spaces in Vim
over 1 year
ago
That is so much better than using %s/\t/ /g!!!!
Posted to
Delete text inside quotes in VIM
over 1 year
ago
It's not just "any character", but rather, a supported text object. You can also delete the outer quotes as well by using the text object a"
See :h text-objects for a list of supported text objects.
Posted to
Vim: Swapping characters to quickly fix typos
over 1 year
ago
In order to make the shortcut more second-nature, try thinking of xp standing for 'transpose'.
Posted to
Get rid of search highlighting with return
over 1 year
ago
For some reason the ^M didn't map for me, not sure why.
I ended up using:
nmap <CR> :nohlsearch<CR>
Thanks for that though, the lingering highlighting was driving me crazy! I would usually just do a search for 'asdfasdfasdf', heh :)
Achievements
239 Karma
12,879 Total ProTip Views

Honey Badger
Have at least one original Node.js-specific repo

Altruist
Increase developer well-being by sharing at least 20 open source projects

Mongoose
Have at least one original repo where Ruby is the dominant language

Forked
Have a project valued enough to be forked by someone else

Nephila Komaci 3
Have at least three original repos where PHP is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Nephila Komaci
Have at least one original repos where PHP is the dominant language

Charity
Fork and commit to someone's open source project in need
Note, that this only works if you have :set noexpandtab