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
> > 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
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
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
>>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
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
> 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.
"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
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
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
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
>
>
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 ;
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
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
:
> > :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
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-
: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
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
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
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
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
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
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
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
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
":
> > > > > > >
> > > > > > > /command
> > > > > > >
> > > > > > > After hitting Enter, the cursor will be at the start of "commands"
> > > > > > > on line 7 and the command lin
line 7 and the command line will contain this:
> > > > > >
> > > > > > /command [1/>99]
> > > > > >
> > > > > > After hitting 'n', the cursor advances to line 13 and the comm
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
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
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
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
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
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
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
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
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
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
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
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,
>
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
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
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
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]
> > > > >
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
ng Enter, the cursor will be at the start of "commands"
> > > > > on line 7 and the command line will contain this:
> > > > >
> > > > > /command [1/>99]
> > > > >
> > > &
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
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,
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
'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
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
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
> 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
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
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
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
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
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
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
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
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
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,
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
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
Hi,
Assuming that the nomodifiable option is set on a buffer, I am trying to map
this kind :
nnoremap
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
> 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
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
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
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,
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
#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
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 :
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"
> 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://
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 .
> 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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
;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
> >
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
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 '
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
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)')
> > >
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
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 - 100 of 786 matches
Mail list logo