On Wed, 25 Mar 2009, Jonathan Lettvin wrote:
> Instructions used were found at
> http://www.jsoftware.com/jwiki/Guides/Syntax%20Coloring
> My linux is standard out-of-the-box, yet somehow,
> the ~/.vim directory you documented wasn't there.
> I finally found filetype.vim in
>    /usr/share/vim/vim71/filetype.vim
> and syntax files in
>    /usr/share/vim/vim71/syntax/
> These are already soft-linked through
>    /usr/share/vim/vim71/vimcurrent
> I have concluded that the following instruction (or equivalent) was missing:
>    ln -s /usr/share/vim/vimcurrent ~/.vim
> Under sudo, I added the following to filetype.vim (note the added ,*.ijx):
>    " J
>    au! BufNewFile,BufRead *.ijs,*.ijt,*.ijp,*.ijx  setf j
> Finally, the j.vim file was copied to its correct location:
>    sudo cp j.vim ~/.vim/syntax

I can see the problem now: you vim is a fresh installation and you
have never added any plugins so that there is no such directory.  The
solution is really simple and you didn't need to do any symlink or
sudo.  Just create the directory
   mkdir -p ~/.vim/syntax
and follow the instruction in jwiki. vim will source both system-wise
and user startup files in order.

It would be more troublesome for window, I guess the following should
help (untested)
1. inside vim/gvim, type :ver to get something like this

   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"    <==== this line
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
( window should use _vimrc instead of .vimrc )

you then search/create a folder  
   $HOME/vimfiles

Substitute the $HOME by what you get when type inside vim
  :echo $HOME

this directory $HOME/vimfiles will probably be the counterpart of ~/.vim

syntax coloring works with color schemes, you may choose other color
schemes from vim wikia http://vim.wikia.com/wiki/Vim_scripts

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩198 錢起  贈闕下裴舍人
    二月黃鸝飛上林  春城紫禁曉陰陰  長樂鐘聲花外盡  龍池柳色雨中深
    陽和不散窮途恨  霄漢長懷捧日心  獻賦十年猶未遇  羞將白髮對華簪
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to