On 19/01/10 02:53, KKde wrote:
completion-config.file
word path.txt
word2 path2.txt
You want to have a look at
:h complete-functions
:h readfile (how to read a file and get a list of lines)
:h filter( (remove the lines not matching your word by regex)
:h matchstr (match the file path ...)
- :h garbagecollect()
Ok. I understood through garbagecollect we can cleanup unused lists or
dict. My question is will VIM will automatically recover the memory
once the complete function completes?
--
You received this message from the vim_use maillist.
For more information, visit
Excerpts from KKde's message of Tue Jan 19 11:42:40 +0100 2010:
- :h garbagecollect()
Ok. I understood through garbagecollect we can cleanup unused lists or
dict. My question is will VIM will automatically recover the memory
once the complete function completes?
I'm not going to give any
completion-config.file
word path.txt
word2 path2.txt
You want to have a look at
:h complete-functions
:h readfile (how to read a file and get a list of lines)
:h filter( (remove the lines not matching your word by regex)
:h matchstr (match the file path ...)
Thanks..with readfile
readfile func reads the entire file into memory. i like to know, will
the memory be released once the auto complete function completes?
- :h garbagecollect()
Marc Weber
--
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
Can someone please help?
thanks,
kkde
--
You received this message from the vim_use maillist.
For more information, visit http://www.vim.org/maillist.php
Excerpts from KKde's message of Fri Jan 15 04:06:42 +0100 2010:
Hi,
I am writing my own omni complete plugin specific to our project.
I have a file that contains list of words and it's associated
filennames. Every word is mapped to some other file in the main file.
Now whenever I find a