Op dinsdag 26 april 2016 09:14:52 UTC+2 schreef rameo: > Op dinsdag 26 april 2016 08:14:33 UTC+2 schreef Christian Brabandt: > > Hi rameo! > > > > On Mo, 25 Apr 2016, rameo wrote: > > > > > > > > > > > > > It is much better to download sources from https://github.com/vim/vim. > > > > > > > > > > Found it: > > > https://github.com/vim/vim-win32-installer/releases > > > > > > However... > > > Tried: > > > gvim_7.4.1782_x86.exe > > > gvim_7.4.1786_x86.exe > > > > > > Both gives an error: > > > Error detected while processing vimrc_example.vim > > > line 114: > > > E919: Directory not found in 'packpath': "pack/*/opt/matchit" > > > > Yes, your $VIMRUNTIME does not include the pack directory. > > So, you need to install a new runtime. Check the zip file, it includes > > an updated runtime directory. > > > > > > Best, > > Christian > > -- > > Falsche Vorstellung, dass man ein Phänomen durch Kalkül oder > > durch Worte abtun und beseitigen könne. > > -- Goethe, Maximen und Reflektionen, Nr. 1004 > > I just commented out 'packadd matchit', now it works. > > Thank you very much Christian for these new features. > > Does matchstrpos not capture all matches on line? > > for n in range(0, len(LinewithMatches)-1) > let s = getline(LinewithMatches[n]) > let r= matchstrpos(s, @/) > echo s > echo r > endfor > > It only returns the first match on the 1st line. > Did I do something wrong?
Found it, I had to add a startposition and adapt the counter in a while loop. just an idea: add all matches found in entire string to a list [['match1',2,7]['match2',12,17]..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 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]. For more options, visit https://groups.google.com/d/optout.
