Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-19 Thread Karthick Gururaj
On Thu, May 19, 2011 at 1:56 PM, crabsody wrote: > So maybe I sould make a function that it will remove all lines of quick fix > file that contain the word "warning" and set it to be called in > QuickFixCmdPost. > Am I right? Maybe I can remove lines which contains the Makefile filename > too. Tha

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-19 Thread crabsody
at errors > (not warnings) in the quickfix window for the current file > > -- > 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 >

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-19 Thread Karthick Gururaj
On Wed, May 18, 2011 at 7:03 PM, crabsody wrote: > I tried to use :make (quickfix) but I have some problems. First of all how > can I have only the errors and avoid all the warnings? Then how can I set to > search only through my source files (*.c, *.cpp ) and not other scripts I > have in the dir

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-19 Thread crabsody
: http://vim.1045645.n5.nabble.com/commandline-vs-e-for-jump-to-line-FEAT-REQ-tp1142395p4406491.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replyi

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread Ben Schmidt
On 18/05/11 9:27 PM, Tim Chase wrote: On 05/18/2011 03:32 AM, Ben Schmidt wrote: Here's a simple solution for .vimrc that might work: command! -nargs=1 -bang Edit call FileAndLine("e","",) command! -nargs=1 -bang Split call FileAndLine("sp","",) function! FileAndLine(cmd,bang,arg) let file=matc

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread Tim Chase
On 05/18/2011 03:32 AM, Ben Schmidt wrote: Here's a simple solution for .vimrc that might work: command! -nargs=1 -bang Edit call FileAndLine("e","",) command! -nargs=1 -bang Split call FileAndLine("sp","",) function! FileAndLine(cmd,bang,arg) let file=matchstr(a:arg,'.\{-}\ze:') let l

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread crabsody
Ben's function works. I will checkout Karthick proposal too. Quickfix is not what I want because I want to use :e main.c:3 in other cases (except compile) too. But these you mentioned about autocomand seems pretty nice. I will check them out. Thanks to all of you On May 18, 11:34 am, Karthick Guru

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread Karthick Gururaj
On Wed, May 18, 2011 at 1:08 PM, crabsody wrote: > Hi Christian! > > No this is probably not what I want. But quickfix is a great feature I > didn't know about. Thank you very much. I will check it out when I > have the time to recompile vim with quickfix option. Well, quickfix seems to be exactly

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread Ben Schmidt
On 18/05/11 5:38 PM, crabsody wrote: Hi Christian! No this is probably not what I want. But quickfix is a great feature I didn't know about. Thank you very much. I will check it out when I have the time to recompile vim with quickfix option. Now hat I want is to be able instead of issuing :e +3

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-18 Thread crabsody
Hi Christian! No this is probably not what I want. But quickfix is a great feature I didn't know about. Thank you very much. I will check it out when I have the time to recompile vim with quickfix option. Now hat I want is to be able instead of issuing :e +3 main.c to issue :myfunction main.c:3 Is

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-17 Thread Christian Brabandt
Hi crabsody! On Di, 17 Mai 2011, crabsody wrote: > gcc issues warnings as this main.c:22 > So I got this in my mouse clipboard ready to paste it. So I need :e > main.c:22 to work or sth similar. For example :myfunction main.c:22. Can > someone help? I am not sure I understand your question. But

Re: 'commandline' vs ':e' for jump to line (FEAT. REQ)

2011-05-17 Thread crabsody
gcc issues warnings as this main.c:22 So I got this in my mouse clipboard ready to paste it. So I need :e main.c:22 to work or sth similar. For example :myfunction main.c:22. Can someone help? -- View this message in context: http://vim.1045645.n5.nabble.com/commandline-vs-e-for-jump-to-line