Yeah...following a simpler idea, it'd become something like these: imap <C-Left> <Esc>bi imap <C-Right> <Esc>wi imap <C-S-Left> <Esc>A imap <C-S-Right> <Esc>I
On Sat, Dec 20, 2008 at 1:02 AM, Marc Weber <marco-owe...@gmx.de> wrote: > You still haven't corrected this i (should be a). Using <esc>A is > much shorter anyway :-) Thus just use: >> imap <C-S-Right> <Esc>A > > On linux you can do something like > xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' > to map capslock to <esc>. Then typing <caps>b is even more convinient > than using the default ctrl-left and ctrl-right combos. Your <esc> > mapping stuff won't work with visual mode. So do yourself a favour, > read :h motion once to see what mappings are availible. Repeat this once > a month till you feel you know most mappings you really need. You'll > find mappings such as tT fF (and using ; and , (repeat last movement) > which are much better than ctrl- quirks. And you'll be able to use them > in visual mode as well. Yeah, believe me...I'm a shortcuts addict, so I try hard to learn the most useful of them in vim. But I don't know if you got the main idea on this, which is: * having shortcuts in *insert mode* for jumping a word (forward and backward) and going to the current line edges, without changing the mode by hand (like typing ESC), because I want something with lower cost to my hands like Ctrl + something in insert mode. And mapping ctrl + arrows would give me a very good user experience for its ease of use. > You'll be more precise with vim mappings as well. Example: > Lookup the difference e E w W. Which behaviour do you want for c-right? Yeah, I understand. That's why I really meant w for word forwarding and b for word backwarding. > I know its hard to learn something you're not used to. Put it will pay off > soon > if you spend some time within vim. Sure. I'm in that philosophy too. I use to spend a precious time digging vim features and any other tools that could save me some valuable time in long term. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---