Re: Language dependent mapping

2009-09-02 Thread Dmitry V. Krivenok
Derek Wyatt wrote: > On Wed, Sep 2, 2009 at 6:26 AM, Dmitry V. Krivenok > mailto:krive...@orangesystem.ru>> wrote: > > I want to map insertion of such strings to some key (e.g. F8). > However, I want this mapping to be language dependent. > It should recog

Re: Language dependent mapping

2009-09-02 Thread Derek Wyatt
On Wed, Sep 2, 2009 at 6:26 AM, Dmitry V. Krivenok wrote: > I want to map insertion of such strings to some key (e.g. F8). > However, I want this mapping to be language dependent. > It should recognize type of file in the current buffer and insert > appropriate string. > >

Language dependent mapping

2009-09-02 Thread Dmitry V. Krivenok
Hello! To separate functions in C/C++ I use strings containing 80 "/" characters. In perl scripts I use strings containing "#" to separate subroutines. I want to map insertion of such strings to some key (e.g. F8). However, I want this mapping to be language dependent. It s

problem mapping

2009-08-25 Thread CHEN Cheng
Hi folks, When I map , a character "â" shows up, instead of the expected rhs. But, if I map ^]b directly, everything works, which is very interesting. What I did: 1. vim 2. :set =^[b 3. :imap 4. i, goto insert mode 5. press , nothing happened on the screen 6. press

Re: mapping control+0-1 or backtick

2009-08-15 Thread Tony Mechelynck
On 15/08/09 16:16, Robert Mark Bram wrote: > > Hi Tony, > >>> Is it possible to map to control+number or control+`? > >> You can map any key that Vim knows about. In particular, you can map 1 >> or ` by themselves, these are ordinary "printable" keys. >> >> What concerns the Ctrl + printable key c

Re: mapping control+0-1 or backtick

2009-08-15 Thread Robert Mark Bram
Hi Tony, > > Is it possible to map to control+number or control+`? > You can map any key that Vim knows about. In particular, you can map 1 > or ` by themselves, these are ordinary "printable" keys. > > What concerns the Ctrl + printable key combinations, Vim knows only > those defined by ASCII,

Re: mapping control+0-1 or backtick

2009-08-15 Thread Tony Mechelynck
On 04/08/09 02:23, Robert Mark Bram wrote: > > 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 yo

Re: Mapping does not work

2009-08-14 Thread Tony Mechelynck
On 31/07/09 20:07, Charles Campbell wrote: > > J.A.J. Pater wrote: >> One way or another a mapping I'm trying to implement doesn't work. >> I'm trying to paste with CTRL-V only in insert mode and keep using >> CTRL-V for visual in other modes. >&g

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

Re: Mapping does not work

2009-07-31 Thread J.A.J. Pater
Charles Campbell schreef: > J.A.J. Pater wrote: > >> One way or another a mapping I'm trying to implement doesn't work. >> I'm trying to paste with CTRL-V only in insert mode and keep using >> CTRL-V for visual in other modes. >> >> In my .vi

Re: Mapping does not work

2009-07-31 Thread J.A.J. Pater
meino.cra...@gmx.de schreef: >> I'm trying to paste with CTRL-V only in insert mode and keep using >> CTRL-V for visual in other modes. >> >> In my .vimrc I've got: >> >> imap "+gP >> >> The only thing I get when pushing CTRL-V in insert mode is the literal >> text "+gP >> But not the desired e

Re: Mapping does not work

2009-07-31 Thread Charles Campbell
J.A.J. Pater wrote: > One way or another a mapping I'm trying to implement doesn't work. > I'm trying to paste with CTRL-V only in insert mode and keep using > CTRL-V for visual in other modes. > > In my .vimrc I've got: > > imap "+gP > > The

Re: Mapping does not work

2009-07-31 Thread meino . cramer
J.A.J. Pater [09-07-31 19:10]: > > Dear vim users, > > One way or another a mapping I'm trying to implement doesn't work. > I'm trying to paste with CTRL-V only in insert mode and keep using > CTRL-V for visual in other modes. > > In my .vimrc I'v

Mapping does not work

2009-07-31 Thread J.A.J. Pater
Dear vim users, One way or another a mapping I'm trying to implement doesn't work. I'm trying to paste with CTRL-V only in insert mode and keep using CTRL-V for visual in other modes. In my .vimrc I've got: imap "+gP The only thing I get when pushing CTRL-V in i

Re: mapping gnu screen command in vim

2009-07-28 Thread Christian Ebert
* Eric Smith on Sunday, July 26, 2009: > I want to paste the contents of a screen buffer into vim. I wrote a plugin to that purpose: http://www.vim.org/scripts/script.php?script_id=1512 Try it. Feedback/criticism welcome. c -- Was heißt hier Dogma, ich bin Underdogma! [ What the hell do yo

Re: mapping gnu screen command in vim

2009-07-27 Thread Tim Chase
Eric Smith wrote: > I want to paste the contents of a screen buffer into vim. You might want to investigate http://www.vim.org/scripts/script.php?script_id=1512 which provides several mappings for marrying Vim & Screen's clipboard. -tim --~--~-~--~~~---~--~

Re: mapping gnu screen command in vim

2009-07-26 Thread bill lam
On Sun, 26 Jul 2009, Eric Smith wrote: > > > If, however, you're trying to perform a single screen action that > > can't be called from the command-line shell, you'd likely have to > > just use screen's key-mapping functions. > > One could u

Re: mapping gnu screen command in vim

2009-07-26 Thread Eric Smith
> If, however, you're trying to perform a single screen action that > can't be called from the command-line shell, you'd likely have to > just use screen's key-mapping functions. One could use from the shell screen -X paste . for the current buffer. This could

Re: mapping gnu screen command in vim

2009-07-26 Thread Eric Smith
I want to paste the contents of a screen buffer into vim. -- - Eric Smith Christian Ebert said: > > [This message has also been posted.] > * Eric Smith on Sunday, July 26, 2009: > > How do I map the escape sequence of gnu screen in a vim > > keybinding or function? > > > > Does not work for me

Re: mapping gnu screen command in vim

2009-07-26 Thread Christian Ebert
[This message has also been posted.] * Eric Smith on Sunday, July 26, 2009: > How do I map the escape sequence of gnu screen in a vim > keybinding or function? > > Does not work for me so far. What exactly do you want to achieve? c -- Vim plugin to paste current GNU Screen buffer in (almost) a

Re: mapping gnu screen command in vim

2009-07-26 Thread Tim Chase
performed by screen on the command-line (such as launching an application in a new screen), the mapping should be pretty straight-forward: nnoremap Q :!screen top (this launches "top" in a new screen; the second clears the "press to continue" message) If, however, you'

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 -

Re: Mapping separately from

2009-07-17 Thread Ben Fritz
On Jul 17, 11:34 am, Tony Mechelynck wrote: > > What does gvim reply to > >         :verbose map >         :verbose map! >         :verbose map >         :verbose map! Using your example in gvim -n -u NONE -i NONE: :echo "<\" shows > :echo "<\" shows <*KA> (the * is actually a character f

Re: Mapping separately from

2009-07-17 Thread Tony Mechelynck
On 17/07/09 17:22, Ben Fritz wrote: > > I'm using gvim on Windows XP, and I've tried the following mapping: > > nnoremap G > > The intent is to keep the normal functionality of, but allow me > to rapidly go to a certain line using the numeric keypad. > > U

Mapping separately from

2009-07-17 Thread Ben Fritz
I'm using gvim on Windows XP, and I've tried the following mapping: nnoremap G The intent is to keep the normal functionality of , but allow me to rapidly go to a certain line using the numeric keypad. Unfortunately, the mapping never fires! Some experimentation shows that Vim get

Re: mapping to cycle colorschemes?

2009-07-01 Thread Joe78
[07/01/09] At 12:40PM PDT, Keith Kaple wrote: > > Anyone have a script that can be mapped to perhaps a function key that will > cycle all available colorschemes? http://vim.wikia.com/wiki/Switch_color_schemes --~--~-~--~~~---~--~~ You received this message from

Re: mapping to cycle colorschemes?

2009-07-01 Thread Christian Brabandt
Hi Keith! On Mi, 01 Jul 2009, Keith Kaple wrote: > Anyone have a script that can be mapped to perhaps a function key > that will cycle all available colorschemes? I have this for switching to a random colorscheme: nmap :let colors = split(globpath(&rtp, "**/colors/*.vim"),"\n") \:exe 'so ' .

Re: mapping to cycle colorschemes?

2009-07-01 Thread Dennis Benzinger
Hi Keith! Am 01.07.2009 21:40, Keith Kaple schrieb: > Anyone have a script that can be mapped to perhaps a function key that will > cycle all available colorschemes? > [...] There has been a thread about a similar question some weeks ago: http://groups.google.com/group/vim_use/browse_frm/threa

Re: mapping to cycle colorschemes?

2009-07-01 Thread _sc_
On Wednesday 01 July 2009 2:40 pm, Keith Kaple wrote: > > Anyone have a script that can be mapped to perhaps a function key > that will cycle all available colorschemes? you'll get a lot of responses to that :) my favorite is one that started with a thread on this very list: http://home.sw

mapping to cycle colorschemes?

2009-07-01 Thread Keith Kaple
Anyone have a script that can be mapped to perhaps a function key that will cycle all available colorschemes? thanks, Keith --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php

Re: combo mapping

2009-06-23 Thread Arun
tree ) > then i select the file and off i go. > > shortly, i need a mapping that till take Control-t and open a new tab, > opent the project drawer, equal it's size out > nmap :tabnew= /Arun --~--~-~--~~~---~--~~ You received this message

