1" Setting Vim to support the ELinks coding style 2" 3" To use this file, drop it in ~/.vim/ftplugin and set filetype plugin on. 4" Finally, make sure the path to the source directory contains the word 5" 'elinks', for example ~/src/elinks/. 6" 7" For .h files, link it as cpp_elinks.vim or define c_syntax_for_h in ~/.vimrc. 8" For .inc files, let g:filetype_inc = 'c' in ~/.vimrc. 9 10if expand('%:p:h') =~ '.*elinks.*' 11 setlocal shiftwidth=8 12 setlocal tabstop=8 13 setlocal softtabstop=0 14 setlocal noexpandtab 15endif 16