Tuesday, June 26, 2012

Re: How to set USERNAME in RHS of "set" command

On Wednesday, June 27, 2012 6:48:21 AM UTC+12, AndyHancock wrote:
> ...the Windows-based vim defaults to a filetype of dos...
> Anyway, I'm going to google around to find out how to set the default
> filetype in order to avoid this.

Before googling, vim's help is usually the first place to go, and then the vim FAQ http://vimhelp.appspot.com/vim_faq.txt.html and the Vim tips wiki http://vim.wikia.com/wiki/Vim_Tips_Wiki.

In particular, you should read

:help file-formats

if you haven't already.

> ... You tend to lose track of the fact that
> you're writing text files or source code using filetype=unix.

I have an expression in my status line option

%1*%{&ff=~'u'?'':&ff}%*

which shows me the file format if it's not my usual unix, in a different colour to the rest of the status line (which I always have on with :set ls=2).

Regards, John Little

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