On lun., 2019-05-06 at 16:42 -0700, Gary Johnson wrote: > On 2019-05-06, Anand Hariharan wrote: > > > > On Mon, May 6, 2019 at 1:05 PM Gary Johnson wrote: > > > On 2019-05-06, Mathieu Roux wrote: > > > > > > > > Great! it seems to work...! > > > > Maybe you also know how i can search one whole lign with vim? > > > > Of course, i can use visual mode to select the lign, and then > > > > press *, > > > > but is there one faster solution? > > > > > > For that, I usually do > > > > > > 0v$* > > > > > > > The key sequence of 0v$ could be replaced with just V. > > You're right. I'm careful about the difference between Y and 0y$ > (the former includes the end-of-line while the latter does not) and > assumed that V and 0v$ differed the same way. They do not. > > > That said, I do not think an * over a visual selection would search > > for the > > entire visual selection. > > You're right again. I've been using my remappings of the *, # and > g* commands for so long that I forgot about all the differences > between them and the originals. > > Thanks for the corrections. Sorry for sowing confusion. > > Regards, > Gary > > --
Thanks to everybody for your help. I try to analyse your answers. But maybe if i tell you more about what i want to do, it can clarify the talk. 1) I have a big text file, which is composed of several articles. For each article, i want to give several keywords. #foo #bar #titi And when i am on one word of this type and i press * (or another touch), i want to move to the other articles owning this keyword. 2) First i wanted to do it with "real tags" (with a tag-file made by ctag, and with ctrl-]), but if i understand good, it does not work like this. But if i understand good, i can press ctrl-] on the title of an article voir titre-de-larticle , to go to the (UNIQUE) article which has this title, after making tag- file with: !/bin/bash /usr/bin/ctags \ -f ./tags \ --langdef=diese \ --language-force=diese \ --regex-diese="/^Article: ([a-zA-Z0-9_]+)/\1/" \ ./v No possibility to use "real tags" for 1). Is that correct? Best regards, Mathieu -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e50539c6f4df077c56d05d7727933406eebc35c3.camel%40gmail.com. For more options, visit https://groups.google.com/d/optout.
