Commit b2f72fbd authored by athomps's avatar athomps
Browse files

Added new instructions and new commands

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5352 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent f7a25fc7
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -16,11 +16,36 @@ in the syntax file (lammps.vim). You can easily add new ones.
         syntax on
(2)   Create directory ~/.vim and place mysyntax.vim and lammps.vim there

=Here is an alternate method for VIM Version 7.2 and later:
===========================================================

(0) Create/edit ~/.vimrc to contain:
         syntax on
(1) Create directories ~/.vim and ~/.vim/syntax
(2) Copy lammps.vim to ~/.vim/syntax/lammps.vim
(3) Create/edit ~/.vim/filetype.vim to contain

" vim syntax highlight customizations
if exists("did_load_filetypes")
 finish
endif

augroup filetypedetect
 au! BufRead,BufNewFile *.pdb          setfiletype none
 au! BufRead,BufNewFile *.psf          setfiletype none

 au! BufRead,BufNewFile *.cu           setfiletype c
 au! BufRead,BufNewFile in.*           setfiletype lammps
augroup END
(4) the end


Gerolf Ziegenhain <gerolf@ziegenhain.com> 2007

---------------

updated by Sam Bateman, 11/2010
updated by Aidan Thompson, 12/2010

Sam Bateman
Naval Research Laboratory
+11 −10
Original line number Diff line number Diff line
" Vim syntax file
" Language:	         Lammps Simulation Script File
" Maintainer:        Gerolf Ziegenhain <gerolf@ziegenhain.com>
" Latest Revision:   2007-11-19
" Updates:           Axel Kohlmeyer <akohlmey@gmail.com>, Sam Bateman <sam.bateman@nrlssc.navy.mil>
" Latest Revision:   2010-11-25

syn clear

syn keyword lammpsOutput      log write_restart dump undump thermo thermo_modify thermo_style print 
syn keyword lammpsRead        include read read_restart read_data
syn keyword lammpsLattice     boundary units atom_style lattice region create_box create_atoms 
syn keyword lammpsLattice     delete_atoms change_box dimension
syn keyword lammpsParticle    pair_coeff pair_style mass velocity angle_coeff angle_style atom_modify
syn keyword lammpsParticle    atom_style bond_coeff bond_style delete_bonds
syn keyword lammpsSetup       min_style fix_modify run_style timestep neighbor fix unfix
syn keyword lammpsSetup       communicate compute compute_modify neigh_modify
syn keyword lammpsSetup       newton nthreads processors reset_timestep
syn keyword lammpsLattice     boundary units atom_style lattice region create_box create_atoms dielectric
syn keyword lammpsLattice     delete_atoms change_box dimension replicate
syn keyword lammpsParticle    pair_coeff pair_style pair_modify mass velocity angle_coeff angle_style
syn keyword lammpsParticle    atom_modify atom_style bond_coeff bond_style delete_bonds kspace_style
syn keyword lammpsParticle    kspace_modify dihedral_style dihedral_coeff improper_style improper_coeff
syn keyword lammpsSetup       min_style fix_modify run_style timestep neighbor neigh_modify fix unfix
syn keyword lammpsSetup       communicate newton nthreads processors reset_timestep
syn keyword lammpsRun         minimize run  
syn keyword lammpsDefine      variable
syn keyword lammpsDefine      variable group

syn keyword lammpsRepeat      jump next loop