New answers tagged

0

I find that it is very rare for me to want highlighting at all and when I need highlighting it is just for a brief moment. My solution is nnoremap <Leader>/ set hls!<CR> This enables highlighting when you press \/ and disables it again if you press again. This gives easy access to highlighting in the rare cases when you need it.


0

If you want to indent html, use the indent operator = with the inner-tag text object it: Place your cursor on the tag whose contents need indenting Press =it


1

Is sed an option? sed -r '/<blockquote>/,/<\/blockquote>/{s/^(\s\s\+)(<[^>].\{-}>)/\1 \2/g}'


1

/asdfasdf This has the advantage that you do not have to type it exaclty. The disadvantage is, that there is a about 1:68719476736 chance in a 4096 byte file that this does not work and your cursor will jump to a different place. This chance increases for larger files.


Top 50 recent answers are included