Friday, July 2, 2010

Re: File types for new files

On 2010-07-02, Gary Johnson wrote:

> au BufWrite * if &ft == '' | filetype detect | fi
^^
Oops, wrong language. Make that "endif".

Another way to solve the original problem would be to specify the
file name when you execute :tabnew, e.g.,

:tabnew foo.txt

Regards,
Gary

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