Re: Parse file in background

2010-03-20 Thread Tony Mechelynck
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 ...)

Re: Parse file in background

2010-01-19 Thread KKde
- :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

Re: Parse file in background

2010-01-19 Thread Marc Weber
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

Re: Parse file in background

2010-01-18 Thread KKde
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

Re: Parse file in background

2010-01-18 Thread Marc Weber
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

Re: Parse file in background

2010-01-15 Thread KKde
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

Re: Parse file in background

2010-01-15 Thread Marc Weber
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