[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Vim vs Elvis -- was "Mutt's Editor"



On Sun, 15 Oct 2000, will trillich wrote:

> On Sat, Oct 14, 2000 at 10:00:15AM -0700, Pann McCuaig wrote:
> > If you want vim to be really useful you need the vim-rt package as well.
> > I suspect that tips the balance.
> 
> okay, so i
> 	# apt-get install vim vim-rt
> and vi still points to elvis, so i
> 	# update-alternatives --install `which vi` vi /usr/bin/vim 150
> to use vim as default vi, and immediately
> run into syntax difficulties in my ~/.exrc which i fix...
 
If VIM finds a .vimrc file in $HOME, it comes up in nocompatible mode.
Otherwise, it comes up in VI compatible mode.

> i get no syntax hilighting at all (the 'file ends here, so
> we'll show a tilde from here own down' is blue but that's all
> that's colored).
 
Try this:

$ vim .vimrc

Place 'syntax on' in your .vimrc. In command mode, enter ':syntax on' and
start to experience syntax highlighting.

While still open in VIM, enter ':help' in command mode. This is your VIM
help resources. In command mode, enter ':help syntax' or ':help color'.
Learn here more about all the different kinds of color highlighting.

> i see there are kahuna mongo syntax files in what appears to
> be a settings dir at /usr/share/vim/vim56/syntax/* which would
> apparently be selected by /usr/share/vim/vim56/filetype.vim
> if it were called from the appropriate place at the appropriate
> time...
> 
> how is that supposed to be set up? did i overlook something?

See above.

For the VIM user community, post on the 'comp.editors' newsgroup.

Dwight
--
Dwight Johnson
dwj@aaronsrod.com



Reply to: