Answer by Alexander van Trijffel for Traversing text in Insert mode
For some frequently used movements and actions, I have defined the following mappings. This saves a keystroke compared to the CTRL+O combination and since I need them frequently, they pay off in the...
View ArticleAnswer by Shyam Habarakada for Traversing text in Insert mode
If you are a vim purist, skip reading this answer. OTOH, if you are new to vim and are looking for a few helpful tips you wont find in the many hundred of vim tutorials and blogs, read on... :-) A few...
View ArticleAnswer by everett1992 for Traversing text in Insert mode
Many people in the Vim community argue that you should not navigate in Insert mode, that it is not the Vim way. I think this is an incorrect sentiment learned when transitioning from standard editors...
View ArticleAnswer by felix for Traversing text in Insert mode
While in insert mode, use CtrlO to go to normal mode for just one command: CTRL-O h move cursor left CTRL-O l move cursor right CTRL-O j move cursor down CTRL-O k move cursor up which is probably the...
View ArticleAnswer by pfries for Traversing text in Insert mode
You can create mappings that work in insert mode. The way to do that is via inoremap. Note the 'i' at the beginning of the command (noremap is useful to avoid key map collisions). The corollary is 'n'...
View ArticleAnswer by Alex for Traversing text in Insert mode
To have a little better navigation in insert mode, why not map some keys? imap <C-b> <Left> imap <C-f> <Right> imap <C-e> <End> imap <C-a> <Home> "...
View ArticleAnswer by Aaron Thoma for Traversing text in Insert mode
Insert mode Movement hjkl Notwithstanding what Pavel Shved said - that it is probably more advisable to get used to Escaping Insert mode - here is an example set of mappings for quick navigation within...
View ArticleAnswer by Erich Kitzmueller for Traversing text in Insert mode
In GVim, you can use the mouse. But honestly, what's wrong with using the arrow keys? There's a reason why they are on a keyboard.
View ArticleAnswer by P Shved for Traversing text in Insert mode
You seem to misuse vim, but that's likely due to not being very familiar with it. The right way is to press Esc, go where you want to do a small correction, fix it, go back and keep editing. It is...
View ArticleAnswer by Peter van der Heijden for Traversing text in Insert mode
You could use imap to map any key in insert mode to one of the cursor keys. Like so: imap h <Left> Now h works like in normal mode, moving the cursor. (Mapping h in this way is obviously a bad...
View ArticleAnswer by Johan for Traversing text in Insert mode
Sorry but vim don't work that way. You should switch to "normal" mode, navigate and then go back to insert again.
View ArticleAnswer by Amber for Traversing text in Insert mode
I believe Home and End (and PageUp/PageDn) also work normally while in insert mode, but aside from that, I don't believe there are any other standard keys defined for text traversal.
View ArticleTraversing text in Insert mode
While in Insert Mode in Vim, is there any way to traverse the text moving some characters forward and backward other than using the arrow keys? If I press h, j, k and l while in Insert mode, the...
View ArticleAnswer by user12711 for Traversing text in Insert mode
Yes, there is a way. You can use gj and gk inside Insert Mode to move up (backwards) and down (forwards) within a single logical-line that wraps around numerous visual-lines. That is handy if you have...
View Article