On 15 déc, 15:22, Tim Chase <[email protected]> wrote: > Christian Brabandt wrote: > > On Tue, December 15, 2009 2:57 pm, epanda wrote: > >> Sorry, the search command send cursor where occurence is found : here > >> => ;; > > >> cursor is here > >> | > >> V > >> ;foo1;foo;;bar => should return 3 > > > Ok, so your cursor in on the first of the 2 consecutive ';;', right? > > And from your example above, it should return 2? > > > I would actually use something like this: > > > :echo len(split(getline('.')[0:col('.')-1], ';')) > > I'd have done something like > > echo strlen(substitute(getline('.')[:col('.')-1], '[^;]', '', 'g')) > > but either works well. > > -tim- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents -
Yes you've seen my cursor pos Christian. Is it faster than my func ? -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
