weblog d’un abbe

20070816

My first vim hack: syntax file for Coco/R

Filed under: Hacking — abbe @ 2113

Few days back I hacked a vim syntax file for Coco/R. It is available under Vim license. Download it from http://wahjava.googlepages.com/coco.vim . To install it, see Installing a syntax file, and filetype page.

If you’re feeling lazy, looking for simple steps:

[abbe@chatteau ~] mkdir -p ~/.vim/syntax && wget -P ~/.vim/syntax http://wahjava.googlepages.com/coco.vim
[abbe@chatteau ~] cat >~/.vim/filetype.vim <<EOF
" my filetype file
if exists("did_load_filetypes")
    finish
endif
augroup filetypedetect
    au! BufRead,BufNewFile *.atg    setfiletype coco
augroup END
EOF

NOTE: Above steps, might alter your existing vim setup, so better read the vim manual :-P. Anyways, happy viming… :-)

Advertisements

3 Comments »

  1. very interesting, but I don’t agree with you
    Idetrorce

    Comment by Idetrorce — 20071215 @ 1735

  2. Now to balance that funny first comment (wtf?) thanks again for posting this.

    Comment by Seth — 20081211 @ 1631

  3. I hope it’ll be useful and thanks for your comment.

    Comment by आशीष शुक्ल — 20081211 @ 1945


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: