@ -22,24 +22,22 @@ in the syntax file (lammps.vim). You can easily add new ones.
|
|||||||
|
|
||||||
(0) Create/edit ~/.vimrc to contain:
|
(0) Create/edit ~/.vimrc to contain:
|
||||||
syntax on
|
syntax on
|
||||||
(1) Create directories ~/.vim and ~/.vim/syntax
|
(1) Create directories ~/.vim/syntax and ~/.vim/ftdetect
|
||||||
(2) Copy lammps.vim to ~/.vim/syntax/lammps.vim
|
(2) Copy lammps.vim to ~/.vim/syntax/lammps.vim
|
||||||
(3) Create/edit ~/.vim/filetype.vim to contain
|
(3) Copy filetype.vim as ~/.vim/ftdetect/lammps.vim
|
||||||
|
|
||||||
" vim syntax highlight customizations
|
|
||||||
if exists("did_load_filetypes")
|
|
||||||
finish
|
|
||||||
endif
|
|
||||||
|
|
||||||
augroup filetypedetect
|
|
||||||
au! BufRead,BufNewFile in.* setfiletype lammps
|
|
||||||
au! BufRead,BufNewFile *.lmp setfiletype lammps
|
|
||||||
augroup END
|
|
||||||
(4) the end
|
|
||||||
|
|
||||||
|
|
||||||
Gerolf Ziegenhain <gerolf@ziegenhain.com> 2007
|
Gerolf Ziegenhain <gerolf@ziegenhain.com> 2007
|
||||||
|
|
||||||
|
Distribution Packaging guidelines:
|
||||||
|
==================================
|
||||||
|
|
||||||
|
(0) Copy lammps.vim to ${VIMFILES}/syntax/lammps.vim
|
||||||
|
(1) Copy filetype.vim as ${VIMFILES}/ftdetect/lammps.vim
|
||||||
|
|
||||||
|
${VIMFILES} is typically /usr/share/vim/vimfiles
|
||||||
|
Consult your packaging guidlines for exact location.
|
||||||
|
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
updated by Sam Bateman, 11/2010
|
updated by Sam Bateman, 11/2010
|
||||||
|
|||||||
4
tools/vim/filetype.vim
Normal file
4
tools/vim/filetype.vim
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
augroup filetypedetect
|
||||||
|
au! BufRead,BufNewFile in.* setfiletype lammps
|
||||||
|
au! BufRead,BufNewFile *.lmp setfiletype lammps
|
||||||
|
augroup END
|
||||||
Reference in New Issue
Block a user