Re: Newbie question about mapping...

2015-05-25 Thread Sonny
upper-cased Does anyone know how I can prevent the cursor from moving when I go from INSERT to normal mode... or revise my mapping so that it works regardless of where the cursor is within the word when ctrl-d is pressed? On Mon, May 25, 2015 at 10:13 PM, Sonny wrote: > Hey Gary, > &

Re: Newbie question about mapping...

2015-05-25 Thread Paul Isambert
>Does anyone know how I can prevent the cursor from moving when I go from >INSERT to normal mode... That’s Vim’s usual behavior. > or revise my mapping so that it works regardless >of where the cursor is within the word when ctrl-d is pressed?

Re: Newbie question about mapping...

2015-05-25 Thread Youen Lansade
You could start the command by inserting a character and delete it after you get back in insert mode: :inoremap _viwUgi Also, the second esc is useless since pressing U should take you back to normal mode: :inoremap _viwUgi And, although it's not wrong to go into visual mode to set some text

Re: Newbie question about mapping...

2015-05-26 Thread Sonny
Thanks guys, particularly Youen. Those were helpful. On Mon, May 25, 2015 at 11:35 PM, Youen Lansade wrote: > You could start the command by inserting a character and delete it after > you get back in insert mode: > > :inoremap _viwUgi > > Also, the second esc is useless since pressing U sh

Re: Operator Mapping newbie question....

2015-05-27 Thread Sonny Chee
On Wednesday, May 27, 2015 at 9:44:17 AM UTC-7, Sonny Chee wrote: > Hey Guys, > > I have the following operator mapping in my .vimrc that I think should allow > me to execute an operation on the contents of the next parentheses. > Howeveer, when (in normal mode) I do dp n

Re: Mapping alt+arrow keys?

2015-10-07 Thread Tony Mechelynck
I'm redirecting this conversation to vim_use which I think is more appropriate than vim_mac in this case. On Wednesday, October 7, 2015 at 2:02:30 AM UTC+2, Shaun Friedle wrote: > Hi, > > I'm having difficultly mapping alt + the arrow keys at startup in MacVim. > > So,

add mapping for buftype=nofile?

2016-01-19 Thread Josef Fortier
I'd like to map q to bwipe for all bt == nofile, but I'm having trouble finding the autocmd to make it work (assuming that this is the way to go)? I've tried (transcribed from memory) autocmd bufreadpost * \ if buftype == 'nofile' | \nnoremap q :bwipe | \ endif with various types of event

Re: Questions about mapping information

2018-03-21 Thread Nikolay Aleksandrovich Pavlov
eCR) > imap MyCR > > Auto-pairs maps , too, and it tries hard not to override an existing > mapping. After loading, :verbose imap shows this: > > i &@(MUcompleteCR)24_AutoPairsReturn > Last set from ~/.vim/pack/bundle/start/auto-pairs/plugin/auto-pairs.vim

Re: Questions about mapping information

2018-03-21 Thread Lifepillar
rom ~/.vim/vimrc First question: why are there two definitions instead of one? I.e., why is the mapping from my vimrc shown at all? Due to buffer-local mappings there may exist at most {number of loaded buffers present}+1 mapping definitions, with buffer-local mappings attached to the current buf

terminal mode normal mode mapping ?

2018-06-16 Thread M Kelly
Hi, Is there a way to map keys only when in normal mode from a terminal ? thx, -m -- -- 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 thi

Re: Accessing mapping from rhs

2018-08-30 Thread Christian Brabandt
On Do, 30 Aug 2018, Lifepillar wrote: > Is it possible to access the lhs of a mapping from its rhs? > For example, given: > > imap MyFunction() > > is there a way for MyFunction() to know that it was called by ? Not that I know of and I have whished for that before

Re: Accessing mapping from rhs

2018-08-30 Thread John Passaro
Could you implement the function and accompanying mapping as follows? imap MyFunction("cr") imap n MyFunction("Leader-n") Sorry if this is obvious, if it is impractical for some reason I'm curious why. John Passaro (917) 678-8293 On Thu, Aug 30, 2018 at 1:18 PM,

Re: Accessing mapping from rhs

2018-08-30 Thread Christian Brabandt
On Do, 30 Aug 2018, John Passaro wrote: > Could you implement the function and accompanying mapping as follows? > > imap MyFunction("cr") > imap n MyFunction("Leader-n") This is the typical workaround. The idea was to be able to know in the function which

Re: Accessing mapping from rhs

2018-08-30 Thread Lifepillar
On 30/08/2018 20:37, Christian Brabandt wrote: On Do, 30 Aug 2018, John Passaro wrote: Could you implement the function and accompanying mapping as follows? imap MyFunction("cr") imap n MyFunction("Leader-n") This is the typical workaround. The idea was to be

Mapping erases search count message

2019-08-27 Thread Gary Johnson
the same, even showing "[1/>99]" when it should be showing "[2/>99]". Another 'n' advances the cursor to line 17, the screen scrolls up so that that line is at the bottom of the window, and the command line is empty--no search count message at all. I would think

Re: vim mode and mapping

2019-11-30 Thread Igor
noremap ur ip -- -- 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 Google Groups "vim_use" g

Re: vim mode and mapping

2019-11-30 Thread Meng Zhu
thanks. I am more interested to know why separate mappings don't work and how to make it work, if possible. this two key mapping will have complexity issue, since everything i* now incurs a mapping, and the same issue (one key is subject to mapping and the next one isn't) migh

nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, Is it posible to nest conditionals in a mapping, something like, just for demonstration: vnoremap vv (strlen(@y) == 1) ? ':let ...' : '("vcl" =~ getregtype("*")) ? 'some foo' : 'some bar' ' some more ... Can we do this ? Do

Re: mapping :W to :w...

2021-02-23 Thread Salman Halim
I actually prefer to never hit shift, so map ; to : instead. You could simply define a command called W to do what you want: command! W w -- Salman On Tue, 23 Feb 2021, 23:06 , wrote: > Hi, > > if my PC is heavily compiling things and I am editing and saving > things repeatedly if often hit

Re: mapping :W to :w...

2021-02-23 Thread tuxic
Hi Salman, oh! :) The first is genious and while reading the second one I had the distinctive feeling of flat-hand-against-my-fronthead... ;) Of course! Thank you very much! That helps me a lot! Cheers! mcc On 02/23 11:11, Salman Halim wrote: > I actually prefer to never hit shift, so map ;

Re: mapping :W to :w...

2021-02-23 Thread Tony Mechelynck
On Wed, Feb 24, 2021 at 5:06 AM wrote: > > Hi, > > if my PC is heavily compiling things and I am editing and saving > things repeatedly if often hit :W instead of :w (that is, I am > still pressing SHIFT when hitting w. > > So I tried to map :W to :w...but it does not work for me. > > I tried > >

Re: mapping :W to :w...

2021-02-23 Thread Tony Mechelynck
P.S. My solution to a similar problem was a little different: map :wa|wv map! :wa|wv Best regards, Tony. -- -- 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.vi

Re: mapping :W to :w...

2021-02-23 Thread Salman Halim
I use in much the same way and just call :update. I also save automatically when the Vim window loses focus. -- Salman On Wed, 24 Feb 2021, 02:33 Tony Mechelynck, wrote: > P.S. My solution to a similar problem was a little different: > > map :wa|wv > map! :wa|wv > > Best re

Re: mapping :W to :w...

2021-02-24 Thread rwmit...@gmail.com
"I use in much the same way and just call :update.* I also save automatically when the Vim window loses focus*." Tell me more about this. On Wednesday, February 24, 2021 at 2:54:17 AM UTC-5 Salman Halim wrote: > I use in much the same way and just call :update. I also save > automatically whe

Re: mapping :W to :w...

2021-02-24 Thread arocker
> the distinctive feeling of flat-hand-against-my-fronthead... ;) > Aka (Also known as:) a face-palm. :-)* -- -- 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.

