3

I never really use the other commands, and it would be nice to be able to indent/dedent lines this way. The solution for this may be similar to the solution for the question I asked here; perhaps involving temporarily setting timeoutlen=0. Anyone have any ideas?

1 Answer 1

5

You can use <nowait> option to tell Vim not to wait for any more keys and stop looking for longer mappings.

nnoremap <nowait> > >>
nnoremap <nowait> <lt> <lt><lt>

Note: <nowait> requires Vim 7.4+

Personally, I would not recommend these mappings. You can use >> or >{motion} to do your initial indent/shift then use . to repeat the command.

For more help see:

:h :map-nowait
:h key-notation
:h .
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.