LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   map i, o, v, in vim (https://www.linuxquestions.org/questions/linux-software-2/map-i-o-v-in-vim-4175598520/)

drunkenfist 01-29-2017 11:32 PM

map i, o, v, in vim
 
Hi,

I've remapped my keyboard so i and o are on home row. I'd like to use them for navigation so I want to map i to I, v to V, o to O, among others. Those are the ones I can think of for now. I can’t find it what I want through Google and documentation is difficult for me to understand, e.g., :map. I want to practice with some tutorials already but I get the impression I'd have to read a whole book before I can even start. Any quick tips? Also, if i map ZZ to zz, would it be a bad idea? Thanks.

pan64 01-30-2017 12:34 AM

I do not think remapping those keys are really good idea, but it is actually your own decision.
open vim, enter :help map
and here is the tutorial: http://vim.wikia.com/wiki/Mapping_ke...torial_(Part_1)

drunkenfist 01-30-2017 01:44 AM

I've seen the link before and saved and planned to reference it later or as I go along. Like I said, it's Greek to me (newbie). I can read Autohotkey scripts in Windows and xml files for Openbox more or less but out of my depth here, e.g., the asterisk and pound sign and other words/commands intimate diving deep into the inner workings of the application. Anyway, just for the three letters i, o and v, if I modify them as I suggested, would they be in conflict with other mapping/key bindings? Is there a list that mention those three? (I'll take full responsibility. lol)

pan64 01-30-2017 02:01 AM

i and I are both in use, o and O also, so that means you will loose the original I and O.
I suggest you to look for a vi keymap, like this: http://www.viemu.com/vi-vim-cheat-sheet.gif

drunkenfist 01-30-2017 02:12 AM

Thanks. Saved time.


All times are GMT -5. The time now is 07:47 PM.