combo mapping

2009-06-23 Thread shawn
to fill my new tab. i have the project plugin mapped like nmap ToggleProject i then use the C-w = to make the two buffers the same size ( helps me navigate the project tree ) then i select the file and off i go. shortly, i need a mapping that till take Control-t and open a new tab, opent the

Re: mapping functions.

2009-06-20 Thread Prasad Joshi
Hey, thanks a lot for instant help. I got what I was missing. Thanks and Regards, Prasad On Sun, Jun 21, 2009 at 12:07 PM, Teemu Likonen wrote: > > On 2009-06-21 11:51 (+0530), Prasad Joshi wrote: > > > So I tried mapping F2 to this function call as > > > > *:map

Re: mapping functions.

2009-06-20 Thread Teemu Likonen
On 2009-06-21 11:51 (+0530), Prasad Joshi wrote: > So I tried mapping F2 to this function call as > > *:map Test()* > > But, it is not working. I guess the function is not getting called. Try this: :map :call Test() --~--~-~--~~~---~--~~ Yo

mapping functions.

2009-06-20 Thread Prasad Joshi
. x . " Y=" . y endfunction After sourcing the file in the vim session, I could call the function using call. *:call Test()* It showed the output as *X=90 Y=90* as expected. But, now I want to call this same function every time I press F2 So I tried mapping F2 to this function call as

Re: Mapping question

2009-06-16 Thread Tony Mechelynck
On 12/06/09 17:37, Charles Campbell wrote: > > Ben Fritz wrote: >> >> On Jun 12, 1:45 am, "jottka...@googlemail.com" >> wrote: >> >>> Christian used :command in his examples, not :cabbr, so I think this >>> will not be a problem. >>> >>> >> >> Yes, in the simple case of doing the right thing for

Re: Mapping question

2009-06-16 Thread Tony Mechelynck
On 11/06/09 20:49, meino.cra...@gmx.de wrote: > > > Hi, > > I am often using :wa to save all source files which > are open to save to disk. > On a keyboard with german layout ":" is a key, which > is reachable via pressing shift-. > Unfortunately it seems, that my right hand is slower > than my le

Re: Mapping question

2009-06-12 Thread meino . cramer
Huhuhahahaha ! GREAT! We only have to think about the command code for that ;))) Charles Campbell [09-06-12 17:39]: > > Ben Fritz wrote: > > > > On Jun 12, 1:45 am, "jottka...@googlemail.com" > > wrote: > > > >> Christian used :command in his examples, not :cabbr, so I think this > >>

Re: Mapping question

2009-06-12 Thread Charles Campbell
Ben Fritz wrote: > > On Jun 12, 1:45 am, "jottka...@googlemail.com" > wrote: > >> Christian used :command in his examples, not :cabbr, so I think this >> will not be a problem. >> >> > > Yes, in the simple case of doing the right thing for an > accidental :Wq, :W, or :E, a command actuall

Re: Mapping question

2009-06-12 Thread Ben Fritz
On Jun 12, 1:45 am, "jottka...@googlemail.com" wrote: > > Christian used :command in his examples, not :cabbr, so I think this > will not be a problem. > Yes, in the simple case of doing the right thing for an accidental :Wq, :W, or :E, a command actually has advantages over an abbreviation. B

Re: Mapping question

2009-06-12 Thread Ben Fritz
On Jun 12, 9:46 am, meino.cra...@gmx.de wrote: > I often use "vim -" zu edit things, other programs put to stdout. > When I need to cut'n'paste thing from vim to -- say -- firefox > (I am using Linux), I mark the region with the mouse, paste it to > firefox, go back to vim, press ":" then "q" an

Re: Mapping question

2009-06-12 Thread meino . cramer
Christian Brabandt [09-06-12 04:03]: > > Hi meino.cramer! > > On Do, 11 Jun 2009, meino.cra...@gmx.de wrote: > > > I am often using :wa to save all source files which > > are open to save to disk. > > On a keyboard with german layout ":" is a key, which > > is reachable via pressing shift-. >

Re: Mapping question

2009-06-11 Thread jottka...@googlemail.com
Hi, Ben Fritz wrote: > > > > On Jun 11, 3:03 pm, Christian Brabandt wrote: >> >> What Do you mean with the "first command on the commandline"? > > > > Read the tip for details, but as a quick example, I have an > > abbreviation set up using the method in the tip to replace wq1 with > > wq!. > >

Re: Mapping question

2009-06-11 Thread meino . cramer
Ben Fritz [09-06-12 04:03]: > > > > On Jun 11, 3:03 pm, Christian Brabandt wrote: > > > > What Do you mean with the "first command on the commandline"? > > > > Read the tip for details, but as a quick example, I have an > abbreviation set up using the method in the tip to replace wq1 with >

Re: Mapping question

2009-06-11 Thread Ben Fritz
On Jun 11, 3:03 pm, Christian Brabandt wrote: > > What Do you mean with the "first command on the commandline"? > Read the tip for details, but as a quick example, I have an abbreviation set up using the method in the tip to replace wq1 with wq!. So, this will write the buffer and quit, disca

Re: Mapping question

2009-06-11 Thread Christian Brabandt
Hi Ben! On Do, 11 Jun 2009, Ben Fritz wrote: > so that my corrections only occur if this is the first command on > the command line. What Do you mean with the "first command on the commandline"? regards, Christian -- :wq! --~--~-~--~~~---~--~~ You received th

Re: Mapping question

2009-06-11 Thread Ben Fritz
On Jun 11, 2:27 pm, Christian Brabandt wrote: > > " You are too fast and keep pressing `shift' if you type :w, try > following > command! -bang -bar -nargs=? -complete=file -range=% W   > ,w > command! -bang Wq wq > command! -bang Q q > I would actually go a different route, using cabbrev as

Re: Mapping question

2009-06-11 Thread Christian Brabandt
Hi meino.cramer! On Do, 11 Jun 2009, meino.cra...@gmx.de wrote: > I am often using :wa to save all source files which > are open to save to disk. > On a keyboard with german layout ":" is a key, which > is reachable via pressing shift-. > Unfortunately it seems, that my right hand is slower > th

Mapping question

2009-06-11 Thread meino . cramer
Hi, I am often using :wa to save all source files which are open to save to disk. On a keyboard with german layout ":" is a key, which is reachable via pressing shift-. Unfortunately it seems, that my right hand is slower than my left one for an unknown reason so I type :Wa instead of :wa a seve

Re: conditional mapping of keystrokes

2009-06-03 Thread David Fishburn
On Wed, Jun 3, 2009 at 2:29 AM, Gary Johnson wrote: > > On 2009-06-02, Edward Peschko wrote: ... >> Good point, that works a lot better.. Still, I'd need a way to make >> conditional mappings (ie: j nmaps to :copenj, but only in quickfix >> windows. > > The file type associated with quickfix wind

Re: conditional mapping of keystrokes

2009-06-02 Thread Gary Johnson
On 2009-06-02, Edward Peschko wrote: > > I'm not sure I understand what you're trying to do, but why are you > > using w to get back to the quickfix window, instead of using > > :copen ? Seems like the former will fail in multiwindow layouts, and > > the latter won't. > > Matt, > > Good point,

Re: conditional mapping of keystrokes

2009-06-02 Thread Edward Peschko
> I'm not sure I understand what you're trying to do, but why are you > using w to get back to the quickfix window, instead of using > :copen ? Seems like the former will fail in multiwindow layouts, and > the latter won't. Matt, Good point, that works a lot better.. Still, I'd need a way to ma

Re: conditional mapping of keystrokes

2009-06-02 Thread Matt Wozniski
On Wed, Jun 3, 2009 at 12:01 AM, Edward Peschko wrote: > > All, > > Is it possible to make a keyboard mapping in a conditional context? > > I was thinking about it a bit more, and I would like to make h,j,k,l > all work differently in a quick-fix context, to support the grepp

conditional mapping of keystrokes

2009-06-02 Thread Edward Peschko
All, Is it possible to make a keyboard mapping in a conditional context? I was thinking about it a bit more, and I would like to make h,j,k,l all work differently in a quick-fix context, to support the grepping tool that I was talking about (ie: j is bound to 'j-return CTRL-W W CTRL-W W&#x

Re: Counts and a recursive mapping that shouldn't be

2009-05-08 Thread Erik Wognsen
On Fri, May 8, 2009 at 01:28, Yegappan Lakshmanan wrote: > > Hi, > > On Thu, May 7, 2009 at 2:09 PM, Erik Wognsen wrote: >> >> Hi people! >> >> I'm programming some x86 assembly, where all my stack offsets are 4 >> bytes. Once in a while, I'll want to change e.g. >> >> movl 4(%ebp), %eax >> into

Re: Counts and a recursive mapping that shouldn't be

2009-05-07 Thread Yegappan Lakshmanan
Hi, On Thu, May 7, 2009 at 2:09 PM, Erik Wognsen wrote: > > Hi people! > > I'm programming some x86 assembly, where all my stack offsets are 4 > bytes. Once in a while, I'll want to change e.g. > > movl 4(%ebp), %eax > into > movl 8(%ebp), %eax > > Now CTRL-A four times or 4CTRL-A will do that.

Counts and a recursive mapping that shouldn't be

2009-05-07 Thread Erik Wognsen
Hi people! I'm programming some x86 assembly, where all my stack offsets are 4 bytes. Once in a while, I'll want to change e.g. movl 4(%ebp), %eax into movl 8(%ebp), %eax Now CTRL-A four times or 4CTRL-A will do that. But being bent on optimization I wanted CTRL-A and CTRL-X to move in steps of

RE: vim | ctrl-s mapping does not work

2009-04-10 Thread John Beckett
Prasad Chandrasekaran wrote: > I am using vim (ubuntu/gnome) for some time. I tried to make > a mapping for using CTRL-S to save a file > > nmap :w > imap :wa Google something like: xon xoff linux Ctrl-s and Ctrl-q have an historical usage still seen in many terminals/consoles

Re: vim | ctrl-s mapping does not work

2009-04-10 Thread Tim Chase
> I am using vim (ubuntu/gnome) for some time. I tried to make a mapping for > using CTRL-S to save a file > > nmap :w > imap :wa > > But this mapping does not seem to work. Control+S and Control+Q are flow-control characters. You'll have to disable them in

vim | ctrl-s mapping does not work

2009-04-10 Thread Prasad Chandrasekaran
Hi, I am using vim (ubuntu/gnome) for some time. I tried to make a mapping for using CTRL-S to save a file nmap :w imap :wa But this mapping does not seem to work. I have searched for answers but they usually involve windows related stuff. None of the other mappngs(in .vimrc) seem to

Re: mapping raw keycodes

2009-04-10 Thread netimen
; > > > > >> On 9 апр, 12:22, Anton Sharonov  wrote: > >>> Can the following be the solution for you: disable system-wide > >>> xmodmap mapping _for_"en_US"_layout_only_, so that VIM sees real > >>> keypad keys and do what you want en

Re: mapping raw keycodes

2009-04-09 Thread Tony Mechelynck
On 09/04/09 11:02, Anton Sharonov wrote: > >> On 9 апр, 12:22, Anton Sharonov wrote: >>> Can the following be the solution for you: disable system-wide >>> xmodmap mapping _for_"en_US"_layout_only_, so that VIM sees real >>> keypad keys and

Re: mapping raw keycodes

2009-04-09 Thread Tony Mechelynck
On 09/04/09 10:39, netimen wrote: > > Thank you, but > 1. I'd like to use the standard keymap, compatible with all other > apps's. > 2. I added that remapping myself to have the symbol { be accessible > from russian layout in all apps -- this is conenient for wiki editing > for example. > 4.

Re: mapping raw keycodes

2009-04-09 Thread Anton Sharonov
> On 9 апр, 12:22, Anton Sharonov wrote: >> Can the following be the solution for you: disable system-wide >> xmodmap mapping _for_"en_US"_layout_only_, so that VIM sees real >> keypad keys and do what you want entirely in VIM; keep xmodmap >> mappings for

Re: mapping raw keycodes

2009-04-09 Thread netimen
for che sha shcha and soft > sign, which frees that many keys for something else -- respectively, a o > u ye, tse es kha and apostrophe -- when not immediately preceded by %). > And I used that because there was no obvious "phonetic" mapping for > those letters. > > Possib

Re: mapping raw keycodes

2009-04-09 Thread netimen
This idea sounds great. But how can I disable the system-wide mapping for en_US only? On 9 апр, 12:22, Anton Sharonov wrote: > 2009/4/9 netimen : > > > > > > > > > I have mapped the numpad 4 key to a { symbol using xmodmap for both > > russian and english l

Re: mapping raw keycodes

2009-04-09 Thread Anton Sharonov
a { in vim for the russian > keymap? As far as I know, this is impossible. Additionally to what Tony has suggested... (I see his post during I prepare mine :) ) Can the following be the solution for you: disable system-wide xmodmap mapping _for_"en_US"_layout_only_, so that VIM s

Re: mapping raw keycodes

2009-04-09 Thread Tony Mechelynck
immediately preceded by %). And I used that because there was no obvious "phonetic" mapping for those letters. Possibility 2: Get rid of that remapping in X (it's unhealthy to have numpad keys mapped to something else). Probably move it to some AltGr combo (let's say AltGr-( or

mapping raw keycodes

2009-04-09 Thread netimen
I have mapped the numpad 4 key to a { symbol using xmodmap for both russian and english layouts: keycode 83 = braceleft braceleft braceleft braceleft So everywhere except vim that key works like {. But in vim I use russian-jcukenwin keymap for russian language, where I have: { Х CYR

Re: key mapping oddity

2009-03-19 Thread Tony Mechelynck
On 15/03/09 21:49, Hal wrote: > > I have the following mappings in .vimrc (on OS X running macvim). > > map > map > map > map o2F map :tabeRecent > > All work as expected except for which gets mapped to the same > thing as. The mapping was put

key mapping oddity

2009-03-15 Thread Hal
I have the following mappings in .vimrc (on OS X running macvim). map map map map o 2F :tabeRecent All work as expected except for which gets mapped to the same thing as . The mapping was put in to see if the problem was specific to mapping , but it isn't since wor

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram Havarneanu
2008/12/9 Aram Havarneanu <[EMAIL PROTECTED]>: > I have configured completion with: > > set completeopt="longest,menuone" I must be retarded. Of course the correct setting was: set completeopt=longest,menuone Because of that first " I just set it to NULL so the behavior was expected. Thanks all!

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram Havarneanu
Aram Havarneanu <[EMAIL PROTECTED]>: >> François Beaubert <[EMAIL PROTECTED]> wrote: >>> have you try supertab plugin >>> it may solve your problem : do all your completion with the tab key ! >> > Doesn't work. When I press , the text in the bar at the bottom of > the screen toggles from -- INSERT

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram Havarneanu
Aram Havarneanu <[EMAIL PROTECTED]>: > François Beaubert <[EMAIL PROTECTED]> wrote: >> have you try supertab plugin >> it may solve your problem : do all your completion with the tab key ! > > I will try it, thanks. Doesn't work. When I press , the text in the bar at the bottom of the screen toggl

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram Havarneanu
François Beaubert <[EMAIL PROTECTED]> wrote: > have you try supertab plugin > it may solve your problem : do all your completion with the tab key ! I will try it, thanks. -- Aram Hăvărneanu --~--~-~--~~~---~--~~ You received this message from the "vim_use" maill

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram Havarneanu
Marc Weber <[EMAIL PROTECTED]> wrote: > Have you verified that there is more than one completion choice? > Maybe you've set vim completion options to take the first one if there > is no choice? Yes. shows lots of options. The mapping just completes the first option without

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread François Beaubert
>> Neither of this works as expected. More specifically, the >> omni-completion menu does not pop up. Instead, the shorter keybinding >> just inserts the first omni-complete option, so the completion >> actually takes place, but it is short circuited because the menu >> doesn't show up. > Have you

Re: Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Marc Weber
On Tue, Dec 09, 2008 at 06:41:40PM +0200, Aram HAVARNEANU wrote: > > Hello, Hi, this works for me.. inoremap > Neither of this works as expected. More specifically, the > omni-completion menu does not pop up. Instead, the shorter keybinding > just inserts the first omni-complete option, so t

Mapping to Something More Simple for omni-completion Doesn't Work

2008-12-09 Thread Aram HAVARNEANU
Hello, I have vim 7.2.22 on Mac OS X. I have configured (exuberant) ctags and they work great with omni-completion. I also use the OmniCppComplete plugin because mainly I work on C++ code. I want to map the default keybinding for omni-completion to something more easy to type. I have tried a lot

Re: Mapping keys

2008-11-06 Thread fritzophrenic
On Nov 5, 12:27 pm, "yosi izaq" <[EMAIL PROTECTED]> wrote: > I often make the mistake of typing w1 instead of w!. > Can you please suggest how to map w1 to w!? > > TIA > I use this: http://vim.wikia.com/wiki/Replace_a_builtin_command_using_cabbrev For much the same purpose you want it for: "

Re: Mapping keys

2008-11-06 Thread yosi izaq
Thank you for the answer. I have vim 7.2 and I have pasted your suggestion to my .vimrc then :so it. Then when I do :w1 VIM tries to save to file named 1. This is how I pasted: if version< 700 cnoreabbrev w1 w! else cnoreabbrevw1 ((getcmdtype() == ':' && getcmdpos() <= 2)?

Re: Mapping keys

2008-11-05 Thread Tony Mechelynck
On 05/11/08 19:27, yosi izaq wrote: > I often make the mistake of typing w1 instead of w!. > Can you please suggest how to map w1 to w!? > > TIA Depending what you want to achieve... :cmap 1 ! would of course work, but I think it would have undesirable side-effects. Otherwise, similarl

Re: Mapping keys

2008-11-05 Thread yosi izaq
I often make the mistake of typing w1 instead of w!. Can you please suggest how to map w1 to w!? TIA On Wed, Nov 5, 2008 at 7:19 PM, Tony Mechelynck <[EMAIL PROTECTED]> wrote: > > On 05/11/08 17:32, Christian Brabandt wrote: >> Hi Robert! >> >> On Wed, 05 Nov 2008, Robert wrote: >> >>> Frequentl

Re: Mapping keys

2008-11-05 Thread Tony Mechelynck
On 05/11/08 17:32, Christian Brabandt wrote: > Hi Robert! > > On Wed, 05 Nov 2008, Robert wrote: > >> Frequently when I go to save with :w I am flying to fast and I type >> :W which gives me an obvious error. >> >> How can I map :W to :w ??? >> >> I know there is :ZZ but I like the :w more. >> > :

Re: Mapping keys

2008-11-05 Thread Christian Brabandt
Hi Robert! On Wed, 05 Nov 2008, Robert wrote: > Frequently when I go to save with :w I am flying to fast and I type > :W which gives me an obvious error. > > How can I map :W to :w ??? > > I know there is :ZZ but I like the :w more. > :command! -bang W w regards, Christian -- hundred-and-o

Mapping keys

2008-11-05 Thread Robert
Frequently when I go to save with :w I am flying to fast and I type :W which gives me an obvious error. How can I map :W to :w ??? I know there is :ZZ but I like the :w more. Robert --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist.

<    3   4   5   6   7   8