Re: How to replace edit command calling netrw by own function call

2018-06-13 Thread Ken Takata
Hi,

2018/6/13 Wed 19:54:54 UTC+9 Ni Va wrote:
> Hi,
> 
> 
> When you type :e it opens netrw explore command.
> 
> Is it possible to replace it by my own function call.

I think that the best way to know that is reading the code of netrw itself
or some other similar plugins (e.g. nerdtree).

https://github.com/scrooloose/nerdtree/blob/cb9f4db6ffc98f055954801cfced9399a1da829a/plugin/NERD_tree.vim#L170-L175

Regards,
Ken Takata

-- 
-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How can I set cursorline only during a search?

2018-06-13 Thread Bok Woon Chua
On Thursday, 14 June 2018 03:45:56 UTC+8, Andy Wokula  wrote:
> Am 13.06.2018 um 21:04 schrieb Bok Woon Chua:
> > I don't use the cursorline, but I would find it helpful to set it
> > during a whenever I press 'n' or 'N' to make the line of the current
> > search match pop out. However once I press anything other than n or
> > N, I'd like to turn the cursorline off. I can do something like
> > 'nnoremap n :setlocal cursorlinen', but I'm not sure how I can
> > conditionally turn it off provided the next key I press isn't an 'n'
> > or 'N'. Any ideas how I could do this?
> 
> cool demo for the incomplete mapping technique ...
> 
> nnoremap 

Re: How can I set cursorline only during a search?

2018-06-13 Thread 'Andy Wokula' via vim_use

Am 13.06.2018 um 21:04 schrieb Bok Woon Chua:

I don't use the cursorline, but I would find it helpful to set it
during a whenever I press 'n' or 'N' to make the line of the current
search match pop out. However once I press anything other than n or
N, I'd like to turn the cursorline off. I can do something like
'nnoremap n :setlocal cursorlinen', but I'm not sure how I can
conditionally turn it off provided the next key I press isn't an 'n'
or 'N'. Any ideas how I could do this?


cool demo for the incomplete mapping technique ...

nnoremap 

How can I set cursorline only during a search?

2018-06-13 Thread Bok Woon Chua
I don't use the cursorline, but I would find it helpful to set it during a 
whenever I press 'n' or 'N' to make the line of the current search match pop 
out. However once I press anything other than n or N, I'd like to turn the 
cursorline off. I can do something like 'nnoremap n :setlocal cursorlinen', 
but I'm not sure how I can conditionally turn it off provided the next key I 
press isn't an 'n' or 'N'. Any ideas how I could do this?

-- 
-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to replace edit command calling netrw by own function call

2018-06-13 Thread Ni Va
Hi,


When you type :e it opens netrw explore command.

Is it possible to replace it by my own function call.

Thank you
NiVa

-- 
-- 
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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.