I want to use the Tab key to indent a block of text and Shift-Tab

key to unindent a block of text. How do I map the keys to do this? This behavior is similar to textpad, visual studio, etc. Use the following mapping:


    :nnoremap  >>


    :vnoremap  >


Note, that the <S-Tab> mapping will work only if Vim receives the correct key sequence. This is mostly the case with GUI Vim.

Comments (1)

Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE

Speak Your Mind