User:Jack Andrews

From Kx Wiki
Jump to: navigation, search

simple vim syntax coloring

Simon Garland contributed a [coloring config] for vim. To get just the essentials of Simon's contrib, here's what I did:

~$ curl 'https://github.com/simongarland/vim/?op=dl&isdir=1' >sg.tgz

~$ tar tf sg.tgz 
vim.r1874
vim.r1874/vimrc
vim.r1874/vim
vim.r1874/vim/syntax
vim.r1874/vim/syntax/k.vim            # essential files
vim.r1874/vim/syntax/q.vim            #
vim.r1874/vim/indent
vim.r1874/vim/indent/k.vim
vim.r1874/vim/indent/q.vim
vim.r1874/vim/filetype.vim
vim.r1874/readme.txt

~$ mv vim.r* sg

~$ mkdir -p .vim/syntax                # convention for location of syntax files

~$ cp sg/vim/syntax/*.vim .vim/syntax

~$ cat sg/vim/filetype.vim >>.vim/filetype.vim


That will do it, but Simon's .vimrc uses 'rainbow' which colors matching parens.

Installing 'rainbow' coloring

~$ mkdir -p .vim/plugin
~$ wget 'https://github.com/luochen1990/rainbow/raw/master/plugin/rainbow.vim'
~$ mv rainbow.vim .vim/plugin/
~$ echo 'let g:rainbow_active = 1' >>.vimrc

contact

email:`effbiae_at_gmail.com`jack_at_ivorykite.com
country:`australia
city:`melbourne
tz:1000 1100 summer
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox