1 Jan 2007 12:45
Re: automatic code completion in vim
Mikolaj Machowski <mikmach <at> wp.pl>
2007-01-01 11:45:25 GMT
2007-01-01 11:45:25 GMT
On pon sty 1 2007, Mikolaj Machowski wrote:
> > Note: much faster, noticeable on big files, would be reading of
> > tags file into buffer and just g//d proper lines and add tags at the
> > end
>
> how to read tags into the buffer and what does "g//d proper lines" mean?
:new somename
:g/\t{filename}\t/d
> > - but I hate buffer management in scripts, YMMV.
> >
> > Sounds complicated but Vim should be able to perform all actions with
> > reasonable speed. The most expensive is f) .
> >
> > You should carefully consider when this function should be performed.
> > I would vote for ; and BufLeave and BufWritePre autocommands.
> >
> > m.
>
> I write the function like this, but there are some problems.
> This is my first time to write vim script, so please give me a hand.
>
> inoremap <expr> ; UpdateTags()
> func UpdateTags()
> "get the file name of the current buffer
> let currentfilename=bufname("%")
Safer::
(Continue reading)
RSS Feed