문제

Okay so I want to create a custom command (and place it in my .vimrc file using the :command command, if possible) which basically indents the line which the cursor is on and then moves to the next line. Any idea on how to do this?

도움이 되었습니까?

해결책

Do this:

 :nnoremap Q >>j

This will map Q to do what you want.

You can replace Q with anything.

You can make the above mapping permanent by putting it in your .vimrc (with no : character).

For more info check out :h map

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top