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 «C-ozz:call LineNums()CR» in insert mode (manually). You will get just the same behavior as you see when you use the mapping. There are some differencies

Re: Strange mapping behaviour

2011-02-03 Thread Jürgen Krämer
Hi, Marco wrote: I discovered a strange behaviour while setting up an inoremap command: inoremap ( ()ESCha Works inoremap » »«ESCha Doesn't work Why does the second mapping not work? how do you enter the opening guillemet? Do you have a single key for it or do you enter

Re: Strange mapping behaviour

2011-02-03 Thread Marco
On 2011-02-03 Jürgen Krämer jottka...@googlemail.com wrote: Hi, Marco wrote: I discovered a strange behaviour while setting up an inoremap command: inoremap ( ()ESCha Works inoremap » »«ESCha Doesn't work Why does the second mapping not work? how do you enter

Re: Strange mapping behaviour

2011-02-03 Thread Jürgen Krämer
Hi, Marco wrote: On 2011-02-03 Jürgen Krämer jottka...@googlemail.com wrote: Marco wrote: I discovered a strange behaviour while setting up an inoremap command: inoremap ( ()ESCha Works inoremap » »«ESCha Doesn't work Why does the second mapping not work? how do you enter

Re: Strange mapping behaviour

2011-02-03 Thread ZyX
Reply to message «Re: Strange mapping behaviour», sent 18:07:41 03 February 2011, Thursday by Marco: Does `:normal a»' or ``:call feedkeys('»') | startinsert'' work? Original message: On 2011-02-03 Jürgen Krämer jottka...@googlemail.com wrote: Hi, Marco wrote: I discovered a strange

Re: Strange mapping behaviour

2011-02-03 Thread Marco
On 2011-02-03 Jürgen Krämer jottka...@googlemail.com wrote: how do you enter the opening guillemet? Do you have a single key for it or do you enter it as a digraph? IIRC you cannot use a digraph on the left side of a mapping. I press AltGr+y to get the ». hmm, AltGr+Y does not get

Find out the origin of a mapping

2011-02-03 Thread Marco
to to some custom things (executing a function) and then perform the original Ctrl+j mapping to remove the ++ construct. But I cannot find the place where the Ctrl+j mapping is defined. With :map it is not listed. Is it a plugin? How can I find out where the mapping is defined? Regards Marco

Re: Find out the origin of a mapping

2011-02-03 Thread Tim Chase
On 02/03/2011 10:21 AM, Marco wrote: But I cannot find the place where theCtrl+j mapping is defined. With :map it is not listed. Is it a plugin? How can I find out where the mapping is defined? Depending on the mode in which the mapping is used, it might be an insert-mode map. You'd want

Re: Find out the origin of a mapping

2011-02-03 Thread Marco
On 2011-02-03 Tim Chase v...@tim.thechases.com wrote: On 02/03/2011 10:21 AM, Marco wrote: But I cannot find the place where theCtrl+j mapping is defined. With :map it is not listed. Is it a plugin? How can I find out where the mapping is defined? Depending on the mode in which

Re: Find out the origin of a mapping

2011-02-03 Thread John Little
On Feb 4, 6:18 am, Marco net...@lavabit.com wrote: It is a mapping, and of course it's listed in the :map command. But it outputs zillions of lines and polluted my screen, I just overlooked it. When in doubt about a vim listing, one can use :redir to capture the output, then put

Re: Misterious mapping to p key

2011-01-19 Thread Pablo Giménez
 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 $VIMRUNTIME  It's likely to be below /usr/share/vim.  One of these searches might turn up something

Key mapping problem.

2011-01-17 Thread shuda Li
Hi All, Recently I bought a new PC and installed Ubuntu 10.10 and Vim 7.3.99. I keep using the old vimrc file. However, one key mapping suddenly stop working: map C-c +y It seems that C-c now behaves equivalently as Esc: it switches from insert mode to normal mode. I installed Vim 7.2

Re: Key mapping problem.

2011-01-17 Thread ifys0325
Hi, i think you'd better map C-c in visual mode because when you want to copy,you must select them first. so : vnoremap C-C +y i think it can solve your problem. 2011-01-17 ifys0325 发件人: shuda Li 发送时间: 2011-01-17 16:04:23 收件人: vim_use 抄送: 主题: Key mapping problem. Hi All

Re: Key mapping problem.

2011-01-17 Thread shuda Li
it can solve your problem. 2011-01-17 ifys0325 发件人: shuda Li 发送时间: 2011-01-17  16:04:23 收件人: vim_use 抄送: 主题: Key mapping problem. Hi All, Recently I bought a new PC and installed Ubuntu 10.10 and Vim 7.3.99. I keep using

Re: Re: Key mapping problem.

2011-01-17 Thread ifys0325
Did you try to paste it? Or type :register to see if some content in the register *? In the normal condition, it will be back to normal mode and write the content to register *. 2011-01-17 ifys0325 发件人: shuda Li 发送时间: 2011-01-17 17:00:58 收件人: vim_use 抄送: 主题: Re: Key mapping

Re: Re: Key mapping problem.

2011-01-17 Thread shuda Li
Every other key mapping works very well. The key mapping C-c also works fine on my old PC Ubuntu10.04, for both Vim 7.2 and Vim 7.3.99, Very weird problem. Shuda 2011/1/17 ifys0325 ifys0...@163.com: Did you try to paste it? Or type :register to see if some content in the register

Re: Key mapping problem.

2011-01-17 Thread Daniel Corrêa
On 17/01/11 06:04, shuda Li wrote: Hi All, Recently I bought a new PC and installed Ubuntu 10.10 and Vim 7.3.99. I keep using the old vimrc file. However, one key mapping suddenly stop working: mapC-c +y It seems thatC-c now behaves equivalently asEsc: it switches from insert mode

Re: Key mapping problem.

2011-01-17 Thread shuda Li
and Vim 7.3.99. I keep using the old vimrc file. However, one key mapping suddenly stop working: mapC-c  +y It seems thatC-c  now behaves equivalently asEsc:  it switches from insert mode to normal mode. I installed Vim 7.2, the problem remains. I am wondering how to solve this problem

Re: Misterious mapping to p key

2011-01-15 Thread Michael Henry
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 within Vim:: :echo $VIMRUNTIME

Misterious mapping to p key

2011-01-14 Thread Pablo Giménez
. It is very annoying, I have to delete the buffer and load it again to reset the mapping for the buffer. I have tried to check if any plugin is causing the problem, but this is what I got: :verbose nmap p n p *@:wincmd pCR:BS Last set from /user_data/.tmp/v837878/56 And the file

Re: Alt key Mapping

2010-12-13 Thread Ben Fritz
. 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 A-j ESC:tabprevCR But this doesn't work. It DOES work if I map it to the control key. When I look at the mapping in gvim (with :map)  i see that the tabprev function is mapped

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

Alt key Mapping

2010-12-10 Thread dvd7e
and right across tabs. So I have this in my .vimrc: :map A-j ESC:tabprevCR But this doesn't work. It DOES work if I map it to the control key. When I look at the mapping in gvim (with :map) i see that the tabprev function is mapped to 'e-(circumflex)', e.g. the letter 'e' with a little hat on top

Re: Alt key Mapping

2010-12-10 Thread AK
like to use Alt+j and Alt+k to move left and right across tabs. So I have this in my .vimrc: :mapA-j ESC:tabprevCR But this doesn't work. It DOES work if I map it to the control key. When I look at the mapping in gvim (with :map) i see that the tabprev function is mapped to 'e-(circumflex)', e.g

Re: Mapping fails to navigate on windows

2010-11-23 Thread epanda
Nobody has idea why it fails ? -- 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 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 replying to. For more

mapping ^M in .vimrc

2010-11-10 Thread Ryan J M
Hi there, I mapped a short key for command :s/\s\+/^M/g in .vimrc (^M was typed using C-V,C-M), but the short key doesn't work as expected. Can someone share some suggestions? -- FIXME if it is wrong. -- You received this message from the vim_use maillist. Do not

Re: mapping ^M in .vimrc

2010-11-10 Thread Reid Thompson
On 11/10/2010 9:09 PM, Ryan J M wrote: Hi there, I mapped a short key for command :s/\s\+/^M/g in .vimrc (^M was typed using C-V,C-M), but the short key doesn't work as expected. Can someone share some suggestions? of the top of my head try \r :s/\s\+/\r/g -- You

Re: mapping ^M in .vimrc

2010-11-10 Thread ZyX
Reply to message «mapping ^M in .vimrc», sent 05:09:51 11 November 2010, Thursday by Ryan J M: You posted the {rhs} of the mapping, but where is the whole mapping command exactly as it appears in the vimrc? Original message: Hi there, I mapped a short key for command :s/\s\+/^M

Re: mapping ^M in .vimrc

2010-11-10 Thread Tony Mechelynck
On 11/11/10 03:09, Ryan J M wrote: Hi there, I mapped a short key for command :s/\s\+/^M/g in .vimrc (^M was typed using C-V,C-M), but the short key doesn't work as expected. Can someone share some suggestions? ^M (or \r ), i.e., the Enter key, behaves specially in

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. M-.c. exec map! \e.c. M-.c. endfor To solve the problems, I

mappings for insert mode and other mapping for overwrite mode

2010-10-22 Thread Jeri Raye
Hi, Is it possible to make different mappings based on insert mode or overwrite mode Meaning with insert-mode the cursor is a vertical stripe in between chars. With overwrite-mode the cursor is horizontal stripe below the char. Rgds Jeri -- You received this message from the vim_use

Re: mappings for insert mode and other mapping for overwrite mode

2010-10-22 Thread ZyX
Reply to message «mappings for insert mode and other mapping for overwrite mode», sent 21:48:46 22 October 2010, Friday by Jeri Raye: overwrite mode It is named ``replace mode'', not ``overwrite mode'' if I understood you correctly. Is it possible to make different mappings based on insert

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,

Mapping keys and vimrc

2010-10-15 Thread Rahul Kumar
Hi, I would like to use the key mapping to print a string. 1) Ex: If i hit some character say p, I should print the following printf (\n Debug \n); 2) Also, i'm using gvim on window but the vimrc file present in the mapped drive of a is being used. What changes should i make so that i can

Re: Mapping keys and vimrc

2010-10-15 Thread Gary Johnson
On 2010-10-15, Rahul Kumar wrote: Hi, I would like to use the key mapping to print a string. 1) Ex: If i hit some character say p, I should print the following printf (\n Debug \n); One way to do that is with an abbreviation: iabbrev p printf (\n Debug \n); See :help

Re: Mapping keys and vimrc

2010-10-15 Thread Rahul Kumar
the key mapping to print a string. 1) Ex: If i hit some character say p, I should print the following     printf (\n Debug \n); One way to do that is with an abbreviation:    iabbrev p printf (\n Debug \n); See    :help abbreviations 2) Also, i'm using gvim on window but the vimrc file

Re: Mapping keys and vimrc

2010-10-15 Thread Francisco Dibar
1) I tried with iabbrev p printf (\n Debug \n); by inserting in vimrc file also entering in vim file using :iabbrev p printf (\n Debug \n); i cannot see printf statement getting inserted with i hit 'p'. The printf appears after hitting p AND the space key :) -- You received this message

Re: Mapping keys and vimrc

2010-10-15 Thread Ben Fritz
On Oct 15, 12:02 pm, Rahul Kumar mailforgr...@gmail.com wrote: 2) echo $VIM has the same value with the one you mentioned. But i can see $HOME is pointing to the mapped drive (linux machine) which has the vimrc file. snippet of version output: system vimrc file: $VIMRC\vimrc user vimrc

Re: Mapping keys and vimrc

2010-10-15 Thread Ben Fritz
On Oct 15, 12:48 pm, Francisco Dibar frandi...@gmail.com wrote: 1) I tried with iabbrev p printf (\n Debug \n); by inserting in vimrc file also entering in vim file using :iabbrev p printf (\n Debug \n); i cannot see printf statement getting inserted with i hit 'p'. The printf appears

Re: Mapping keys and vimrc

2010-10-15 Thread Gary Johnson
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 didn't want that text inserted _every_ time you hit 'p'. 2) echo $VIM has the same value with the one you mentioned

Re: [solved] Mapping keys and vimrc

2010-10-15 Thread Rahul Kumar
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 didn't want that text inserted _every_ time you hit 'p'. 2) echo $VIM has the same value with the one you mentioned

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 cr imap ,ha --,HR imap ,hf \ ,HR imap ,hh -,HR imap ,hs

Re: How to bury a mapping?

2010-10-04 Thread Bee
On Oct 3, 10:52 pm, Israel Chauca F. israelvar...@fastmail.fm 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 ---1-2-3-4-5

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 «:C-ucall...» was probably done by other plugin, not by latexsuite. Latexsuite defines mappings like «`em

Re: Mapping ` to , in visual mode

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

Mapping ` to , in visual mode

2010-10-02 Thread alexandre krispin
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 to use it many times. For this reason I have tried to map the ` to the

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 to use

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 latexsuite

mapping g to ctrl-f

2010-09-27 Thread lylez
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? -- You received this message from the vim_use

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

Re: mapping g to ctrl-f - timeout

2010-09-27 Thread Sven Guckes
* lylez lyle.ziegelmil...@gmail.com [2010-09-28 04:03]: I map g to ctrl-f to make paging easier. like this?: :map g c-f (just checking) 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

How to get a command that comes completely from a mapping into : register

2010-08-20 Thread Aarto Matti
Hi, I wonder if there a way to access the last command even if it comes from mapping. Vim help says I can't: : Contains the most recent executed command-line. Example: Use @: to repeat the previous command-line command. The command-line is only stored in this register when at least one

Re: How to get a command that comes completely from a mapping into : register

2010-08-20 Thread Andy Wokula
Am 20.08.2010 15:16, schrieb Aarto Matti: Hi, I wonder if there a way to access the last command even if it comes from mapping. Vim help says I can't: : Contains the most recent executed command-line. Example: Use @: to repeat the previous command-line command. The command-line is only

Re: How to get a command that comes completely from a mapping into : register

2010-08-20 Thread Andy Wokula
Am 20.08.2010 15:50, schrieb Andy Wokula: Am 20.08.2010 15:16, schrieb Aarto Matti: Hi, I wonder if there a way to access the last command even if it comes from mapping. Vim help says I can't: : Contains the most recent executed command-line. Example: Use @: to repeat the previous command

Re: Command switching to Normal mode with no mapping is used

2010-06-21 Thread Tony Mechelynck
On 01/04/10 05:52, anna wrote: Hi all, Is there a command which can be used to go to Normal mode but no mapping is used in the Normal mode? That would be similar to :normal!, but in this case I can only start from Command-Line mode. So, the command that I need is like Commanddd I can start

Re: Plugins - Accepted practices mapping conflicts

2010-06-16 Thread Bob Hiestand
'nmap silent unique' lhs a:expansion catch /^Vim(.*):E227:/ if(verbose != 0) echohl WarningMsg|echomsg 'VCSCommand: mapping ''' . lhs . ''' already exists, refusing to overwrite. The mapping for ' . a:display

Plugins - Accepted practices mapping conflicts

2010-06-14 Thread Nathan Neff
avoid conflicts, unless of course the user has leaderg mapped already. If the user wants to use a different set of leader keys, the user can change g:GrailsVimMapLeader (for example, to leaderF3 or something.) However, I realize there's still a chance that key mapping conflicts can occur. I

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread Brett Stahlman
realize there's still a chance that key mapping conflicts can occur. Nathan, :help using-Plug 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 the user fixes it. I know about the :map unique and maparg() function

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread sc
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 the user fixes it. I know about the :map unique and maparg() function. Can anyone give me

Re: Plugins - Accepted practices mapping conflicts

2010-06-14 Thread Nathan Neff
(for example, to leaderF3 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  the user fixes it. I know about the :map

Re: Mapping the Super / Windows key

2010-05-28 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 C-X +x vnoremap C-C +y imap C-V

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 C-X +x vnoremap C-C +y imap C-V+gP cmap C-VC-R+ Pasting blockwise and linewise selections is not possible in Insert and Visual mode without the +virtualedit feature. They are pasted as if they

RE: Mapping the Super / Windows key

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

Re: Mapping the Super / Windows key

2010-05-27 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 a scancode mapping to do

Mapping the Super / Windows key

2010-05-24 Thread Bernhard Walle
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 -- You received this message from the vim_use maillist. Do not top-post! Type your reply

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

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, the key

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,

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

Re: How to view all key mapping ?

2010-05-10 Thread Gary Johnson
On 2010-05-10, Benoit Thomas wrote: 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

Re: How to view all key mapping ?

2010-05-10 Thread Benoit Thomas
On 2010-05-10 15:47, Gary Johnson wrote: On 2010-05-10, Benoit Thomas wrote: 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

Re: How to view all key mapping ?

2010-05-10 Thread Tony Mechelynck
On 10/05/10 21:41, Benoit Thomas wrote: 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

Which is the best way of doing some mapping reuse?

2010-05-02 Thread Raúl Núñez de Arenas Coronado
one is copying and pasting the map, but that is not good for maintenance, because if you have to modify the mapping later, you have to do it in probably many lines: nnoremap silentbuffer LocalLeaderKEY m'gg+yG'' inoremap silentbuffer LocalLeaderKEY Escm'gg+yG''i I don't like this, really. Second

Re: Which is the best way of doing some mapping reuse?

2010-05-02 Thread John Little
On May 2, 10:45 pm, Raúl Núñez de Arenas Coronado raul...@gmail.com wrote: First one is copying and pasting the map... How about a level of indirection using :exe : let mapped = silentbuffer LocalLeaderKEY let mapping = m'gg\+yG\ exe 'nnoremap ' . mapped . mapping exe 'inoremap ' . mapped

Re: Which is the best way of doing some mapping reuse?

2010-05-02 Thread Raúl Núñez de Arenas Coronado
mapping = m'gg\+yG\ exe 'nnoremap ' . mapped . mapping exe 'inoremap ' . mapped . 'esc' . mapping . 'i' I don't know how usable this is, I just checked :map output to see that the mappings had been made. You could extend this to a general function, f. ex.    call Makemaps(mapped, mapping, modes

Re: Mapping Shift-space: how to tell if its possible?

2010-05-01 Thread Britton Kerin
I assumed 7.2 but I guess this debian is still on 7.1. 7.2 works fine, thanks. Britton On Thu, Apr 29, 2010 at 6:41 PM, John Little john.b.lit...@gmail.comwrote: Both these tests seem to indicate that my machine doesn't see Shift-Space. Any idea why some systems do this and some not, or

Re: Mapping Shift-space: how to tell if its possible?

2010-04-29 Thread Britton Kerin
On Wed, Apr 28, 2010 at 7:55 PM, John Beckett johnb.beck...@gmail.comwrote: Britton Kerin wrote: I'd like to map shift-space S-Space to PageDown or something. After a lot of googling I find several mentions that some setups are st vim differentiates between Space and S-Space and some

Re: Mapping Shift-space: how to tell if its possible?

2010-04-29 Thread John Little
Both these tests seem to indicate that my machine doesn't see Shift-Space. Any idea why some systems  do this and some not, or what I might do to fix this problem? We'd need to know which version, OS, and maybe which gui you are using; the first four lines output by :version would be a start.

Re: Mapping Shift-space: how to tell if its possible?

2010-04-29 Thread Tony Mechelynck
On 29/04/10 20:23, Britton Kerin wrote: On Wed, Apr 28, 2010 at 7:55 PM, John Beckett johnb.beck...@gmail.com mailto:johnb.beck...@gmail.com wrote: Britton Kerin wrote: I'd like to map shift-space S-Space to PageDown or something. After a lot of googling I find several

Mapping Shift-space: how to tell if its possible?

2010-04-28 Thread Britton Kerin
I'd like to map shift-space S-Space to PageDown or something. After a lot of googling I find several mentions that some setups are st vim differentiates between Space and S-Space and some not. It seems not for me since :C-vS-Space outputs only a space. I didn't find any mention what in the setup

RE: Mapping Shift-space: how to tell if its possible?

2010-04-28 Thread John Beckett
Britton Kerin wrote: I'd like to map shift-space S-Space to PageDown or something. After a lot of googling I find several mentions that some setups are st vim differentiates between Space and S-Space and some not. It seems not for me since :C-vS-Space outputs only a space. I didn't find

Re: ctrl-k mapping not working

2010-04-03 Thread Tony Mechelynck
for mapping. I do. I have this line in my vimrc: inoremap jffc-k|inoremapc-k esc It works. But rather doing gvim or gnome-terminal, I use urxvt. Ah yes, it works :-? yet I thought I'd tried it in the past (with gvim 6.x on Windows) and not succeeded. Maybe a bug that has been fixed? Best regards

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 C-J :bncr nn C-K :bpcr imap expr c-j pumvisible()?\C-N:\C-XC-O imap expr c-k pumvisible()?\C-P:\esc Everything works fine until today. I'm using gnome-terminal, and vim72, The c-j mapping works as expected

Re: ctrl-k mapping not working

2010-04-02 Thread Florian Rehnisch
* Tony Mechelynck antoine.mechely...@gmail.com [100403 03:20]: imap expr c-k pumvisible()?\C-P:\esc 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 my vimrc

Re: Command switching to Normal mode with no mapping is used

2010-04-01 Thread anna klein
One workaround is to unmap the disturbing mapping and remap it again later.. But this can be unfeasible.. In general it is worth talking about the task you're trying to solve rather than asking about how to implement the solution you think is best. So which is your use case leading

Re: Command switching to Normal mode with no mapping is used

2010-04-01 Thread Marc Weber
Hi Anna, I have found a workaround for it. I want to detect when command-line mode starts. Tell about the whole use case. Why do you want to detect switching to normal mode? There is InsertLeave. But this doesn't catch visual - normal. Marc Weber -- You received this message from the

Command switching to Normal mode with no mapping is used

2010-03-31 Thread anna
Hi all, Is there a command which can be used to go to Normal mode but no mapping is used in the Normal mode? That would be similar to :normal!, but in this case I can only start from Command-Line mode. So, the command that I need is like Commanddd I can start from any mode, Command will make Vim

Re: Command switching to Normal mode with no mapping is used

2010-03-31 Thread Marc Weber
Hi Anna Any advice on this matter? One workaround is to unmap the disturbing mapping and remap it again later.. But this can be unfeasible.. In general it is worth talking about the task you're trying to solve rather than asking about how to implement the solution you think is best. So which

Why no window-local mapping?

2010-03-30 Thread Jeenu
Hi, I know of buffer local mapping and global mapping. I wonder why there isn't a window/tab local mapping option for Vim. I use some Vim windows/tabs exclusively for navigating quick fix lists. On those windows, I keep C-N nd C-P globally mapped to :lnext (or :cnext) and :lprevious. The problem

Re: Why no window-local mapping?

2010-03-30 Thread Andy Wokula
Am 30.03.2010 14:18, schrieb Jeenu: Hi, I know ofbuffer local mapping and global mapping. I wonder why there isn't awindow/tab local mapping option for Vim. I use some Vim windows/tabs exclusively for navigating quick fix lists. On those windows, I keepC-N ndC-P globally mapped to :lnext

Re: Why no window-local mapping?

2010-03-30 Thread Tony Mechelynck
On 30/03/10 14:18, Jeenu wrote: Hi, I know ofbuffer local mapping and global mapping. I wonder why there isn't awindow/tab local mapping option for Vim. I use some Vim windows/tabs exclusively for navigating quick fix lists. On those windows, I keepC-N ndC-P globally mapped to :lnext

Re: Why no window-local mapping?

2010-03-30 Thread Jeenu
On Mar 30, 6:37 pm, Andy Wokula anw...@yahoo.de wrote: Do you think of     :map window     :map tabpage next to     :map buffer ? I'd write or script it as :map window C-N :lnext :map window C-P :lnext when I'm at the required window Thanks Jeenu -- You received this

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 antoine.mechely...@gmail.com 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 Jeenu
On Mar 30, 10:15 pm, Benjamin R. Haskell v...@benizi.com 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 window ...? The '-'

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 Mechelynckantoine.mechely...@gmail.com 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

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... ;-)

Re: Mapping only fields of a Dictionnary (help says only List and all items of Dict)

2010-02-20 Thread Tony Mechelynck
On 23/12/09 13:04, epanda wrote: Hi, I am building some info in Dict and hash like this : let myHash = {} let g:cnt = 1 g/pattern/=call storingData()/ func! storingData(param1, param2) let myHash[g:cnt] = {'information':a:param1 , 'clue':a:param2 }

<    1   2   3   4   5   6   7   8   >