Re: mapping :W to :w...

2021-02-24 Thread tuxic
On 02/24 08:59, aroc...@vex.net wrote: > > > the distinctive feeling of flat-hand-against-my-fronthead... ;) > > > > Aka (Also known as:) a face-palm. :-)* Ok :) another face-palm (this time correctly spoke...I am no native speaker...sorry... But...how can I ensure, that I am talking about my f

Re: mapping :W to :w...

2021-02-24 Thread Lifepillar
>>On 02/23 11:11, Salman Halim wrote: >> I actually prefer to never hit shift, so map ; to : instead. >> >On 2021-02-24, tu...@posteo.de wrote: > Hi Salman, > > oh! :) > > The first is genious Keep in mind that ; is a useful mapping in Vim. Sure, you can rema

mapping gnu screen command in vim

2009-07-26 Thread Eric Smith
How do I map the escape sequence of gnu screen in a vim keybinding or function? Does not work for me so far. -- - Eric Smith --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -

mapping control+0-1 or backtick

2009-08-03 Thread Robert Mark Bram
Hi All, Is it possible to map to control+number or control+`? I found these mappings didn't work. map :hide bn map :hide bn I looked through :help keycodes and couldn't find reference to backtick or tilde, but I have seen that you can map to the backtick by itself. For example: " Use backti

ctrl-j mapping not working properly

2010-01-19 Thread Mr.SpOOn
Hi, I'm trying to use these mappings: map j map k map h map l They usually work fine, but sometimes (I don't understand exactly when) the c-j mapping does other things. In this moment, while I'm editing a php it brings me to the "insert mode". In my vimrc that is t

Re: Why no window-local mapping?

2010-03-30 Thread Andy Wokula
Am 30.03.2010 14:18, schrieb Jeenu: Hi, I know of local mapping and global mapping. I wonder why there isn't a/ local mapping option for Vim. I use some Vim windows/tabs exclusively for navigating quick fix lists. On those windows, I keep nd globally mapped to :lnext (or :cnext

Re: Why no window-local mapping?

2010-03-30 Thread Tony Mechelynck
On 30/03/10 14:18, Jeenu wrote: Hi, I know of local mapping and global mapping. I wonder why there isn't a/ local mapping option for Vim. I use some Vim windows/tabs exclusively for navigating quick fix lists. On those windows, I keep nd globally mapped to :lnext (or :cnext) and :lpre

Re: Why no window-local mapping?

2010-03-30 Thread Jeenu
On Mar 30, 6:37 pm, Andy Wokula wrote: > Do you think of >     :map >     :map > next to >     :map > ? I'd write or script it as :map :lnext :map :lnext when I'm at the required window Thanks Jeenu -- You received this message from the "vim_use" maillist. Do not top-post!

Re: Why no window-local mapping?

2010-03-30 Thread Benjamin R. Haskell
On Tue, 30 Mar 2010, Tony Mechelynck wrote: > On 30/03/10 14:18, Jeenu wrote: > > Hi, > > > > I know of local mapping and global mapping. I wonder why > > there isn't a/ local mapping option for Vim. I use > > some Vim windows/tabs exclusively for nav

Re: Why no window-local mapping?

2010-03-30 Thread Tom Link
> mappings local to a specific syntax region (inspired by TextMate?). In Emacs, you have overlays (arbitrary text regions) that can store metadata about the text within that region and have special mappings. IIRC this also makes it easy to define popup menus specific to that region. I don't think

Re: Why no window-local mapping?

2010-03-30 Thread Jeenu
On Mar 30, 10:04 pm, Tony Mechelynck wrote: > See line 2245 in $VIMRUNTIME/doc/todo.txt (:help todo.txt) dated 2010 > Mar 02 as shown on its first line. Sorry. The said doc on my Vim (Ubuntu) doesn't have anything interesting at that line. What I've is: 2242 specific prefixes with suffixes

Re: Why no window-local mapping?

2010-03-30 Thread Jeenu
On Mar 30, 10:15 pm, "Benjamin R. Haskell" wrote: > That was line 1722 on my system (Last change: 2009 Aug 09).  Might be > hard to find, and it's short.  Reproduced here: > > In the section 'User Friendlier:' > ... > -   Add mappings local to a window: ":map ..."? > > The '-' indicates 'unclass

Re: Why no window-local mapping?

2010-03-30 Thread Tony Mechelynck
On 30/03/10 19:14, Jeenu wrote: On Mar 30, 10:04 pm, Tony Mechelynck wrote: See line 2245 in $VIMRUNTIME/doc/todo.txt (:help todo.txt) dated 2010 Mar 02 as shown on its first line. Sorry. The said doc on my Vim (Ubuntu) doesn't have anything interesting at that line. What I've is: 2242

Re: Why no window-local mapping?

2010-03-30 Thread Tim Chase
Tony Mechelynck wrote: Benjamin Haskell told you, but you should have checked the date on line 1 of the file. Apparently not everyone keeps his Vim runtimes up-to-date as diligently as I do. ;-) I'm not sure even *Bram* keeps his Vim runtimes as up-to-date as diligently as you do... ;-) -ti

Re: ctrl-k mapping not working

2010-04-02 Thread Tony Mechelynck
On 04/02/10 15:17, Zhang Cheng wrote: I have these lines in my vimrc: nn :bn nn :bp imappumvisible()?"\":"\" imappumvisible()?"\":"\" Everything works fine until today. I'm using gnome-terminal, and vim72, The c-j mapping works a

Re: ctrl-k mapping not working

2010-04-02 Thread Florian Rehnisch
* Tony Mechelynck [100403 03:20]: > >imappumvisible()?"\":"\" > AFAIK, this key is not remappable. Don't know if it's intended or an > oversight, but the help says that its operands are not considered > for mapping. I do. I have this line in

Re: ctrl-k mapping not working

2010-04-02 Thread Tony Mechelynck
On 03/04/10 03:41, Florian Rehnisch wrote: * Tony Mechelynck [100403 03:20]: imap pumvisible()?"\":"\" AFAIK, this key is not remappable. Don't know if it's intended or an oversight, but the help says that its operands are not considered for mapping.

How to view all key mapping ?

2010-05-10 Thread Benoit Thomas
Hello, Is there a way or ressource which shows all key binding in vim in all mode ? I found a picture of the keyboard layout on the net but it doesn't have everything. For example, I know hjkl are used for direction arrows in normal mode, but I do not know what will happen if I hit those key

Re: Mapping the Super / Windows key

2010-05-24 Thread Tony Mechelynck
On 24/05/10 17:22, Bernhard Walle wrote: Hi! Is it possible to map the Super key (Windows key) in gvim? I understand that this is quite hard / impossible in Terminal vim, but in gvim it should be possible in theory, right? Regards, Bernhard Even in gvim, it isn't sure that the key reaches V

Re: Mapping the Super / Windows key

2010-05-24 Thread Bernhard Walle
Am 24.05.2010 17:55, schrieb Tony Mechelynck: > > 1):set showcmd > 2)Start Insert mode > 3)Hit Ctrl-V (or Ctrl-Q if you use Ctrl-V to paste into Vim) > 4)Hit the problematic key or key combo. > > If after step 4, you still see ^V (or maybe ^Q) at bottom right of the > Vim screen,

Re: Mapping the Super / Windows key

2010-05-24 Thread John Little
> Unfortunately it seems that gvim doesn't get the Super key. You can make windows give gvim those keys (In windows speak they're called Left Windows, Right Windows, and Application). When I use vim on windows a lot I always do this; mostly as a side effect of fixing (polite term) the damned, hat

Re: Mapping the Super / Windows key

2010-05-26 Thread Bernhard Walle
Am 25.05.2010 05:48, schrieb John Little: > > gvim on windows knows about F13, F14 and F15, and I've never seen a > Windows keyboard with them, so I use the above to map those keys to > F13, F14 and F15, and then map those in my .vimrc; that way I can use > xmodmap on *nix to do the same, so my .

Re: Mapping the Super / Windows key

2010-05-27 Thread John Little
> But F13, F14 and F15 are no modifier keys. I want to use the Windows key > (Super key) as modifier key, e.g. Super-C to copy something into the > X-Clipboard ("+y) like it's done on Mac OS with Command-C. I see now. If you're not using Alt as a modifier you could use

Re: Mapping the Super / Windows key

2010-05-27 Thread Bernhard Walle
Am 27.05.2010 15:53, schrieb John Little: > You also might consider learning more vim-like approaches. Check our > the 'clipboard' option. You mean clipboard=unnamed? No, that's annoying. Currently, I'm quite happy with > if !has("gui_macvim") > vnoremap "+x > vnoremap "+y > imap "+

Re: Mapping the Super / Windows key

2010-05-28 Thread LuKreme
On 28-May-2010, at 00:02, Bernhard Walle wrote: > >> if !has("gui_macvim") >> vnoremap "+x >> vnoremap "+y >> imap "+gP >> cmap + >> >> " Pasting blockwise and linewise selections is not possible in Insert and >> " Visual mode without the +virtualedit feature. They are pasted as

RE: Mapping the Super / Windows key

2010-05-28 Thread John Beckett
LuKreme wrote: >>> if !has("gui_macvim") >>> vnoremap "+x >>> vnoremap "+y >>> imap "+gP >>> cmap + >>> >>> " Pasting blockwise and linewise selections is not possible in >>> Insert and " Visual mode without the +virtualedit feature. >>> They are pasted as if they " were characterw

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread Brett Stahlman
example, to > or something.) > > However, I realize there's still a chance that key mapping conflicts > can occur. Nathan, :help using- > > I would like to warn the user about key mapping conflicts, but I don't > want the warning to be annoying or ever-present until

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread sc
MapLeader (for example, to > or something.) > > However, I realize there's still a chance that key mapping > conflicts can occur. > > I would like to warn the user about key mapping conflicts, but > I don't want the warning to be annoying or ever-present until >

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread Nathan Neff
lready. >> >> If the user wants to use a different set of leader keys, >> the user can change g:GrailsVimMapLeader (for example, to >> or something.) >> >> However, I realize there's still a chance that key mapping >>  conflicts can occur. >> >> I would like

Re: Plugins - Accepted practices mapping conflicts

2010-06-16 Thread Bob Hiestand
hasmapto(a:expansion) try execute 'nmap ' lhs a:expansion catch /^Vim(.*):E227:/ if(&verbose != 0) echohl WarningMsg|echomsg 'VCSCommand: mapping ''' .

Re: mapping g to ctrl-f

2010-09-27 Thread Tim Chase
On 09/27/10 17:37, lylez wrote: I map g to ctrl-f to make paging easier. This caused a 1-second delay to occur when paging forward in 7.1. It went away in 7.2, but now it is back in 7.3. I'm using the version for MS Windows. Is there any way to get rid of the 1-second delay? Sounds like the set

Re: Mapping ` to , in visual mode

2010-10-02 Thread Israel Chauca F.
On Oct 2, 2010, at 11:35 AM, alexandre krispin wrote: > Hello, > > I use latexsuite in Vim. When I want to select a block of text in > visual mode in order to emphasize the text, I select it, and then > press ` and em. > Since I have a french keyboard (azerty), this is quit painful if I > have t

Re: Mapping ` to , in visual mode

2010-10-02 Thread alexandre krispin
On 2 oct, 20:44, "Israel Chauca F." wrote: > On Oct 2, 2010, at 11:35 AM, alexandre krispin wrote: > > > Hello, > > > I use latexsuite in Vim. When I want to select a block of text in > > visual mode in order to emphasize the text, I select it, and then > > press ` and em. > > Since I have a frenc

Re: Mapping ` to , in visual mode

2010-10-02 Thread ZyX
Ответ на сообщение «Re: Mapping ` to , in visual mode», присланное в 00:03:12 03 октября 2010, Воскресенье. Отправитель: alexandre krispin: > If you don't use the plugin latexsuite, could you tell me how you > would map ` to , with virtual mode ? If I am not mistaking, that > I use

Re: Mapping ` to , in visual mode

2010-10-02 Thread alexandre krispin
On 2 oct, 22:17, ZyX wrote: > Ответ на сообщение «Re: Mapping ` to , in visual mode», > присланное в 00:03:12 03 октября 2010, Воскресенье. > Отправитель: alexandre krispin: > > > If you don't use the plugin latexsuite, could you tell me how you > > would map ` to ,

