On 23-Oct-09 18:24, mobi phil wrote:
> Hello,
> 
> lot of programs (gdb, gcc) have as output information about file and
> line in form of
> 
> <filename>:<number>
> 
> I wonder if it would not be clever to make vim accept such a syntax
> for opening file.
> Eventually with a flag that would switch on/off this syntax.
> 
> 
> This would be interesting both when opening a file:
> 
> vim <filename>:<number>
> 
> or internally
> 
> :new/edit/split <filename>:<number>
> 
> I know that you can specify in both forms the line number separatelly
> with +<linenum>, but
> the proposed form is much more handy if you copy paste info from
> commands like the mentioned
> ones

This can be achieved via an autocmd; in fact, the file-line plugin provides 
this 
functionality:
     http://www.vim.org/scripts/script.php?script_id=2184

-- cheers, ingo
-- 
   -- Ingo Karkat -- /^-- /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
   --      http://vim.sourceforge.net/account/profile.php?user_id=9713    --


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui