On Friday 02 July 2010 18:56:20 Gary Johnson wrote:

> The easiest way to set the file type after writing a file is
>  to simply edit it again,
> 
>     :e
> 
> If you really want to automate this, you could put an
>  autocommand like this in your ~/.vimrc:
> 
>     au BufWrite * if &ft == '' | filetype detect | fi

cool beans gary -- i've always hit the :e to get vim to
recognize my buffer -- this will save many keystrokes over the
course of the next decade or so

interestingly, it works with fi or endif

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