Re: mapping a substitute for the Esc key?

2013-02-18 Thread Benjamin Klein
On Feb 18, 2013, at 7:52 PM, Steve Litt sl...@troubleshooters.com wrote: Thank you! You're welcome -- glad to be of help. :) I was going to say that I borrowed that one from Steve Losh's excellent (and lengthy) Coming Home To Vim (http://stevelosh.com/blog/2010/09/coming-home-to-vim/), but I

Re: mapping a substitute for the Esc key?

2013-02-18 Thread Erik Christiansen
On Feb 18, 2013, at 4:54 PM, Steve Litt sl...@troubleshooters.com wrote: Question for all of you: What's your favorite substitute for Esc, whether a keystroke, key combination, or key sequence? The tiny and distant Esc key on laptops quickly forced me to find something better, primarily for

mapping a function with key

2013-02-08 Thread rudrab
I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf -- -- You received this message from the vim_use maillist. Do

Re: mapping a function with key

2013-02-08 Thread Rudra Banerjee
So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. On Fri, 2013-02-08 at 15:12 +, Rudra Banerjee wrote: Thanks for your reply. I use vim-Latex suite On Fri, 2013-02-08 at

Re: mapping a function with key

2013-02-08 Thread rudrab
Ah...I managed to fix it almost with nmap in place of map. But one problem is still there: it inserts the lines at the top of the file. How can I make it insert at the cursor position? -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: mapping a function with key

2013-02-08 Thread Marcin Szamotulski
On 15:29 Fri 08 Feb , Rudra Banerjee wrote: So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. Functions should be called not executed: map f12 :call Insrt_fram()

RE: mapping a function with key

2013-02-08 Thread John Beckett
rudrab wrote: I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf Here is the complete code. In normal mode,

Mapping control+j not working

2013-02-05 Thread Juanmi
Hey I have this mapping for easy navigation on windows map C-h C-wh map C-j C-wj map C-k C-wk

Re: Mapping control+j not working

2013-02-05 Thread Juanmi
El martes, 5 de febrero de 2013 15:36:10 UTC+1, Juanmi escribió: Hey I have this mapping for easy navigation on windows map C-h C-wh map C-j C-wj

Re: Mapping control+j not working

2013-02-05 Thread vim
On Tue, 5 Feb 2013 06:38:23 -0800 (PST), Juanmi wrote: El martes, 5 de febrero de 2013 15:36:10 UTC+1, Juanmi escribió: Hey I have this mapping for easy navigation on windows map C-h C-wh map C-j C-wj map C-k C-wk map C-l C-wl and control+h, control+k, control+l works fine

Re: Mapping for switching windows

2013-01-26 Thread Ben Fritz
On Friday, January 25, 2013 5:01:25 PM UTC-6, Aggelos Kolaitis wrote: Hello List,              Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ?     I guess mapping shift-w to do this would be great for fast switching Add

Re: Mapping for switching windows

2013-01-26 Thread neoaggelos
: Hello List, Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc-w Ctrl-w Ctrl-w is used to go

Re: Mapping for switching windows

2013-01-26 Thread Christian Brabandt
Hi neoaggelos! On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Hmmm... You're right, but to my knowledge, W is the same as w. So, it can be used for that purpose... It is not. See :h word :h WORD regards, Christian -- Die Weltanschauungen mancher Menschen gleichen lächelnden Festungen.

Re: Mapping for switching windows

2013-01-26 Thread neoaggelos
Well, then W is the same as Ctrl-left and ctrl-right which work at normal, visual and normal mode. On Jan 26, 2013, at 11:37 PM, Christian Brabandt cbli...@256bit.org wrote: Hi neoaggelos! On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Hmmm... You're right, but to my knowledge, W is the

Re: Mapping for switching windows

2013-01-26 Thread Christian Brabandt
Hi neoaggelos! Please don't top poste. On Sa, 26 Jan 2013, neoagge...@yahoo.gr wrote: Well, then W is the same as Ctrl-left and ctrl-right which work at normal, visual and normal mode. The problem with ctrl is, it does not reliably work in all terminals. regards, Christian -- Man soll die

Re: Mapping for switching windows

2013-01-26 Thread darkweasel
Am 2013-01-26 23:03, schrieb Christian Brabandt: The problem with ctrl is, it does not reliably work in all terminals. And in addition, the ability to use alphanumeric keys to move around is the very reason many people (at least me) use vim and not something like kate or gedit or Notepad or

Re: Mapping for switching windows

2013-01-26 Thread skeept
so if I use ctrl-o I can use :Jump and go back. if you use c-i a lot you could define a mapping say ,i to act as c-i. Regards, Jorge -- -- 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

Mapping for switching windows

2013-01-25 Thread Adolfo Olivera
Hello List, Does anyone have some examples on mappings to switch windows faster *CTRL-W, h and CTRL-W, l* ? -- -- 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

Re: Mapping for switching windows

2013-01-25 Thread neoaggelos
Hello List, Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc-w Ctrl-w Ctrl-w is used to go to the next window

Re: Mapping for switching windows

2013-01-25 Thread Adolfo Olivera
Thanks. What does shift-w exactly does? From what I see it goes down a line? On Fri, Jan 25, 2013 at 8:01 PM, neoagge...@yahoo.gr wrote: Hello List, Does anyone have some examples on mappings to switch windows faster *CTRL-W, h and CTRL-W, l* ? I guess mapping shift-w to do

Re: Mapping for switching windows

2013-01-25 Thread Adolfo Olivera
...@yahoo.gr wrote: Hello List, Does anyone have some examples on mappings to switch windows faster *CTRL-W, h and CTRL-W, l* ? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc-w Ctrl-w Ctrl-w is used to go

Re: Mapping for switching windows

2013-01-25 Thread neoaggelos
have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc-w Ctrl-w Ctrl-w is used to go to the next window mapping this to shift-w makes it faster

Re: Mapping for switching windows

2013-01-25 Thread Michael Hernandez
? On Fri, Jan 25, 2013 at 8:01 PM, neoagge...@yahoo.gr wrote: Hello List, Does anyone have some examples on mappings to switch windows faster CTRL-W, h and CTRL-W, l ? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc

Re: Mapping for switching windows

2013-01-25 Thread Sven Guckes
* Adolfo Olivera olivera.ado...@gmail.com [2013-01-26 00:18]: Does anyone have some examples on mappings to switch windows faster [than] CTRL-W,h and CTRL-W,l? yes: map left c-wh map right c-wl map upc-wk map down c-wj happy? but remember: the fastest way to use any program is

Re: Mapping for switching windows

2013-01-25 Thread neoaggelos
? I guess mapping shift-w to do this would be great for fast switching Add this to your vimrc :map s-w escc-wc-w Ctrl-w Ctrl-w is used to go to the next window mapping this to shift-w makes it faster. -- -- You received this message from the vim_use maillist. Do not top

Re: Mapping for switching windows

2013-01-25 Thread Andy Spencer
On 2013-01-25 19:57, Adolfo Olivera wrote: Does anyone have some examples on mappings to switch windows faster *CTRL-W, h and CTRL-W, l* ? When I use win32 gvim I use: :map Alt+h C-Wh :map Alt+j C-Wj :map Alt+k C-Wk :map Alt+l C-Wl :map Alt+i gT :map Alt+o gt I also have

Re: Buffer-local unmap of global mapping

2013-01-15 Thread Michael Henry
and vim-surround plugins, so I've had to work around the problem you describe. My current solution for the ``ds`` mapping is: augroup local_bufExplorer autocmd! autocmd BufEnter \[BufExplorer\] unmap ds autocmd BufLeave \[BufExplorer\] nmap ds PlugDsurround augroup END First

Buffer-local unmap of global mapping

2013-01-13 Thread Michael Henry
defines a normal-mode buffer-local mapping for CTRL-P. The problem is that when I press CTRL-P in the Tagbar window, Vim assumes that it might be the prefix for the global mappings for CtrlP, so it waits for 'timeoutlen' before deciding to invoke the single-key buffer-local mapping for Tagbar

Re: Buffer-local unmap of global mapping

2013-01-13 Thread Andy Wokula
-key mappings. For example, the Tagbar plugin defines a normal-mode buffer-local mapping for CTRL-P. The problem is that when I press CTRL-P in the Tagbar window, Vim assumes that it might be the prefix for the global mappings for CtrlP, so it waits for 'timeoutlen' before deciding to invoke

Re: Menu trigger a user mapping

2012-12-22 Thread Nicolas Dermine
On 22 Dec 2012 15:52, David Fishburn dfishburn@gmail.com wrote: Not quite sure how to set this up. When I create a menu item it usually calls a command vnoremenu script MyMenu.Test :TestCR What I want it to do instead is trigger one of my maps. vnoremenu script MyMenu.Test \tt

tmux and mapping

2012-12-14 Thread Gautier DI FOLCO
Hi all, I have an issue with tmux (again), I'm trying to map C-Up and C-Down, but codes have changed, so, with a ^K I have remapped to [A and [B as follow: nmap [A ]e nmap [B [e But it doesn't work, have you got the same issue or an idea of the solution? For your help, Thanks by advance. --

Re: tmux and mapping

2012-12-14 Thread Christian Brabandt
Hi Gautier! On Fr, 14 Dez 2012, Gautier DI FOLCO wrote: I have an issue with tmux (again), I'm trying to map C-Up and C-Down, but codes have changed, so, with a ^K I have remapped to [A and [B as follow: nmap [A ]e nmap [B [e But it doesn't work, have you got the same issue or an idea of

Re: tmux and mapping

2012-12-14 Thread Gautier DI FOLCO
2012/12/14 Christian Brabandt cbli...@256bit.org Hi Gautier! On Fr, 14 Dez 2012, Gautier DI FOLCO wrote: I have an issue with tmux (again), I'm trying to map C-Up and C-Down, but codes have changed, so, with a ^K I have remapped to [A and [B as follow: nmap [A ]e nmap [B [e But

How to get {lhs} for mapping

2012-11-23 Thread Timothy Madden
to know what mappings have 'PlugPluginFunction' as the {rhs} ? So I can display the {lhs} in the help window for the user ? Something like hasmapto(), but I would also like to know what the mapping is. Thank you, Timothy Madden -- You received this message from the vim_use maillist. Do not top

Re: Mapping keys Ctrl-K Ctrl-C

2012-10-29 Thread ashwin sathya
trouble mapping C-c (BREAK ?? ) is there any workaround for this ? I was waiting for somebody else to give an elightened comment. Actually the one that was given was enlighteed, but it seemed to have a 'nix bias. I think you need to say WHERE you are using vim. I am sssuming Windows where C

Re: Mapping keys Ctrl-K Ctrl-C

2012-10-28 Thread Alejandro Exojo
El Sábado, 27 de octubre de 2012, ashwin sathya escribió: map C-KC-c leadercc map C-KC-U leadercu the leadercc and leadercu are mapped to NERD commands accordingly. I am having some trouble mapping C-c (BREAK ?? ) is there any workaround for this ? I'm not sure that you should map C-c

Re: Mapping keys Ctrl-K Ctrl-C

2012-10-28 Thread Tony Mechelynck
On 28/10/12 13:36, Alejandro Exojo wrote: El Sábado, 27 de octubre de 2012, ashwin sathya escribió: map C-KC-c leadercc map C-KC-U leadercu the leadercc and leadercu are mapped to NERD commands accordingly. I am having some trouble mapping C-c (BREAK ?? ) is there any workaround

Re: Mapping keys Ctrl-K Ctrl-C

2012-10-28 Thread Henry Hertz Hobbit
map C-KC-c leadercc map C-KC-U leadercu the leadercc and leadercu are mapped to NERD commands accordingly. I am having some trouble mapping C-c (BREAK ?? ) is there any workaround for this ? I was waiting for somebody else to give an elightened comment. Actually the one

Mapping keys Ctrl-K Ctrl-C

2012-10-27 Thread ashwin sathya
are mapped to NERD commands accordingly. I am having some trouble mapping C-c (BREAK ?? ) is there any workaround for this ? -- Thanks Regards, R Ashwin Sathya -- 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

Re: Mapping for visual mode that starts from insert mode?

2012-10-04 Thread Ben Fritz
On Wednesday, October 3, 2012 9:47:23 PM UTC-5, WU Yue wrote: After reading the help of selectmode, I realize that -- (insert) VISUAL -- is not the SELECT mode, I have a workaround: autocmd InsertEnter * setlocal selectmode=mouse,key autocmd InsertLeave * setlocal selectmode= sounds

Re: Mapping for visual mode that starts from insert mode?

2012-10-03 Thread WU Yue
mode with the mouse is actually selection mode, which is slightly different. Luckily you can map this selection mode separately from normal visual mode. Visual mode: xmap, xnoremap Selection mode: smap, snoremap Both: vmap, vnoremap :help select-mode-mapping :help mapmode-x Actually, using

Re: Mapping for visual mode that starts from insert mode?

2012-10-03 Thread WU Yue
mode started from insert mode with the mouse is actually selection mode, which is slightly different. Luckily you can map this selection mode separately from normal visual mode. Visual mode: xmap, xnoremap Selection mode: smap, snoremap Both: vmap, vnoremap :help select-mode-mapping :help

Re: Mapping for visual mode that starts from insert mode?

2012-10-02 Thread Ben Fritz
is actually selection mode, which is slightly different. Luckily you can map this selection mode separately from normal visual mode. Visual mode: xmap, xnoremap Selection mode: smap, snoremap Both: vmap, vnoremap :help select-mode-mapping :help mapmode-x Actually, using vmap and vnoremap

Mapping for visual mode that starts from insert mode?

2012-10-01 Thread WU Yue
Hi, I know title is unclear, but my English skill is so limited, forgive me please, I will try my best to make my expression more clear. I have set mouse=a, so I can drag mouse to start a selection in normal/insert mode, I notice that when start selection in normal mode, the status line

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-17 Thread FaQ
El lunes, 16 de julio de 2012 15:24:08 UTC-3, Ben Fritz escribió: On Monday, July 16, 2012 11:02:15 AM UTC-5, FaQ wrote: gt; Hello. Iamp;#39;ve been trying to figure out this for some time now, and couldnamp;#39;t find a solution. gt; gt; I have this mapping: gt; gt; nmap amp;lt

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-17 Thread Ben Fritz
On Tuesday, July 17, 2012 9:52:33 AM UTC-5, FaQ wrote: (I don#39;t know why, some characters in your response were all converted to html entities...) Because the Google Groups interface is broken. I've reported it with their little gear icon menu item, but who knows how long it will take

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread porphyry5
at the start of gt; the first word. gt; gt; But as a key mapping, e.g. gt; :map lt;F5gt; hEaquot;lt;Escgt;Biquot;lt;Escgt;j gt; it fails if the cursor is in column 1 gt; gt; Why the difference? The answer is buried rather deep in the documentation, in the third paragraph below :help

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread Christian Brabandt
is in column 1 at the start of the first word. But as a key mapping, e.g. :map F5 hEaEscBiEscj it fails if the cursor is in column 1 Why the difference? The answer is buried rather deep in the documentation, in the third paragraph below :help map_return Note that when an error

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-17 Thread Graham Lawrence
On 7/17/12, Christian Brabandt cbli...@256bit.org wrote: One way around it, is to use an expression mapping, e.g. something like this: :map expr F5 QuoteWord() fu! QuoteWord() let r='' if col('.') 1 let r.='h' endif let r.='Ea'. \EscBi. ''. \Esc if line

Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-16 Thread FaQ
Hello. I've been trying to figure out this for some time now, and couldn't find a solution. I have this mapping: nmap silent -c :C-Uset opfunc=Add_comment_operatorCRg@ Below you'll find the Add_comment_operator() code, but I think it's not really relevant. This mapping allows me to do things

Re: Allow normal command then motion (using g@) and [count]command in the same mapping

2012-07-16 Thread Ben Fritz
On Monday, July 16, 2012 11:02:15 AM UTC-5, FaQ wrote: Hello. I#39;ve been trying to figure out this for some time now, and couldn#39;t find a solution. I have this mapping: nmap lt;silentgt; -c :lt;C-Ugt;set opfunc=Add_comment_operatorlt;CRgt;g@ Below you#39;ll find

Key mapping behaves differently than same sequence of keys struck by hand

2012-07-16 Thread Graham Lawrence
As a keystroke sequence hEaEscBiEscj seems to enquote the current word anywhere in the line. In particular, it does so if the cursor is in column 1 at the start of the first word. But as a key mapping, e.g. :map F5 hEaEscBiEscj it fails if the cursor is in column 1 Why the difference

Re: Key mapping behaves differently than same sequence of keys struck by hand

2012-07-16 Thread Gary Johnson
On 2012-07-16, Graham Lawrence wrote: As a keystroke sequence hEaEscBiEscj seems to enquote the current word anywhere in the line. In particular, it does so if the cursor is in column 1 at the start of the first word. But as a key mapping, e.g. :map F5 hEaEscBiEscj it fails if the cursor

Re: Mapping doesn't work when cursor is set in the first column

2012-06-22 Thread Tim Chase
On 06/22/12 03:21, Mikey wrote: I use GVim 7.3.566. Mapping doesn't work when cursor is set in the first column and mapping begins with 'h'. Steps to reproduce: gvim -u NONE -U NONE :set nocompatible :nn leadera hV :h 0 leadera Line with cursor should be highligted

Utf-8 and CR mapping

2012-06-22 Thread Pablo Giménez
Hello. I have a couple of keymaps using CR: nmap silent C-M-CR oEsc nmap silent M-S-CR OEsc My problem is that recently I begin to use utf-8 encoding, I set it using: set encoding=utf-8 And then this brokes by previous mapping, instead of being mapped to CR I got some funny characters: S-Â

Key Mapping with variables

2012-05-09 Thread Shital
I wanted to know whether we can make use of variables in key mappings eg: Following is what i'm doing currently nmap A-1 Plugin_A with '1' as argument to it nmap A-2 Plugin_A with '2' as argument to it ... nmap A-9 Plugin_A with '9' as argument to it What i intend to do nmap A-var

Re: Key Mapping with variables

2012-05-09 Thread Gary Johnson
On 2012-05-09, Shital wrote: I wanted to know whether we can make use of variables in key mappings eg: Following is what i'm doing currently nmap A-1 Plugin_A with '1' as argument to it nmap A-2 Plugin_A with '2' as argument to it ... nmap A-9 Plugin_A with '9' as argument to it

Re: Key Mapping with variables

2012-05-09 Thread Ben Fritz
myFunc('.i.')CR' let i+=1 endwhile Or use a count to a mapping as Gary suggests instead of an Alt+Number mapping. -- 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

mapping for regular expression search

2012-05-08 Thread sinbad
what's wrong with this mapping nmap script s /[a-z|_|0-9]\+(.\+[^\r\n]\+);\C CR i get the following error. E492: Not an editor command: _|0-9]\+(.\+[^\r\n]\+);\C CR -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: mapping for regular expression search

2012-05-08 Thread Christian Brabandt
On Tue, May 8, 2012 08:45, sinbad wrote: what's wrong with this mapping nmap script s /[a-z|_|0-9]\+(.\+[^\r\n]\+);\C CR i get the following error. E492: Not an editor command: _|0-9]\+(.\+[^\r\n]\+);\C CR :h map_bar regards, Christian -- You received this message from the vim_use

vimrc mapping line numbers

2012-04-10 Thread EV
I have these lines in my .vimrc file: :map F9 :exe ':!gdbset bp %:'.line(.).''CRCR :map F8 :exe ':!gdbset clear bp %:'.line(.).''CRCR They work great for adding and removing break points in gdb! Only one problem (that I know of)... for some reason line numbers in the 80's don't work. If I put my

Re: vimrc mapping line numbers

2012-04-10 Thread Tim Chase
On 04/10/12 14:57, EV wrote: I have these lines in my .vimrc file: :mapF9 :exe ':!gdbset bp %:'.line(.).''CRCR :mapF8 :exe ':!gdbset clear bp %:'.line(.).''CRCR They work great for adding and removing break points in gdb! Only one problem (that I know of)... for some reason line numbers in

Re: Create own ALT+H mapping, disabling the help menu

2012-03-31 Thread Jeri Raye
Tim Chase wrote on 30-3-2012 22:38: On 03/30/12 15:03, Jeri Raye wrote: I've put this line in mu vimrc set winaltkeys=no But the window still responds on an ALT key. :set guioptions-=m I don't really lose much functionality (menus usually just replicate functionality available from the Ex

Re: Create own ALT+H mapping, disabling the help menu

2012-03-30 Thread Jan Larres
Hi Jeri, Jeri Raye jeri.r...@gmail.com: I would like to make a mapping to ALT+H. But this brings up the help menu in gvim on windows 7, as the H from Help is the underlined key (don't know the right terminology) Can you disable this in gvim, so that I can create my own ALT+H mapping? Yes

Re: ALT+ SHIFT mapping doesn't work

2012-03-30 Thread Ben Fritz
On Friday, March 30, 2012 12:40:25 AM UTC-5, Jeri Raye wrote: Hi, I have the following mappings: inoremap M-S-7 _ inoremap M-7 - When I do M-7 I get - (the dash char), what is what I expected When I do M-S-7 I get | (the pipe char) I would except _ (the underscore char) When I

Re: Create own ALT+H mapping, disabling the help menu

2012-03-30 Thread Jeri Raye
Hi I've put this line in mu vimrc set winaltkeys=no But the window still responds on an ALT key. Why's that? Rgds, Jeri Jan Larres wrote on 30-3-2012 8:19: Hi Jeri, Jeri Rayejeri.r...@gmail.com: I would like to make a mapping to ALT+H. But this brings up the help menu in gvim on windows 7

Re: ALT+ SHIFT mapping doesn't work

2012-03-30 Thread Jeri Raye
Thanks Ben, that does the trick Ben Fritz wrote on 30-3-2012 17:06: On Friday, March 30, 2012 12:40:25 AM UTC-5, Jeri Raye wrote: Hi, I have the following mappings: inoremapM-S-7 _ inoremapM-7 - When I doM-7 I get - (the dash char), what is what I expected When I doM-S-7 I get | (the

Re: Create own ALT+H mapping, disabling the help menu

2012-03-30 Thread Tim Chase
On 03/30/12 15:03, Jeri Raye wrote: I've put this line in mu vimrc set winaltkeys=no But the window still responds on an ALT key. While I'm not sure WHY it happens, my usual solution is just to run without the menu ;-) :set guioptions-=m I don't really lose much functionality (menus

How to create a mapping that makes vim go into selec-mode

2012-03-29 Thread Jeri Raye
Hi, How can I make a mapping that select mode is used in insert mode when I press a certain mapping? I now see when I press CTRL and SHIFT and an arrow key that this select mode is used. At the bottum of the screen the following appears -- (insert) SELECT -- Can I make a mapping that CTRL

Re: How to create a mapping that makes vim go into selec-mode

2012-03-29 Thread Christian Brabandt
On Thu, March 29, 2012 08:05, Jeri Raye wrote: How can I make a mapping that select mode is used in insert mode when I press a certain mapping? I now see when I press CTRL and SHIFT and an arrow key that this select mode is used. At the bottum of the screen the following appears -- (insert

Re: How to create a mapping that makes vim go into selec-mode

2012-03-29 Thread Jeri Raye
Hi Christian Thanks Rgds, Jeri -- 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

ALT+ SHIFT mapping doesn't work

2012-03-29 Thread Jeri Raye
Hi, I have the following mappings: inoremap M-S-7 _ inoremap M-7 - When I do M-7 I get - (the dash char), what is what I expected When I do M-S-7 I get | (the pipe char) I would except _ (the underscore char) When I type :verbose map! M-S-7 Vim replies withL: I S-. *_-7 Last set

Create own ALT+H mapping, disabling the help menu

2012-03-29 Thread Jeri Raye
Hi, I would like to make a mapping to ALT+H. But this brings up the help menu in gvim on windows 7, as the H from Help is the underlined key (don't know the right terminology) Can you disable this in gvim, so that I can create my own ALT+H mapping? Rgds, Jeri -- You received this message from

verbose map doesn't always shows the mapping

2012-03-27 Thread Jeri Raye
Hi, I have certain mappings defined in a file +-- mapping file --+ F8 is Select all noremap F8 gggHC-OG inoremap F8 C-OggC-OgHC-OG cnoremap F8 C-CgggHC-OG onoremap F8 C-CgggHC-OG snoremap F8 C-CgggHC-OG xnoremap F8 C-CggVG inoremap C-h left inoremap C-j down inoremap C-k up inoremap C-l right

Re: verbose map doesn't always shows the mapping

2012-03-27 Thread Christian Brabandt
On Tue, March 27, 2012 08:46, Jeri Raye wrote: I have certain mappings defined in a file +-- mapping file --+ F8 is Select all noremap F8 gggHC-OG inoremap F8 C-OggC-OgHC-OG cnoremap F8 C-CgggHC-OG onoremap F8 C-CgggHC-OG snoremap F8 C-CgggHC-OG xnoremap F8 C-CggVG inoremap C-h left

Re: verbose map doesn't always shows the mapping

2012-03-27 Thread Jeri Raye
Hi Christian, Thanks. Rgds, Jeri -- 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

Re: mapping special keys from thinkpad keyboard

2012-03-22 Thread Razvan Rotaru
From: Tim Chase v...@tim.thechases.com To: vim_use@googlegroups.com Cc: Razvan Rotaru roti_...@yahoo.com; v...@vim.org v...@vim.org Sent: Wednesday, March 21, 2012 11:36 PM Subject: Re: mapping special keys from thinkpad keyboard Is it possible to use some special

Re: mapping special keys from thinkpad keyboard

2012-03-22 Thread Tim Chase
On 03/22/12 07:25, Razvan Rotaru wrote: I'm using Win7 as OS. Unfortunately, when I press Control-V in insert mode and then press the back key, nothing happens (with mswin.vim unloaded). Sigh. So, do you (or somebody else) know where I can get more info on OS-level key mappings? It sounds

mapping special keys from thinkpad keyboard

2012-03-21 Thread Razvan Rotaru
Hi, Is it possible to use some special keys from a ThinkPad keyboard for mappings? What I am looking for is to map the back and forward keys (above the Left and Right keys) to :tabnext and :tabprevious. Thanks, Razvan -- You received this message from the vim_use maillist. Do not top-post!

Re: mapping special keys from thinkpad keyboard

2012-03-21 Thread Tim Chase
Is it possible to use some special keys from a ThinkPad keyboard for mappings? What I am looking for is to map the back and forward keys (above theLeft andRight keys) to :tabnext and :tabprevious. The generic answer is if (g)vim can see them, you can map them. The question then becomes, can

mapping keys in any mode

2012-03-03 Thread Tarlika Elisabeth Schmitz
If I want to map a function onto the same key in any mode, is this the best way of doing it? : map silent F6 :nohlsearchCR imap silent F6 Esc:nohlsearchCRi -- Best Regards, Tarlika Elisabeth Schmitz -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: mapping keys in any mode

2012-03-03 Thread Ben Fritz
would probably be C-O instead of Esc...i * Use nnoremap and xnoremap instead of just map which gets normal, operator-pending, and visual modes. You probably want to use a C-U in the visual mode mapping to remove the range, and you probably don't want to do it at all in operator-pending mode

Re: mapping keys in any mode

2012-03-03 Thread Tarlika Elisabeth Schmitz
On Sat, 3 Mar 2012 10:26:09 -0800 (PST) Ben Fritz fritzophre...@gmail.com wrote: On Saturday, March 3, 2012 12:07:18 PM UTC-6, Tarlika Elisabeth Schmitz wrote: If I want to map a function onto the same key in any mode, is this the best way of doing it? : map silent F6 :nohlsearchCR imap

mapping insert to shift-insert

2012-02-15 Thread sinbad
how can i map inset key to work as Shift-Insert i tried the following mapping nmap insert S-insert it doesn't seem to be working, is it even possible ? basically i wanna copy text from one screen session to other session inside a putty, without using shift-insert to paste. in putty, i use

Re: mapping insert to shift-insert

2012-02-15 Thread Tony Mechelynck
On 15/02/12 20:50, sinbad wrote: how can i mapinset key to work asShift-Insert i tried the following mapping nmapinsert S-insert it doesn't seem to be working, is it even possible ? basically i wanna copy text from one screen session to other session inside a putty, without using shift

problem mapping commands

2012-02-13 Thread Leonardo Barbosa
Hi, I have some mappings in my .vimrc. However, some of them only work if I re-source my .vimrc after I have opened the file to edit. What might be happening? Is there a way of automatically resource the .vimrc everytime I open i file with vim? Best, Leo -- You received this message from the

Re: problem mapping commands

2012-02-13 Thread Taylor Hedberg
Leonardo Barbosa, Mon 2012-02-13 @ 13:32:42-0200: I have some mappings in my .vimrc. However, some of them only work if I re-source my .vimrc after I have opened the file to edit. What might be happening? My guess would be that you have an ftplugin script for the filetype you're working with

Re: problem mapping commands

2012-02-13 Thread Ben Fritz
On Feb 13, 9:46 am, Taylor Hedberg tmhedb...@gmail.com wrote: Leonardo Barbosa, Mon 2012-02-13 @ 13:32:42-0200: I have some mappings in my .vimrc. However, some of them only work if I re-source my .vimrc after I have opened the file to edit. What might be happening? My guess would be

Re: mapping commands - setup url?

2012-02-13 Thread Sven Guckes
* Leonardo Barbosa barbosa.leona...@gmail.com [2012-02-13 20:21]: I have some mappings in my .vimrc. However, some of them only work if I re-source my .vimrc after I have opened the file to edit. What might be happening? Is there a way of automatically resource the .vimrc everytime I open i

Re: Question about command-line mode mapping

2012-01-21 Thread Paul Isambert
Benoit Thomas benoit.tho...@gameloft.com a écrit: Hi, I'm trying to add some shortcuts in the command-line mode, mainly I want C-B to jump backward by word Don't ask me how the following works exactly, I'm not sure I really understand what's going on. I'm a bit confused with

Question about command-line mode mapping

2012-01-19 Thread Benoit Thomas
Hi, I'm trying to add some shortcuts in the command-line mode, mainly I want C-B to jump backward by word The closer I was able to do was :cnoremap C-B S-LEFT which jump backwards by WORD or use C-W which delete backward by word Is there anyway to do something like :cnoremap C-B do jump

Re: Strange behavior of mapping.

2012-01-11 Thread Jorge Martinez Saez
El 10/01/2012 12:36, Paul Isambert escribió: Hello there, Given the mapping: mapTab fXa where X stands for any character, if X appears on the line,Tab goes to Insert mode after that character, as expected; but if the character doesn't appear on the line, the cursor shouldn't move

Strange behavior of mapping.

2012-01-10 Thread Paul Isambert
Hello there, Given the mapping: map Tab fXa where X stands for any character, if X appears on the line, Tab goes to Insert mode after that character, as expected; but if the character doesn't appear on the line, the cursor shouldn't move but it should still switch to Insert mode

Re: Strange behavior of mapping.

2012-01-10 Thread Christian Brabandt
Hi Paul! On Di, 10 Jan 2012, Paul Isambert wrote: Hello there, Given the mapping: map Tab fXa where X stands for any character, if X appears on the line, Tab goes to Insert mode after that character, as expected; but if the character doesn't appear on the line, the cursor shouldn't

Re: Re: Strange behavior of mapping.

2012-01-10 Thread Paul Isambert
Christian Brabandt cbli...@256bit.org a écrit: Hi Paul! On Di, 10 Jan 2012, Paul Isambert wrote: Hello there, Given the mapping: map Tab fXa where X stands for any character, if X appears on the line, Tab goes to Insert mode after that character, as expected

nmap yiw mapping when 2 characters

2011-12-24 Thread Dan S
Hi - I'm trying to get a mapping to work irrespective of the number of characters in the document. The following is a simplified example which does the rather strange task of copying the current word, then pasting it and appending a question mark: :nmap buffer F3 yiw pa?Esc Note this is only

Re: nmap yiw mapping when 2 characters

2011-12-24 Thread Tim Chase
On 12/24/11 08:48, Dan S wrote: I'm trying to get a mapping to work irrespective of the number of characters in the document. The following is a simplified example which does the rather strange task of copying the current word, then pasting it and appending a question mark: :nmapbuffer F3 yiw

Re: nmap yiw mapping when 2 characters

2011-12-24 Thread Dan Stowell
2011/12/24 Tim Chase v...@tim.thechases.com: On 12/24/11 08:48, Dan S wrote: I'm trying to get a mapping to work irrespective of the number of characters in the document. The following is a simplified example which does the rather strange task of copying the current word, then pasting

Re: mapping ALT-backspace

2011-11-05 Thread meino . cramer
Tony Mechelynck antoine.mechely...@gmail.com [11-11-05 06:48]: On 03/11/11 17:07, meino.cra...@gmx.de wrote: Tony Mechelynckantoine.mechely...@gmail.com [11-11-03 17:00]: On 03/11/11 03:54, meino.cra...@gmx.de wrote: Tony Mechelynckantoine.mechely...@gmail.com [11-11-02 06:40]: On 02/11/11

Re: mapping ALT-backspace

2011-11-05 Thread Benjamin R. Haskell
On Sat, 5 Nov 2011, Tony Mechelynck wrote: Well, under Linux each different terminal (Linux console, KDE konsole, gnome-terminal, xterm, mlterm, ...) can react differently, but gvim has a better grasp of what you type than any of them, because there's one fewer layer between Vim and your

<    1   2   3   4   5   6   7   8   >