Re: Mapping ` to , in visual mode

2010-10-03 Thread ZyX
Ответ на сообщение «Re: Mapping ` to , in visual mode», присланное в 05:36:56 03 октября 2010, Воскресенье. Отправитель: alexandre krispin: I made a mistake: mapping of «`» to «:call...» was probably done by other plugin, not by latexsuite. Latexsuite defines mappings like «`em», «`it» and

Re: Mapping ` to , in visual mode

2010-10-03 Thread alexandre krispin
On 3 oct, 09:24, ZyX wrote: > Ответ на сообщение «Re: Mapping ` to , in visual mode», > присланное в 05:36:56 03 октября 2010, Воскресенье. > Отправитель: alexandre krispin: > > I made a mistake: mapping of «`» to «:call...» was probably done by other > plugin, not by late

Re: How to bury a mapping?

2010-10-04 Thread Israel Chauca F.
On Oct 4, 2010, at 12:35 AM, Bee wrote: > How to bury a mapping? > > The following works, and by using upper case makes it difficult to > type the sub-string ",HR". > > imap ,HR ---1-2-3-4-5-6 > > imap ,ha --,HR

Re: How to bury a mapping?

2010-10-04 Thread Bee
On Oct 3, 10:52 pm, "Israel Chauca F." wrote: > On Oct 4, 2010, at 12:35 AM, Bee wrote: > > > How to bury a mapping? > > > The following works, and by using upper case makes it difficult to > > type the sub-string ",HR". > > > imap ,HR --

Re: [solved] Mapping keys and vimrc

2010-10-15 Thread Rahul Kumar
ing inserted with i hit 'p'. > > As Francisco wrote, you need to follow the 'p' with a non-keyword > character such as a space.  If you want the text to be inserted > immediately when you type the 'p', you could use a mapping.  I > assumed that you did

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

Mapping fails to navigate on windows

2010-11-19 Thread epanda
Hi, I am using gvim 7.3 on XP. This mapping does not work : Use CTRL-] on the function name to jump to the full explanation. Then I must use mouse left-button. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replyi

Re: Misterious mapping to p key

2011-01-15 Thread Michael Henry
ince it looks like you are on a Unix-like platform): - Make sure the problem doesn't appear when running Vim without any plugins or your .vimrc:: vim -u NONE - Grep for the mapping string in your ~/.vim directory, and possibly in $VIMRUNTIME. To display $VIMRUNTIME from wit

Re: Misterious mapping to p key

2011-01-19 Thread Pablo Giménez
; - Make sure the problem doesn't appear when running Vim without >  any plugins or your .vimrc:: > >    vim -u NONE > > - Grep for the mapping string in your ~/.vim directory, and >  possibly in $VIMRUNTIME. To display $VIMRUNTIME from within >  Vim:: > >    :echo

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
Reply to message «ctrl-o with a mapping», sent 20:53:12 04 February 2011, Friday by AK: > nnoremap zz zz:call LineNums() > > It works well, but when I hit ctrl-O zz in insert, I get > the :call .. inserted in my text. This seems like a bug in ctrl-O? This is not a bug: execute

Re: ctrl-o with a mapping

2011-02-04 Thread AK
On 02/04/2011 02:50 PM, ZyX wrote: Reply to message «ctrl-o with a mapping», sent 20:53:12 04 February 2011, Friday by AK: nnoremap zz zz:call LineNums() It works well, but when I hit ctrl-O zz in insert, I get the :call .. inserted in my text. This seems like a bug in ctrl-O? This is not

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 23:03:53 04 February 2011, Friday by AK: > Well, perhaps it's not a bug that it executes only one normal mode > command, but why would it insert the rest of the mapping into buffer? > Is that a useful or expected behavi

Re: ctrl-o with a mapping

2011-02-04 Thread AK
On 02/04/2011 03:12 PM, ZyX wrote: Reply to message «Re: ctrl-o with a mapping», sent 23:03:53 04 February 2011, Friday by AK: Well, perhaps it's not a bug that it executes only one normal mode command, but why would it insert the rest of the mapping into buffer? Is that a useful or exp

Re: ctrl-o with a mapping

2011-02-04 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 23:21:50 04 February 2011, Friday by AK: Try typing «zz:call LineNums()» in insert mode (manually). You will get just the same behavior as you see when you use the mapping. There are some differencies between how mapping and typed text are

Re: ctrl-o with a mapping

2011-02-04 Thread AK
On 02/04/2011 03:40 PM, ZyX wrote: Reply to message «Re: ctrl-o with a mapping», sent 23:21:50 04 February 2011, Friday by AK: Try typing «zz:call LineNums()» in insert mode (manually). You will get just the same behavior as you see when you use the mapping. There are some differencies between

Re: ctrl-o with a mapping

2011-02-05 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 23:56:30 05 February 2011, Saturday by AK: > Well, this is a normal mode mapping (nnoremap), by definition all of its > contents should run under normal mode or not at all. The fact that it is normal mode mapping means that {lhs} w

Re: ctrl-o with a mapping

2011-02-05 Thread Ben Fritz
On Feb 5, 4:05 am, ZyX wrote: > Reply to message «Re: ctrl-o with a mapping», > sent 23:56:30 05 February 2011, Saturday > by AK: > > > Well, this is a normal mode mapping (nnoremap), by definition all of its > > contents should run under normal mode or not at all.

Re: ctrl-o with a mapping

2011-02-05 Thread ZyX
Reply to message «Re: ctrl-o with a mapping», sent 19:38:30 05 February 2011, Saturday by Ben Fritz: Perhaps a bug somewhere? It should be redirected to vim_dev, I think. Original message: > On Feb 5, 4:05 am, ZyX wrote: > > Reply to message «Re: ctrl-o with a mapping», > > s

Re: ctrl-o with a mapping

2011-02-05 Thread AK
On 02/05/2011 05:05 AM, ZyX wrote: Reply to message «Re: ctrl-o with a mapping», sent 23:56:30 05 February 2011, Saturday by AK: Well, this is a normal mode mapping (nnoremap), by definition all of its contents should run under normal mode or not at all. The fact that it is normal mode

Re: ctrl-o with a mapping

2011-02-05 Thread Andy Wokula
Am 05.02.2011 17:38, schrieb Ben Fritz: On Feb 5, 4:05 am, ZyX wrote: Reply to message «Re: ctrl-o with a mapping», sent 23:56:30 05 February 2011, Saturday by AK: Well, this is a normal mode mapping (nnoremap), by definition all of its contents should run under normal mode or not at all

Re: ctrl-o with a mapping

2011-02-05 Thread AK
On 02/05/2011 01:58 PM, Andy Wokula wrote: Am 05.02.2011 17:38, schrieb Ben Fritz: On Feb 5, 4:05 am, ZyX wrote: Reply to message «Re: ctrl-o with a mapping», sent 23:56:30 05 February 2011, Saturday by AK: Well, this is a normal mode mapping (nnoremap), by definition all of its contents

Re: ctrl-o with a mapping

2011-02-05 Thread AK
On 02/04/2011 02:50 PM, ZyX wrote: Reply to message «ctrl-o with a mapping», sent 20:53:12 04 February 2011, Friday by AK: nnoremap zz zz:call LineNums() I think there may be an easier work around than wrapping in a function, like so: nnoremap zz zz:call LineNums() But how can I avoid

mapping F3 to map q ^B

2011-02-19 Thread lylez
Hello To make paging easier, I have in my .vimrc map q ^B map g ^F Some times I want to use the recording feature activated by qq, so I want to undo the mapping of q, then restore it afterwards. I have map #2 ^[:unmap q^M which works and map #3 ^[:map q ^B^M which does not produce any

Simple mapping accepted, but incorrectly displayed.

2011-06-14 Thread Erik Christiansen
In Vim 7.3, I added the following mappings: map å map æ map ø map « map > » in an effort to make vim a little more Danish-friendly. All the mappings are accepted without complaint, but the characters displayed when the mappings are invoked are not those mapped. I've tried both with fenc=latin

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 yiw pa? Note this is only for

Re: Re: Strange behavior of mapping.

2012-01-10 Thread Paul Isambert
Christian Brabandt a écrit: > > Hi Paul! > > On Di, 10 Jan 2012, Paul Isambert wrote: > > > Hello there, > > > > Given the mapping: > > > > map fXa > > > > where X stands for any character, if X appears on the line, > > go

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 to jump backward by word The closer I was able to do was :cnoremap which jump backwards by WORD or use which delete backward by word Is there anyway to do something like :cnoremap Thank you, Ben. -- You rec

Re: mapping insert to shift-insert

2012-02-15 Thread Tony Mechelynck
On 15/02/12 20:50, sinbad wrote: how can i map key to work as i tried the following mapping nmap 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,

Re: mapping keys in any mode

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

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 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 :nohlsearch >> imap :nohlsearchi >> >

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 and keys) to :tabnext and :tabprevious. Thanks, Razvan -- You received this message from the "vim_use" maillist. Do not top-post! Type you

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 _ > inoremap - > > When I do I get - (the dash char), what is what I expected > When I do I get | (the pipe char) > I would except _ (the underscore char) > > When I type :v

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: inoremap _ inoremap - When I do I get - (the dash char), what is what I expected When I do I get | (the pipe char) I would

Re: mapping for regular expression search

2012-05-07 Thread Christian Brabandt
On Tue, May 8, 2012 08:45, sinbad wrote: > what's wrong with this mapping > > nmap

Not mapping keys for SuperTab continued.

2012-05-24 Thread Pablo Giménez
I want to use SuperTab continued with UtiSnips. So first thing Iwant to do is to not have SuperTab mapping any key at all. Is that possible? There are several global variables to change mappings like: g:SuperTabMappingForward g:SuperTabMappingBackward But I havent seen anything about avoid keys

Mapping keys Ctrl-K Ctrl-C

2012-10-27 Thread ashwin sathya
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 information, visit http

How to get {lhs} for mapping

2012-11-23 Thread Timothy Madden
for me to know what mappings have 'PluginFunction' 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

Re: Menu trigger a user mapping

2012-12-22 Thread Nicolas Dermine
On 22 Dec 2012 15:52, "David Fishburn" wrote: > > Not quite sure how to set this up. > > When I create a menu item it usually calls a command > vnoremenu

Buffer-local unmap of global mapping

2013-01-13 Thread Michael Henry
-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. Becau

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 h >

<    1   2   3   4   5   6   7   8   >