On Wednesday 19 May 2010 12:24:43 pm Christian Brehm wrote:

> I'd like to set the position of a gvim window upon opening a
>  certain file.
> 
> Sadly modeline seems to allow only to set parameters rather
>  than executing commands such as :winpos X Y.
> 
> Is there a way to set the winpos only for a certain file
>  automatically? I don't want to change my vimrc or modify any
>  other file than the one I'm going to edit.
> 

one thing i would recommend is to create a bash script (assuming 
*nix) that invokes a vim script -- with a script you will be 
limited only by your imagination as to the commands you are 
allowed to invoke

your script can open that certain file, and be named as the file 
itself -- by virtue of its being on your ~/bin path there will be 
no confusion

sc

-- 
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

Reply via email to