open vim with syntax off
Linda
haniganwork at earthlink.net
Mon Jan 10 23:29:01 UTC 2011
> Linda wrote:
>> Is there a way to make vi open with syntax off by default
>> instead of with syntax on?
>
> If it's the default you want to set, you need to edit your .vimrc file,
> which will be in your home directory. If you do
>
> vim ~/.vimrc
>
> You should find yourself presented with an empty file. Write
>
> syntax off
>
> and save and exit. The next time (and each time thereafter) you open
> vim, syntax will be off. ~/.vimrc is your personal vim config file. In
> much the same style as ~/.bashrc, it's basically a list of vim commands
> to execute on startup. It's executed after /etc/vim/vimrc, which is the
> global one.
>
Thank you. This was exactly what I needed. I'll have to
look into vim to learn more about it's features instead of
just pretending it is vi.
Linda
More information about the ubuntu-users
mailing list