Re: Using mapping

2024-09-04 Thread Enan Ajmain
nner. Using examples from perspectives of plugin authors _and_ plugin > > > users would be more helpful. It should specially inform the user that > > > any mapping using the "" keyword should be a recursive mapping. > > > > > > I think the doc should be upd

Re: Using mapping

2024-09-03 Thread M
> > users would be more helpful. It should specially inform the user that > > any mapping using the "" keyword should be a recursive mapping. > > > > I think the doc should be updated. Maybe we can follow this vi.SO > > answer: https://vi.stackexchange.com

Re: Using mapping

2024-09-03 Thread Christian Brabandt
On Di, 03 Sep 2024, Enan Ajmain wrote: > Hi everyone, > > ":h using-" explains the usecase of in quite an obscure > manner. Using examples from perspectives of plugin authors _and_ plugin > users would be more helpful. It should specially inform the user tha

Using mapping

2024-09-02 Thread Enan Ajmain
Hi everyone, ":h using-" explains the usecase of in quite an obscure manner. Using examples from perspectives of plugin authors _and_ plugin users would be more helpful. It should specially inform the user that any mapping using the "" keyword should be a recursive mappi

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

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

mapping :W to :w...

2021-02-23 Thread tuxic
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 [n]map W w and [n]map :W :w . Is there any way to map the

Re: v:count in mapping gets E492: Not an editor command: count

2020-07-21 Thread Graham Lawrence
: > > :h v:count includes the following example > > | > > map _x :echo "the count is ".v:count > > | > > > > which works as expected, but using > > | > > map :let @n=v:count1... > > | > > > did you really leave out the left-hand

Re: v:count in mapping gets E492: Not an editor command: count

2020-07-20 Thread 'Jürgen Krämer' via vim_use
Hi, Graham Lawrence schrieb am 19.07.2020 um 22:07: > :h v:count includes the following example > | > map _x :echo "the count is ".v:count > | > > which works as expected, but using > | > map :let @n=v:count1... > | > did you really leave out the left-hand-

v:count in mapping gets E492: Not an editor command: count

2020-07-20 Thread Graham Lawrence
:h v:count includes the following example map _x :echo "the count is " . v:count which works as expected, but using map :let @n=v:count1 ... produces E492 etc; and instead I must use map ;; :exe 'let @n=v:count1' ... for it to work. Now I have a number of mappings in alternate .vimrc files th

Re: nested expr in a mapping

2020-02-14 Thread Gary Johnson
On 2020-02-14, M Kelly wrote: > Hi, > > ok, thank you. > I always thought there had to be quotes around each block, as in () ? 'foo' : > 'bar' > So I was trying \' and \\' and \" and \\" and extra quotes for each additional > nested block to no success. > I will remove all quotes and see if I can

Re: nested expr in a mapping

2020-02-14 Thread M Kelly
Hi, ok, thank you. I always thought there had to be quotes around each block, as in () ? 'foo' : 'bar' So I was trying \' and \\' and \" and \\" and extra quotes for each additional nested block to no success. I will remove all quotes and see if I can get it to work. take care, -m -- -- You

Re: nested expr in a mapping

2020-02-13 Thread Gary Johnson
On 2020-02-13, M Kelly wrote: > 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

Re: nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, I suppose I can call a function to do this :-) -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 this message because you are su

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

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

vim mode and mapping

2019-11-29 Thread Meng Zhu
hi, I use colemak keyboard layout, and put many mappings in my vimrc to simulate vim finger movements on the original querty layout. it mostly works fine but there are some mappings don't work up to expectation and I am trying to understand why. for example, if I have these mappings noremap u i

Re: Mapping erases search count message

2019-11-23 Thread Gary Johnson
": > > > > > > > > > > > > > > /command > > > > > > > > > > > > > > After hitting Enter, the cursor will be at the start of "commands" > > > > > > > on line 7 and the command lin

Re: Mapping erases search count message

2019-11-23 Thread Bram Moolenaar
line 7 and the command line will contain this: > > > > > > > > > > > > /command [1/>99] > > > > > > > > > > > > After hitting 'n', the cursor advances to line 13 and the comm

Re: Mapping erases search count message

2019-09-04 Thread Gary Johnson
On 2019-09-04, Bram Moolenaar wrote: > Christian wrote: > > > On Mi, 04 Sep 2019, Bram Moolenaar wrote: > > > > > Hmm, since nobody runs the tests manually that doesn't help much. > > > How about using a screendump? That makes these things a lot easier to > > > write. > > > > Okay, how about th

Re: Mapping erases search count message

2019-09-04 Thread Bram Moolenaar
Christian wrote: > On Mi, 04 Sep 2019, Bram Moolenaar wrote: > > > Hmm, since nobody runs the tests manually that doesn't help much. > > How about using a screendump? That makes these things a lot easier to > > write. > > Okay, how about the attached patch then? That fails with v8.1.1965 and

Re: Mapping erases search count message

2019-09-04 Thread Christian Brabandt
On Mi, 04 Sep 2019, Christian Brabandt wrote: > Okay, how about the attached patch then? That fails with v8.1.1965 and > should work with v8.1.1970 Small update: [...] > + call delete('XscriptMatchCommon') that should of course be call delete('Xsearchstat') Best, Christian -- Ein schöne

Re: Mapping erases search count message

2019-09-04 Thread Christian Brabandt
On Mi, 04 Sep 2019, Bram Moolenaar wrote: > Hmm, since nobody runs the tests manually that doesn't help much. > How about using a screendump? That makes these things a lot easier to > write. Okay, how about the attached patch then? That fails with v8.1.1965 and should work with v8.1.1970 Best

Re: Mapping erases search count message

2019-09-04 Thread Bram Moolenaar
Christian wrote: > > > > > On Fr, 30 Aug 2019, Bram Moolenaar wrote: > > > > > > > > > > > Thanks. Yes, I think we should do this. But the allocation should > > > > > > probably be done differently, it looks like with cmd_silent set it > > > > > > still > > > > > > computes the size of the c

Re: Mapping erases search count message

2019-09-03 Thread Christian Brabandt
On Di, 03 Sep 2019, Bram Moolenaar wrote: > > Christian wrote: > > > > > On Fr, 30 Aug 2019, Bram Moolenaar wrote: > > > > > > > > > Thanks. Yes, I think we should do this. But the allocation should > > > > > probably be done differently, it looks like with cmd_silent set it > > > > > stil

Re: Mapping erases search count message

2019-09-03 Thread Bram Moolenaar
Christian wrote: > > > On Fr, 30 Aug 2019, Bram Moolenaar wrote: > > > > > > > Thanks. Yes, I think we should do this. But the allocation should > > > > probably be done differently, it looks like with cmd_silent set it still > > > > computes the size of the command. This will require some m

Re: Mapping erases search count message

2019-09-03 Thread Christian Brabandt
36f3214..f23952915 100644 --- a/src/testdir/test_search_stat.vim +++ b/src/testdir/test_search_stat.vim @@ -160,7 +160,27 @@ func! Test_search_stat() let stat = '\[1/2\]' call assert_notmatch(pat .. stat, g:a) - " close the window + " normal, n comes from a silent mapping

Re: Mapping erases search count message

2019-09-02 Thread Bram Moolenaar
Christian wrote: > On Fr, 30 Aug 2019, Bram Moolenaar wrote: > > > Thanks. Yes, I think we should do this. But the allocation should > > probably be done differently, it looks like with cmd_silent set it still > > computes the size of the command. This will require some more "if" > > stateme

Re: Mapping erases search count message

2019-09-02 Thread Christian Brabandt
On Fr, 30 Aug 2019, Bram Moolenaar wrote: > Thanks. Yes, I think we should do this. But the allocation should > probably be done differently, it looks like with cmd_silent set it still > computes the size of the command. This will require some more "if" > statements, but makes the size computa

Re: Mapping erases search count message

2019-08-30 Thread Bram Moolenaar
Christian wrote: > On Do, 29 Aug 2019, Gary Johnson wrote: > > > In fact, removing all the mappings and just executing Ctrl-E or > > Ctrl-Y to scroll the window after a search erases the search count > > message. I think that's a bug. I can see no reason why scrolling > > should erase that me

Re: Mapping erases search count message

2019-08-30 Thread Bram Moolenaar
Christian wrote: > On Do, 29 Aug 2019, Bram Moolenaar wrote: > > > The argument means that the command won't be echoed. But it > > does not suppress the output of the command like the ":silent" modifier > > does. > > Yeah, but it felt natural to me, to only show the search index feature, >

Re: Mapping erases search count message

2019-08-30 Thread Christian Brabandt
On Do, 29 Aug 2019, 'Andy Wokula' via vim_use wrote: > > nmap n nzv > > nnoremap zv zv:call AdjCursor() > > :nmap n n(adj-cursor) > :nnoremap (adj-cursor) zv:call AdjCursor() > > > " first command can be written as: > :nmap

Re: Mapping erases search count message

2019-08-29 Thread Christian Brabandt
On Do, 29 Aug 2019, Gary Johnson wrote: > In fact, removing all the mappings and just executing Ctrl-E or > Ctrl-Y to scroll the window after a search erases the search count > message. I think that's a bug. I can see no reason why scrolling > should erase that message unless scrolling moves t

Re: Mapping erases search count message

2019-08-29 Thread Christian Brabandt
On Do, 29 Aug 2019, Bram Moolenaar wrote: > The argument means that the command won't be echoed. But it > does not suppress the output of the command like the ":silent" modifier > does. Yeah, but it felt natural to me, to only show the search index feature, if the command is echoed. I actuall

Re: Mapping erases search count message

2019-08-29 Thread Gary Johnson
t; After hitting Enter, the cursor will be at the start of "commands" > > > > > on line 7 and the command line will contain this: > > > > > > > > > > /command [1/>99] > > > > >

Re: Mapping erases search count message

2019-08-29 Thread 'Andy Wokula' via vim_use
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 that would prevent the mapping from disturbing the comma

Re: Mapping erases search count message

2019-08-29 Thread Bram Moolenaar
ng Enter, the cursor will be at the start of "commands" > > > > > on line 7 and the command line will contain this: > > > > > > > > > > /command [1/>99] > > > > > > > > &

Re: Mapping erases search count message

2019-08-29 Thread Christian Brabandt
command [1/>99] > > > > > > > > After hitting 'n', the cursor advances to line 13 and the command > > > > line stays the same, even showing "[1/>99]" when it should be > > > > sho

Re: Mapping erases search count message

2019-08-29 Thread Christian Brabandt
t; on line 7 and the command line will contain this: > > > > > > /command [1/>99] > > > > > > After hitting 'n', the cursor advances to line 13 and the command > > > line stays the same,

Re: Mapping erases search count message

2019-08-27 Thread Tony Mechelynck
can use the mapping that I intended > for you to use to demonstrate the problem, the one defined in > test.vim. > > Regards, > Gary Ah, sorry. Well, with ":noremap n n" the count is indeed not echoed, but with ":noremap n n" instead, it is. I suppose that the swit

Re: Mapping erases search count message

2019-08-27 Thread Gary Johnson
'n', the cursor advances to line 13 and the command > > line stays 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 th

Re: Mapping erases search count message

2019-08-27 Thread Gary Johnson
ing 'n', the cursor advances to line 13 and the command > > line stays 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

Re: Mapping erases search count message

2019-08-27 Thread Christian Brabandt
t; 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 that would prevent the mapping from > disturbing the command line, in wh

Re: Mapping erases search count message

2019-08-27 Thread Tony Mechelynck
> 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 that would prevent the mapping from > disturbing the command line, i

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: ALT key mapping in windows 10

2018-12-20 Thread Tony Mechelynck
at > you want to map. If you see something, then that's what you can map. If > not, vim isn't seeing the keys and has trouble mapping it. I see in > gvim for alt+left. > > HTH, and regards, John Little Yes, and in addition, sometimes (especially when running in a te

Re: ALT key mapping in windows 10

2018-12-20 Thread John Little
ot, vim isn't seeing the keys and has trouble mapping it. I see in gvim for alt+left. HTH, and regards, John Little -- -- 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, v

ALT key mapping in windows 10

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

Re: Why does this mapping move my cursor?

2018-10-10 Thread 'Jürgen Krämer' via vim_use
Hi, Chris Lott schrieb am 10.10.2018 um 21:05: > > I have a mapping in my .vimrc : > > nnoremap md :write:silent !open -a 'Marked.app' '%:p' > > When I invoke the map, my cursor in Vim moves to the beginning of the > line. This doesn't happen if I ru

Why does this mapping move my cursor?

2018-10-10 Thread Chris Lott
I have a mapping in my .vimrc : nnoremap md :write:silent !open -a 'Marked.app' '%:p' When I invoke the map, my cursor in Vim moves to the beginning of the line. This doesn't happen if I run the commands manually. Why does the cursor move and how can I stop

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

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

Accessing mapping from rhs

2018-08-30 Thread Lifepillar
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 ? Thanks, Life. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below th

Force dd own mapping take in on nomodifiable buffer

2018-06-28 Thread Ni Va
Hi, Assuming that the nomodifiable option is set on a buffer, I am trying to map this kind : nnoremap

Re: terminal mode normal mode mapping ?

2018-06-17 Thread Matteo Landi
Tried with :tnoremap? --Matteo On Sun, Jun 17, 2018 at 3:52 PM, M Kelly wrote: > > Is there a way to map keys only when in normal mode from a terminal ? > > Hi, > > I think something like this works - > > nnoremap(&buftype == 'terminal') ? 'i' : > '' > > thx, > -m > > -- > -- > You received

Re: terminal mode normal mode mapping ?

2018-06-17 Thread M Kelly
> Is there a way to map keys only when in normal mode from a terminal ? Hi, I think something like this works - nnoremap(&buftype == 'terminal') ? 'i' : '' thx, -m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replyin

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: conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Bok Woon Chua
noremap :call smooth_scroll#up(&scroll, 5, 2) > > noremap :call smooth_scroll#down(&scroll, 5, 2) > > endif > > > > but strangely it ignores the mapping if I load it like that. That > > means the exists('g:loaded_smoothscroll') check faile

Re: conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Luc Hermitte
t to their original behaviour if > the smooth scroll plugin isn't loaded. > > I've tried this: > > if exists('g:loaded_smoothscroll') > noremap :call smooth_scroll#up(&scroll, 5, 2) > noremap :call smooth_scroll#down(&scroll, 5,

conditional mapping of , depending on whether plugin exists

2018-05-30 Thread Bok Woon Chua
l plugin isn't loaded. I've tried this: if exists('g:loaded_smoothscroll') noremap :call smooth_scroll#up(&scroll, 5, 2) noremap :call smooth_scroll#down(&scroll, 5, 2) endif but strangely it ignores the mapping if I load it like that. That means the exis

Re: vim mapping calls xmodmap to swap : with ; in a keyboard with dead keys for accents

2018-05-22 Thread Renato Fabbri
#x27;) nn p: :cal system('xmodmap '.g:prv.paths.vim.'aux/PXmodmap2') " Notes: " - can I leave only the chars needed to swap in PXmodmap? e.g. only ; with :? " - i should make this through the system. as in: https://github.com/ttm/prv/blob/master/vimrc Em

vim mapping calls xmodmap to swap : with ; in a keyboard with dead keys for accents

2018-05-19 Thread Renato Fabbri
mapping; nn p; :cal system('xmodmap ~/.Xmodmap') ~/.Xmodmap created with -pke > aux/PXmodmap and then swapping colon with semicolon Ctrl+space swaps dead keys and not dead keys, set by OS (ubuntu 16.04). But when swapping dead and no dead keys (c-space), ; is ; again, : is :

Re: mapping ?

2018-05-14 Thread 'Andy Wokula' via vim_use
Am 13.05.2018 um 22:24 schrieb M Kelly: Yes, this is default behaviour on linux. You need to remap first, then map . thx so much nnoremap works great :-) -mark Same on Windows. You don't need . I'd rather map :nnoremap -- Andy -- -- You received this message from the "vim_use"

Re: mapping ?

2018-05-13 Thread M Kelly
> Yes, this is default behaviour on linux. You need to remap > first, then map . thx so much nnoremap works great :-) -mark -- -- 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://

Re: mapping ?

2018-05-13 Thread David Woodfall
On Sunday 13 May 2018 07:22, M Kelly put forth the proposition: Are you in windows OS? If it is, it will confilct with windows OS shortkey. Hi, no, sorry should have added that. I'm on Linux, Ubuntu 16.04 LTS +hwe Yes, this is default behaviour on linux. You need to remap first, then map .

Re: mapping ?

2018-05-13 Thread M Kelly
> Are you in windows OS? If it is, it will confilct with windows OS shortkey. Hi, no, sorry should have added that. I'm on Linux, Ubuntu 16.04 LTS +hwe -- -- 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 inf

Re: mapping ?

2018-05-13 Thread Sand Glass
On Sunday, May 13, 2018 at 9:38:03 PM UTC+8, M Kelly wrote: > Hi, > > Any idea why this doesn't work ? > > nnoremap :conf qa > > If I don't use the but some other non-ctrl char it works fine. > I keep getting a msg: > > Type :qa! and press to abandon all changes and exit Vim > > On this and

mapping ?

2018-05-13 Thread M Kelly
Hi, Any idea why this doesn't work ? nnoremap :conf qa If I don't use the but some other non-ctrl char it works fine. I keep getting a msg: Type :qa! and press to abandon all changes and exit Vim On this and also whenever I just type ctrl-c thx, mark -- -- You received this message from

Re: Mapping for one handed touch typing

2018-03-29 Thread BPJ
I'm also disabled having cerebral palsy with reduced mobility in both hands and arms. While most of my remappings probably won't help you one of the things I've done might: I've remapped most of the commands to {key} because it's hard for me to hold down two keys simultanously and because I find i

Re: Mapping for one handed touch typing

2018-03-23 Thread Dan Wierenga
e. First, I mapped F1 to F4 to hjkl respectively. This allowed me to somewhat emulate the normal Vim movement keys, and since I had no muscle memory built up, I needed to visually verify my finger position often. I found it convenient that the keys I mapped were laid out in relation to the keys I

Re: Mapping for one handed touch typing

2018-03-23 Thread Tony Mechelynck
On Fri, Mar 23, 2018 at 10:03 PM, Robert Bower wrote: > I am a occasional Vim user. It is my default rescue editor and I use it for > a few tasks but not many. I would like to use it for more because it is so > customizable. What holds me back is I am a one handed left handed touch > typist.

Re: Mapping for one handed touch typing

2018-03-23 Thread Tim Chase
On 2018-03-23 14:03, Robert Bower wrote: > I am a occasional Vim user. It is my default rescue editor and I > use it for a few tasks but not many. I would like to use it for > more because it is so customizable. What holds me back is I am a > one handed left handed touch typist. I only have use

Mapping for one handed touch typing

2018-03-23 Thread Robert Bower
I am a occasional Vim user. It is my default rescue editor and I use it for a few tasks but not many. I would like to use it for more because it is so customizable. What holds me back is I am a one handed left handed touch typist. I only have use of my left arm. The problem I have with Vi

Mapping mutliple keys

2018-03-22 Thread David Woodfall
Is there a simple way of mapping say ^[a - ^[z etc. to - etc? -- -- 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 messa

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

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

Questions about mapping information

2018-03-21 Thread Lifepillar
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 iMyCR Last set from ~/.vim/vimrc I think auto-pairs expands the current mapping and app

disable vim default tab mapping in command window

2018-01-07 Thread meng
I am trying to disable the default mapping for the tab key to @a in command window. according to :h command-line-window, adding the following two lines in .vimrc should do the job but it doesn't to my test. au CmdwinEnter [:>] iunmap au CmdwinEnter [:>] nunmap below is the min r

Re: mapping error.

2017-11-30 Thread sinbad
o a pane > > > in tmux. > > > > > > sudo tmux send-keys -t "1" C-z "test" > > > > > > I tried the following. wrote the above command in a test.sh file and made > > > a mapping as below. > > > > > > :nnoremap

Re: mapping error.

2017-11-29 Thread Florian Rehnisch
test" > > > > I tried the following. wrote the above command in a test.sh file and made a > > mapping as below. > > > > :nnoremap x 'silent :!./test.sh' > > > > I'm getting the following error. > > > > E20: Mark not set &g

Re: mapping error.

2017-11-29 Thread Florian Rehnisch
On Wed, Nov 29, 2017 at 11:06:19PM -0800, sinbad wrote: > I'm trying to map x in normal mode to do send a command to a pane in > tmux. > > sudo tmux send-keys -t "1" C-z "test" > > I tried the following. wrote the above command in a test.sh file and m

mapping error.

2017-11-29 Thread sinbad
Hi, I'm trying to map x in normal mode to do send a command to a pane in tmux. sudo tmux send-keys -t "1" C-z "test" I tried the following. wrote the above command in a test.sh file and made a mapping as below. :nnoremap x 'silent :!./test.sh' I'm

q: in mapping not invoking commandline window, only the command line

2017-09-19 Thread Graham Lawrence
Here is a mapping using q: that works, copies cursor WORD into @" and uses it to build a substitute command in command line window, ends by waiting for user to type a character the cursor should move back to. nmap W yiWq:i%s/\<^R "\>/^R "/g^[ F Note ^U ^R ^[ ^M are all t

Re: Evoking the option for :help in a mapping

2017-08-29 Thread porphyry5
;help " . expand("") > > > > and have been trying to develop similar do the option on the cursor > > word, something like > > > > nmap \\ yiw:h ^R"^[ > > > > but to no avail. Although the mapping does not terminate with a , vim > >

Re: Evoking the option for :help in a mapping

2017-08-28 Thread Tony Mechelynck
on the cursor > word, something like > > nmap \\ yiw:h ^R"^[ > > but to no avail. Although the mapping does not terminate with a , vim > treats the ^[ as if it were rather than and goes straight to the > specific help for the cursor-word. > > Is it possible t

Re: Evoking the option for :help in a mapping

2017-08-28 Thread 'Andy Wokula' via vim_use
ing like nmap \\ yiw:h ^R"^[ But ^[ means Escape, not Tab, and Escape, when used in a mapping, works like Enter (usually): :h c_Esc So you want (right?) which looks more like ^I, but anyway in a mapping you can't use , instead you need to use the key defined with :h '

Evoking the option for :help in a mapping

2017-08-28 Thread Graham Lawrence
I have the customary mappings for :help, nmap :exec "help " . expand("") nmap :exec "help " . expand("") and have been trying to develop similar do the option on the cursor word, something like nmap \\ yiw:h ^R"^[ but to no avail. A

Re: mapping list with : v:val and index of v:val

2017-06-11 Thread Ni Va
Le dimanche 11 juin 2017 20:09:19 UTC+2, Ni Va a écrit : > Le dimanche 11 juin 2017 18:35:59 UTC+2, Bram Moolenaar a écrit : > > Ni Va wrote: > > > > > Trying this > > > > > > > > > let file = readfile(expand("%:p"),'b') > > > let g:file=map(copy(file),'v:val.":".index(copy(file), v:val)') > > >

Re: mapping list with : v:val and index of v:val

2017-06-11 Thread Ni Va
Le dimanche 11 juin 2017 18:35:59 UTC+2, Bram Moolenaar a écrit : > Ni Va wrote: > > > Trying this > > > > > > let file = readfile(expand("%:p"),'b') > > let g:file=map(copy(file),'v:val.":".index(copy(file), v:val)') > > > > returns -1 for each v:val of list 'file' out of 0, 1 , 2 etc.. > > W

Re: mapping list with : v:val and index of v:val

2017-06-11 Thread Ni Va
Le dimanche 11 juin 2017 18:35:59 UTC+2, Bram Moolenaar a écrit : > Ni Va wrote: > > > Trying this > > > > > > let file = readfile(expand("%:p"),'b') > > let g:file=map(copy(file),'v:val.":".index(copy(file), v:val)') > > > > returns -1 for each v:val of list 'file' out of 0, 1 , 2 etc.. > > W

  1   2   3   4   5   6   7   8   >