Friday, February 24, 2012

Re: errorformat help need



2012/2/24 Caesarmv <caesarmv@gmail.com>


2012/2/24 Karol Samborski <edv.karol@gmail.com>
W dniu 24 lutego 2012 13:55 użytkownik Caesarmv <caesarmv@gmail.com> napisał:
> I tried to set path, but no result.
>
> Currently I'm using following mapping as workaround
>
> map ,, :exe 'e ~/code/**/'.expand("<cword>").'.c'<CR>
>
> But it doesn't jump to line and column I need.
> Probably it is easier to write function which will parse the line and open
> new tab with file and jump to line...
>

What about :cd or :lcd?

Karol
 
pwd returns correct path

/home/user/code_path

but files is in nested directories


I tried to set full path to warn.txt and jumps works well.

To sum up the issue: 

So quick fix list looks like

 *./file1.c:123:15 warning: warning text here*
 *./file2.c:111:11 warning: warning text here*
 *./file3.c:133:10 warning: warning text here*

there is no full path to files

The code is under  /home/user/code_path, 
where files are under /home/user/code_path/path_dir1/path_dir2/file1.c

The question is how to teach vim to search file under the code directory. Any ideas?

Thanks

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment