Re: reading contents from a file under directories specified by "path" variable

2011-06-03 Thread Jean-Rene David
* Aman Jain [2011.06.03 14:40]: > But is there a way for reading in the contents of files present under > directories, > specified by path variable e.g. > :r file_inside_dir As you noticed, :read doesn't consult 'path'. Here's a quick implementation: fun! Read(file) let full_path = findfile(

Re: reading contents from a file under directories specified by "path" variable

2011-06-03 Thread Aman Jain
I know that it works for ":find", as already mentioned in my question; I am mainly interested in a way by which I get the same behavior for ":r" --Thanks On Jun 3, 3:54 pm, Ryan Aviles wrote: > When I do :find > It opens the file even if its outside my current working directory. No need > for t

Re: reading contents from a file under directories specified by "path" variable

2011-06-03 Thread Ryan Aviles
When I do :find It opens the file even if its outside my current working directory. No need for the ":r" On Fri, Jun 3, 2011 at 2:38 PM, Aman Jain wrote: > Hi > > I know vim supports searching for files in those directories > which are specified by the path variable. > e.g. > :se path=/path/to/

reading contents from a file under directories specified by "path" variable

2011-06-03 Thread Aman Jain
Hi I know vim supports searching for files in those directories which are specified by the path variable. e.g. :se path=/path/to/dir1,/path/to/dir2 :find file_inside_dir1.txt (For this find command, auto complete works fine.) But is there a way for reading in the contents of files present under d