Joined November 2012
·

Ryan Kois

Developer at Aten Design Group
·
Denver, CO, USA
·
·
·

Posted to Replace tabs with spaces in Vim over 1 year ago

Note, that this only works if you have :set noexpandtab

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.

In order to make the shortcut more second-nature, try thinking of xp standing for 'transpose'.

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,483 Total ProTip Views