Vim - Indent multiple lines with tab?

To select and highlight your text, you need to start using visual mode (I usually do this by hitting v ) and select your text using the standard motions (such as h j k and l ) To create mappings for use in visual mode you need :vmap :vmap > :vmap.

To select and highlight your text, you need to start using visual mode, (I usually do this by hitting v) and select your text using the standard motions (such as h, j, k and l) . To create mappings for use in visual mode you need :vmap... :vmap > :vmap rightwards. Sometimes it's better just to learn the Vim (or even Vi) keys, and then you can use any installation, not just the one with your .vimrc.

For instance, you've put: imap.

If I use my mouse to highlight, I use my right hand. Are both on the right side of the keyboard. Also it's out of habit since every editor I've used did this.

– user894091 Sep 17 at 4:01 @user894091: The mouse? Have you tried using the keyboard? You'll find you can go much quicker that way (with a little practise)!

– Johnsyweb Sep 17 at 4:06 Your recommendation is quite good. I'll ditch the old highlight with mouse and tab paradigm. Do you still use the tab key for single line indenting or have you switched off to > for that too?

– user894091 Sep 17 at 4:11 1 @user894091: Happy to help. I use the standard keybindings for the vast majority of editing actions. – Johnsyweb Sep 17 at 4:13.

In insert mode you can use control-d and control-t to remove/add an indent (respectively). So, replace imap with imap In visual mode you can highlight a block and then hit , but if you'd like it to be tab and shift-tab, you can set it with vmap like you have done for the others.

3 That's still a bad idea. How do you insert a tab character? – Johnsyweb Sep 17 at 4:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions