LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-29-2017, 11:32 PM   #1
drunkenfist
LQ Newbie
 
Registered: Jan 2017
Distribution: MX
Posts: 14

Rep: Reputation: Disabled
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.
 
Old 01-30-2017, 12:34 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,343

Rep: Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414
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)
 
Old 01-30-2017, 01:44 AM   #3
drunkenfist
LQ Newbie
 
Registered: Jan 2017
Distribution: MX
Posts: 14

Original Poster
Rep: Reputation: Disabled
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)
 
Old 01-30-2017, 02:01 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 11,343

Rep: Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414Reputation: 3414
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
 
1 members found this post helpful.
Old 01-30-2017, 02:12 AM   #5
drunkenfist
LQ Newbie
 
Registered: Jan 2017
Distribution: MX
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks. Saved time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to map special keys in vim, e.g. ctrl+< 915086731 Programming 2 04-25-2011 10:22 PM
vim map Caps Lock to Escape sadarax Linux - General 3 01-30-2010 01:16 PM
Vim map CTRL-S indenting problem sadarax Linux - General 6 01-17-2008 01:52 PM
VIM - How to map Ctrl-F5? BiThian Linux - General 6 10-26-2006 04:15 PM
Vim map - to _ and the reverse sadarax Linux - Software 1 08-27-2006 10:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration