How to prevent asterisk key from advancing to next match when pressed

2016-12-14 Thread Slartibartfast
I frequently use the asterisk key (*) in conjunction with 'hlsearch' to highlight all occurrences of a word in a file. Normally when I do this I don't actually want to advance to the next match so I use 'nnoremap' to automatically wind back to the occurrence I was on when I pressed the key, as

Re: job_start the make command

2016-12-14 Thread Ni Va
Le mardi 13 décembre 2016 23:19:00 UTC+1, Bryan Richter a écrit : > On Tue, Dec 13, 2016 at 10:04:53AM -0800, Ni Va wrote: > > Hi, > > > > I am using a useful tool rigrep to search content through dirs and > > files. > > > > Then I have applied it to makeprg and set errorformat to display found >

Re: How to prevent asterisk key from advancing to next match when pressed

2016-12-14 Thread Tim Chase
On 2016-12-14 01:03, Slartibartfast wrote: > Anyone know a way to achieve setting the search word like this > without causing the screen to be scrolled? I'm sure it must be > possible but I'm having trouble working it out myself. Could do something like :nnoremap * :let @/='\'.expand('cword>')

Re: How to prevent asterisk key from advancing to next match when pressed

2016-12-14 Thread Slartibartfast
> :nnoremap * :let @/='\'.expand('cword>').'\>' Wow, what on earth does that mean? I tried it all the same and yes it does indeed work in gVim but I have no idea why. I also tried it in Notepad++ and Android Studio (with their respective Vim plugins) and unfortunately it doesn't for either o

Re: How to prevent asterisk key from advancing to next match when pressed

2016-12-14 Thread Tim Chase
On 2016-12-14 04:34, Slartibartfast wrote: > > :nnoremap * :let @/='\'.expand('cword>').'\>' > > Wow, what on earth does that mean? > > I tried it all the same and yes it does indeed work in gVim but I > have no idea why. It remaps the "*" key to run the ex command that follows. let @/=

Re: Fold-related bug and pointer to fix

2016-12-14 Thread Efraim Yawitz
On Wed, Dec 14, 2016 at 7:26 AM, Ben Fritz wrote: > On Tuesday, December 13, 2016 at 6:37:54 AM UTC-6, Efraim Yawitz wrote: > > Has any fix been made for this? I'm not subscribed to vim_dev, and > there are a lot of messages to look through in the archives. > > > > Thanks, > > > > Ephraim > > >

Re: Fold-related bug and pointer to fix

2016-12-14 Thread Christian Brabandt
Am 2016-12-14 15:35, schrieb Efraim Yawitz: On Wed, Dec 14, 2016 at 7:26 AM, Ben Fritz wrote: On Tuesday, December 13, 2016 at 6:37:54 AM UTC-6, Efraim Yawitz wrote: Has any fix been made for this? I'm not subscribed to vim_dev, and there are a lot of messages to look through in the archive

Count Nth previous items in file

2016-12-14 Thread Ni Va
Hi, I have got a buffer feed with those informations : FUNCTION FOOBAR BEGIN FOO FOO FOO FOO here is myCursor END 1. I would like to count the FOO Nth section in which my cursor is from FUNCTION. 2. As set nu command, would like to display virtually the number near the FOO. Thanks

Vim 25 birthday presentation

2016-12-14 Thread Bram Moolenaar
Hello Vim users! On November 2nd I did a presentation about Vim at Google Zurich. This is exactly 25 years since the first public version of Vim was built. The presentation gives an overview of Vim history and highlights the important choices that were made. With background information on my pe

Re: job_start the make command

2016-12-14 Thread Bram Moolenaar
Nivamail wrote: > Le mardi 13 décembre 2016 23:19:00 UTC+1, Bryan Richter a écrit : > > On Tue, Dec 13, 2016 at 10:04:53AM -0800, Ni Va wrote: > > > Hi, > > > > > > I am using a useful tool rigrep to search content through dirs and > > > files. > > > > > > Then I have applied it to makeprg and

How can I do date format convertion?

2016-12-14 Thread Carfield Yim
Hi, I have a list of date like 20150204 20150304 20150309 20150323 20150331 20150416 20150608 I would like to change it to 2015.02.04 2015.03.04 2015.03.09 2015.03.23 2015.03.31 2015.04.16 2015.06.08 How can I do that? -- -- You received this message from the "vim_use" maillist. Do not top

Re: How can I do date format convertion?

2016-12-14 Thread Tim Chase
On 2016-12-14 18:31, Carfield Yim wrote: > 20150204 > 20150304 > 20150309 > 20150323 > 20150331 > 20150416 > 20150608 > > I would like to change it to > > 2015.02.04 > 2015.03.04 > 2015.03.09 > 2015.03.23 > 2015.03.31 > 2015.04.16 > 2015.06.08 > > How can I do that? Capture them and reformat t

Re: Re: How to set the language of ui in gvim

2016-12-14 Thread Zhe Lee
On Wednesday, December 14, 2016 at 12:54:58 PM UTC+8, Tony Mechelynck wrote: > It is not always possible or desirable to disable +multi_lang. > > Which languages are recognized (and acceptable as argument to the > :language command and its subcommands) depends on your OS and on hos > it is install

Re: How to set the language of ui in gvim

2016-12-14 Thread Zhe Lee
On Tuesday, December 13, 2016 at 10:02:16 PM UTC+8, Zhe Lee wrote: > According to this link I already add the language setting code into my vimrc > file. > http://superuser.com/a/921446/609799 > > "Set The Language Of The Vim" > set langmenu=en_US > let $LANG = 'en_US' > source $VIMRUNTIME/delme

Re: How can I do date format convertion?

2016-12-14 Thread LCD 47
On 14 December 2016, Carfield Yim wrote: > Hi, I have a list of date like > > 20150204 > 20150304 > 20150309 > 20150323 > 20150331 > 20150416 > 20150608 > > I would like to change it to > > 2015.02.04 > 2015.03.04 > 2015.03.09 > 2015.03.23 > 2015.03.31 > 2015.04.16 > 2015.06.08 > > How can I

Re: job_start the make command

2016-12-14 Thread Justin M. Keyes
On Wed, Dec 14, 2016 at 9:42 PM, Bram Moolenaar wrote: > > Nivamail wrote: > >> Le mardi 13 décembre 2016 23:19:00 UTC+1, Bryan Richter a écrit : >> > On Tue, Dec 13, 2016 at 10:04:53AM -0800, Ni Va wrote: >> > > Hi, >> > > >> > > I am using a useful tool rigrep to search content through dirs and