Alt key Mapping

2010-12-10 Thread dvd7e
(I did some research on this for a while, but to no avail, so I'm posting the question here.) I would like to map Alt+char to certain functions in GVIM. I'm using GVIM 7.2 on Solaris machine, using dtterm (or xterm) for my terminal. For example, I would like to use Alt+j and Alt+k to move left an

Re: Alt key Mapping

2010-12-10 Thread AK
On 12/10/2010 10:23 AM, dvd7e wrote: (I did some research on this for a while, but to no avail, so I'm posting the question here.) I would like to map Alt+char to certain functions in GVIM. I'm using GVIM 7.2 on Solaris machine, using dtterm (or xterm) for my terminal. For example, I would like

Re: Alt key Mapping

2010-12-10 Thread Chris Jones
On Fri, Dec 10, 2010 at 10:23:45AM EST, dvd7e wrote: [..] > For example, I would like to use Alt+j and Alt+k to move left and > right across tabs. So I have this in my .vimrc: > > :map :tabprev > > But this doesn't work. It DOES work if I map it to the control key. > When I look at the mapping

Re: Alt key Mapping

2010-12-11 Thread John Little
Hi > I would like to map Alt+char to certain functions in GVIM. I'm using > GVIM 7.2 on Solaris machine, using dtterm (or xterm) for my terminal. Firstly, with gvim the terminal is irrelevant. Are you really using gvim, not vim in a terminal? > For example, I would like to use Alt+j and Alt+k..

Re: Alt key Mapping

2010-12-13 Thread Ben Fritz
On Dec 10, 9:23 am, dvd7e wrote: > (I did some research on this for a while, but to no avail, so I'm > posting the question here.) > > I would like to map Alt+char to certain functions in GVIM. I'm using > GVIM 7.2 on Solaris machine, using dtterm (or xterm) for my terminal. > > For example, I w

ALT key mapping annoyance

2011-03-17 Thread Marco
I want to assign a mapping like :nmap ... But the result is that the help menu (in gvim) pops up. I unable to find any mappings to in the :map output. :unmap doesn't work as well. Other ALT key mapping work as expected. How can I get rid of this help menu annoyance and assign my ma

Re: ALT key mapping annoyance

2011-03-17 Thread Jürgen Krämer
Hi, Marco wrote: > I want to assign a mapping like :nmap ... But the result is that the > help menu (in gvim) pops up. I unable to find any mappings to in the > :map output. :unmap doesn't work as well. Other ALT key mapping work as > expected. How can I get rid of this he

Re: ALT key mapping annoyance

2011-03-17 Thread Marco
On 2011-03-17 Jürgen Krämer wrote: > > I want to assign a mapping like :nmap ... But the result is that > > the help menu (in gvim) pops up. I unable to find any mappings to > > in the :map output. :unmap doesn't work as well. Other ALT key > > mapping work as e

alt key mapping in insert mod

2010-10-21 Thread lainme
Hi, I am using vim in roxterm, and have problem for maping alt key in insert mod. I know roxterm will generate escape sequence for meta key, and tried the tips in http://vim.wikia.com/wiki/Fix_meta-keys_that_break_out_of_Insert_mode. But no lucky. The two snippets provided in the tips works, but

ALT key mapping in windows 10

2018-12-20 Thread Deepak kumar
Hi Vim Users, I am a vim user on Unix like machines but for my current project, I have to use it on windows 10 machine. how to map ALT+ LEFT | RIGHT | UP | DOWN keys in vimrc file? currently, I using like this: nmap :wincmd k Can anyone please suggest vim configuration on windows(including NE

Re: alt key mapping in insert mod

2010-10-23 Thread lainme
This problem is solved. The following snippet works but generate additional characters.(from http://vim.wikia.com/wiki/Fix_meta-keys_that_break_out_of_Insert_mode) for i range(97,122) > let c = nr2char(i) > exec "map \e".c." " > exec "map! \e".c." " > endfor > > To solve the problems, I fol

Re: ALT key mapping in windows 10

2018-12-20 Thread John Little
On Friday, December 21, 2018 at 2:50:06 AM UTC+13, Deepak kumar wrote: > how to map ALT+ LEFT | RIGHT | UP | DOWN keys in vimrc file? Generally, to find what vim can map, enter insert mode, type ctrl-v then what you want to map. If you see something, then that's what you can map. If not, vim

Re: ALT key mapping in windows 10

2018-12-20 Thread Tony Mechelynck
On Fri, Dec 21, 2018 at 12:36 AM John Little wrote: > > On Friday, December 21, 2018 at 2:50:06 AM UTC+13, Deepak kumar wrote: > > > how to map ALT+ LEFT | RIGHT | UP | DOWN keys in vimrc file? > > Generally, to find what vim can map, enter insert mode, type ctrl-v then what > you want to map. I

Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
o the old Alt key mapping problem. After examining all possibilities I think setting the key codes in Vim is the most practical: function! s:ConsoleMapAltKey() let char= 'a' while char <= 'z' exec "set =\".char

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
My Vim version is 8.0.540 if it helps -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Go

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Tony Mechelynck
On Wed, Apr 5, 2017 at 3:48 PM, Jacky Liu wrote: > My Vim version is 8.0.540 if it helps What does ":verbose set timeoutlen" answer? I recommend someting like the following settings: if exists('+timeout') " should a timeout be applied to keys and mappings? " 'timeout' true=yes false=no " 'ttime

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
> > What does ":verbose set timeoutlen" answer? > > I recommend someting like the following settings: > > if exists('+timeout') > " should a timeout be applied to keys and mappings? > " 'timeout' true=yes false=no > " 'ttimeout' (not used if 'timeout' is true) time out on key codes > " 'timeout

Re: Alt key mapping: "set " works in Normal/Command mode, but not in Insert mode

2017-04-05 Thread Jacky Liu
After a few tries I found something that looks a little bit strange to me: the Insert mode meta keymapping actually works, *only if* you set at least one mapping with the leading . Previously I tried my best to avoid mapping the leading keys, although it works, because it would introduce ambig