diff -Naur lammps-6Jan08/doc/Section_tools.html lammps-8Jan08/doc/Section_tools.html
--- lammps-6Jan08/doc/Section_tools.html 2007-10-12 10:27:18.000000000 -0600
+++ lammps-8Jan08/doc/Section_tools.html 2008-01-04 08:24:56.000000000 -0700
@@ -58,6 +58,7 @@
pymol_asphere
restart2data
thermo_extract
+vim
xmovie
@@ -294,6 +295,17 @@
+vim tool
+
+The files in the tools/vim directory are add-ons to the VIM editor
+that allow easier editing of LAMMPS input scripts. See the README.txt
+file for details.
+
+These files were provided by Gerolf Ziegenhain (gerolf at
+ziegenhain.com)
+
+
+
xmovie tool
The xmovie tool is an X-based visualization package that can read
diff -Naur lammps-6Jan08/doc/Section_tools.txt lammps-8Jan08/doc/Section_tools.txt
--- lammps-6Jan08/doc/Section_tools.txt 2007-10-12 10:27:18.000000000 -0600
+++ lammps-8Jan08/doc/Section_tools.txt 2008-01-04 08:24:56.000000000 -0700
@@ -54,6 +54,7 @@
"pymol_asphere"_#pymol
"restart2data"_#restart
"thermo_extract"_#thermo_extract
+"vim"_#vim
"xmovie"_#xmovie :ul
:line
@@ -290,6 +291,17 @@
:line
+vim tool :h4,link(vim)
+
+The files in the tools/vim directory are add-ons to the VIM editor
+that allow easier editing of LAMMPS input scripts. See the README.txt
+file for details.
+
+These files were provided by Gerolf Ziegenhain (gerolf at
+ziegenhain.com)
+
+:line
+
xmovie tool :h4,link(xmovie)
The xmovie tool is an X-based visualization package that can read
diff -Naur lammps-6Jan08/doc/pair_coeff.html lammps-8Jan08/doc/pair_coeff.html
--- lammps-6Jan08/doc/pair_coeff.html 2007-10-22 15:43:55.000000000 -0600
+++ lammps-8Jan08/doc/pair_coeff.html 2008-01-03 18:50:23.000000000 -0700
@@ -94,6 +94,7 @@
pair_style buck/coul/long - Buckingham with long-range Coulomb
pair_style colloid - integrated colloidal potential
pair_style coul/cut - cutoff Coulombic potential
+pair_style coul/debye - cutoff Coulombic potential with Debye screeing
pair_style coul/long - long-range Coulombic potential
pair_style dipole/cut - point dipoles with cutoff
pair_style dpd - dissipative particle dynamics (DPD)
@@ -117,7 +118,7 @@
pair_style lj/cut - cutoff Lennard-Jones potential with no Coulomb
pair_style lj/cut/opt - optimized version of cutoff LJ
pair_style lj/cut/coul/cut - LJ with cutoff Coulomb
-pair_style lj/cut/coul/debye - LJ with Debye damping added to Coulomb
+pair_style lj/cut/coul/debye - LJ with Debye screeing added to Coulomb
pair_style lj/cut/coul/long - LJ with long-range Coulomb
pair_style lj/cut/coul/long/tip4p - LJ with long-range Coulomb for TIP4P water
pair_style lj/expand - Lennard-Jones for variable size particles
diff -Naur lammps-6Jan08/doc/pair_coeff.txt lammps-8Jan08/doc/pair_coeff.txt
--- lammps-6Jan08/doc/pair_coeff.txt 2007-10-22 15:43:55.000000000 -0600
+++ lammps-8Jan08/doc/pair_coeff.txt 2008-01-03 18:50:23.000000000 -0700
@@ -90,6 +90,7 @@
"pair_style buck/coul/long"_pair_buck.html - Buckingham with long-range Coulomb
"pair_style colloid"_pair_colloid.html - integrated colloidal potential
"pair_style coul/cut"_pair_coul.html - cutoff Coulombic potential
+"pair_style coul/debye"_pair_coul.html - cutoff Coulombic potential with Debye screeing
"pair_style coul/long"_pair_coul.html - long-range Coulombic potential
"pair_style dipole/cut"_pair_dpd.html - point dipoles with cutoff
"pair_style dpd"_pair_dpd.html - dissipative particle dynamics (DPD)
@@ -113,7 +114,7 @@
"pair_style lj/cut"_pair_lj.html - cutoff Lennard-Jones potential with no Coulomb
"pair_style lj/cut/opt"_pair_lj.html - optimized version of cutoff LJ
"pair_style lj/cut/coul/cut"_pair_lj.html - LJ with cutoff Coulomb
-"pair_style lj/cut/coul/debye"_pair_lj.html - LJ with Debye damping added to Coulomb
+"pair_style lj/cut/coul/debye"_pair_lj.html - LJ with Debye screeing added to Coulomb
"pair_style lj/cut/coul/long"_pair_lj.html - LJ with long-range Coulomb
"pair_style lj/cut/coul/long/tip4p"_pair_lj.html - LJ with long-range Coulomb for TIP4P water
"pair_style lj/expand"_pair_lj_expand.html - Lennard-Jones for variable size particles
diff -Naur lammps-6Jan08/doc/pair_style.html lammps-8Jan08/doc/pair_style.html
--- lammps-6Jan08/doc/pair_style.html 2007-10-22 15:43:55.000000000 -0600
+++ lammps-8Jan08/doc/pair_style.html 2008-01-03 18:50:23.000000000 -0700
@@ -99,6 +99,7 @@
pair_style buck/coul/long - Buckingham with long-range Coulomb
pair_style colloid - integrated colloidal potential
pair_style coul/cut - cutoff Coulombic potential
+pair_style coul/debye - cutoff Coulombic potential with Debye screeing
pair_style coul/long - long-range Coulombic potential
pair_style dipole/cut - point dipoles with cutoff
pair_style dpd - dissipative particle dynamics (DPD)
@@ -122,7 +123,7 @@
pair_style lj/cut - cutoff Lennard-Jones potential with no Coulomb
pair_style lj/cut/opt - optimized version of cutoff LJ
pair_style lj/cut/coul/cut - LJ with cutoff Coulomb
-pair_style lj/cut/coul/debye - LJ with Debye damping added to Coulomb
+pair_style lj/cut/coul/debye - LJ with Debye screeing added to Coulomb
pair_style lj/cut/coul/long - LJ with long-range Coulomb
pair_style lj/cut/coul/long/tip4p - LJ with long-range Coulomb for TIP4P water
pair_style lj/expand - Lennard-Jones for variable size particles
diff -Naur lammps-6Jan08/doc/pair_style.txt lammps-8Jan08/doc/pair_style.txt
--- lammps-6Jan08/doc/pair_style.txt 2007-10-22 15:43:55.000000000 -0600
+++ lammps-8Jan08/doc/pair_style.txt 2008-01-03 18:50:23.000000000 -0700
@@ -95,6 +95,7 @@
"pair_style buck/coul/long"_pair_buck.html - Buckingham with long-range Coulomb
"pair_style colloid"_pair_colloid.html - integrated colloidal potential
"pair_style coul/cut"_pair_coul.html - cutoff Coulombic potential
+"pair_style coul/debye"_pair_coul.html - cutoff Coulombic potential with Debye screeing
"pair_style coul/long"_pair_coul.html - long-range Coulombic potential
"pair_style dipole/cut"_pair_dpd.html - point dipoles with cutoff
"pair_style dpd"_pair_dpd.html - dissipative particle dynamics (DPD)
@@ -118,7 +119,7 @@
"pair_style lj/cut"_pair_lj.html - cutoff Lennard-Jones potential with no Coulomb
"pair_style lj/cut/opt"_pair_lj.html - optimized version of cutoff LJ
"pair_style lj/cut/coul/cut"_pair_lj.html - LJ with cutoff Coulomb
-"pair_style lj/cut/coul/debye"_pair_lj.html - LJ with Debye damping added to Coulomb
+"pair_style lj/cut/coul/debye"_pair_lj.html - LJ with Debye screeing added to Coulomb
"pair_style lj/cut/coul/long"_pair_lj.html - LJ with long-range Coulomb
"pair_style lj/cut/coul/long/tip4p"_pair_lj.html - LJ with long-range Coulomb for TIP4P water
"pair_style lj/expand"_pair_lj_expand.html - Lennard-Jones for variable size particles
diff -Naur lammps-6Jan08/src/MAKE/Makefile.g++ lammps-8Jan08/src/MAKE/Makefile.g++
--- lammps-6Jan08/src/MAKE/Makefile.g++ 2007-08-13 09:53:41.000000000 -0600
+++ lammps-8Jan08/src/MAKE/Makefile.g++ 2008-01-04 15:10:58.000000000 -0700
@@ -1,7 +1,6 @@
# g++ = RedHat Linux box, g++, MPICH2, FFTW
SHELL = /bin/sh
-#.IGNORE:
# System-specific settings
diff -Naur lammps-6Jan08/src/MAKE/Makefile.liberty lammps-8Jan08/src/MAKE/Makefile.liberty
--- lammps-6Jan08/src/MAKE/Makefile.liberty 2007-07-20 09:21:54.000000000 -0600
+++ lammps-8Jan08/src/MAKE/Makefile.liberty 2008-01-04 15:04:15.000000000 -0700
@@ -7,12 +7,14 @@
# Note: this Makefile builds LAMMPS according to what modules you've loaded
# by default this is openmpi MPI
-# if you want to build with mpich MPI instead, do the following:
-# (1) put these lines in your .cshrc
-# module switch mpi mpi/mpich-mx-1.2.7..4_intel-10.0-f025-c025
-# module load libraries/fftw-2.1.5_mpich-mx-1.2.7..4_intel-9.1-f040-c046
-# (2) your qsub environment also needs these same modules
-# this will occur if you use qsub -V to inherit from your login shell
+# you still need this line in your .cshrc to load FFTW
+# module load libraries/fftw-2.1.5_openmpi-1.2.3_mx_intel-8.1-f034-c038
+# if you want to build with mpich MPI instead, put this in your .cshrc
+# module switch mpi mpi/mpich-mx-1.2.7..4_intel-10.0-f025-c025
+# module load libraries/fftw-2.1.5_mpich-mx-1.2.7..4_intel-9.1-f040-c046
+# whichever mode you build LAMMPS (openmpi or mpich),
+# your qsub environment needs these same modules
+# this will occur if you use qsub -V to inherit from your login shell
#FFTW = /home/sjplimp/fftw/fftw_liberty
diff -Naur lammps-6Jan08/src/MAKE/Makefile.linux lammps-8Jan08/src/MAKE/Makefile.linux
--- lammps-6Jan08/src/MAKE/Makefile.linux 2007-08-13 09:53:41.000000000 -0600
+++ lammps-8Jan08/src/MAKE/Makefile.linux 2008-01-04 15:10:58.000000000 -0700
@@ -1,7 +1,6 @@
# linux = RedHat Linux box, Intel icc, MPICH2, FFTW
SHELL = /bin/sh
-#.IGNORE:
# System-specific settings
diff -Naur lammps-6Jan08/src/MAKE/Makefile.serial lammps-8Jan08/src/MAKE/Makefile.serial
--- lammps-6Jan08/src/MAKE/Makefile.serial 2007-08-13 09:53:41.000000000 -0600
+++ lammps-8Jan08/src/MAKE/Makefile.serial 2008-01-04 15:10:58.000000000 -0700
@@ -1,16 +1,16 @@
-# serial = RedHat Linux box, icc, no MPI, no FFTs
+# serial = RedHat Linux box, g++, no MPI, no FFTs
SHELL = /bin/sh
# System-specific settings
-CC = icc
-CCFLAGS = -O -I../STUBS -DFFT_NONE
+CC = g++
+CCFLAGS = -g -O -I../STUBS -DFFT_NONE
DEPFLAGS = -M
-LINK = icc
-LINKFLAGS = -O -L../STUBS
+LINK = g++
+LINKFLAGS = -g -O -L../STUBS
USRLIB = -lmpi
-SYSLIB = -lstdc++
+SYSLIB =
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size
diff -Naur lammps-6Jan08/src/MAKE/Makefile.serial_icc lammps-8Jan08/src/MAKE/Makefile.serial_icc
--- lammps-6Jan08/src/MAKE/Makefile.serial_icc 1969-12-31 17:00:00.000000000 -0700
+++ lammps-8Jan08/src/MAKE/Makefile.serial_icc 2008-01-04 15:04:15.000000000 -0700
@@ -0,0 +1,40 @@
+# serial_icc = RedHat Linux box, icc, no MPI, no FFTs
+
+SHELL = /bin/sh
+
+# System-specific settings
+
+CC = icc
+CCFLAGS = -O -I../STUBS -DFFT_NONE
+DEPFLAGS = -M
+LINK = icc
+LINKFLAGS = -O -L../STUBS
+USRLIB = -lmpi
+SYSLIB = -lstdc++
+ARCHIVE = ar
+ARFLAGS = -rc
+SIZE = size
+
+# Link target
+
+$(EXE): $(OBJ)
+ $(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
+ $(SIZE) $(EXE)
+
+# Library target
+
+lib: $(OBJ)
+ $(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)
+
+# Compilation rules
+
+%.o:%.cpp
+ $(CC) $(CCFLAGS) -c $<
+
+%.d:%.cpp
+ $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@
+
+# Individual dependencies
+
+DEPENDS = $(OBJ:.o=.d)
+include $(DEPENDS)
diff -Naur lammps-6Jan08/src/MOLECULE/angle_hybrid.cpp lammps-8Jan08/src/MOLECULE/angle_hybrid.cpp
--- lammps-6Jan08/src/MOLECULE/angle_hybrid.cpp 2008-01-02 12:24:46.000000000 -0700
+++ lammps-8Jan08/src/MOLECULE/angle_hybrid.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -192,14 +192,20 @@
if (strcmp(arg[1],keywords[m]) == 0) break;
if (m == nstyles) error->all("Angle coeff for hybrid has invalid style");
- // set low-level coefficients for each angletype
- // replace 2nd arg with i, call coeff() with no 1st arg
+ // move 1st arg to 2nd arg
+ // just copy ptrs, since arg[] points into original input line
+
+ arg[1] = arg[0];
+
+ // invoke sub-style coeff() starting with 1st arg
+
+ if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
+
+ // set setflag and which type maps to which sub-style
// if sub-style is NULL for "none", still set setflag
for (int i = ilo; i <= ihi; i++) {
- sprintf(arg[1],"%d",i);
map[i] = m;
- if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
if (styles[m] == NULL) setflag[i] = 1;
else setflag[i] = styles[m]->setflag[i];
}
diff -Naur lammps-6Jan08/src/MOLECULE/bond_hybrid.cpp lammps-8Jan08/src/MOLECULE/bond_hybrid.cpp
--- lammps-6Jan08/src/MOLECULE/bond_hybrid.cpp 2008-01-02 12:24:46.000000000 -0700
+++ lammps-8Jan08/src/MOLECULE/bond_hybrid.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -191,14 +191,20 @@
if (strcmp(arg[1],keywords[m]) == 0) break;
if (m == nstyles) error->all("Bond coeff for hybrid has invalid style");
- // set low-level coefficients for each bondtype
- // replace 2nd arg with i, call coeff() with no 1st arg
+ // move 1st arg to 2nd arg
+ // just copy ptrs, since arg[] points into original input line
+
+ arg[1] = arg[0];
+
+ // invoke sub-style coeff() starting with 1st arg
+
+ if (styles[m]) styles[m]->coeff(narg-1,&arg[1]);
+
+ // set setflag and which type maps to which sub-style
// if sub-style is NULL for "none", still set setflag
for (int i = ilo; i <= ihi; i++) {
- sprintf(arg[1],"%d",i);
map[i] = m;
- if (styles[m]) styles[m]->coeff(narg-1,&arg[1]);
setflag[i] = 1;
}
}
diff -Naur lammps-6Jan08/src/MOLECULE/dihedral_hybrid.cpp lammps-8Jan08/src/MOLECULE/dihedral_hybrid.cpp
--- lammps-6Jan08/src/MOLECULE/dihedral_hybrid.cpp 2007-11-30 14:54:30.000000000 -0700
+++ lammps-8Jan08/src/MOLECULE/dihedral_hybrid.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -194,14 +194,20 @@
if (strcmp(arg[1],keywords[m]) == 0) break;
if (m == nstyles) error->all("Dihedral coeff for hybrid has invalid style");
- // set low-level coefficients for each dihedraltype
- // replace 2nd arg with i, call coeff() with no 1st arg
+ // move 1st arg to 2nd arg
+ // just copy ptrs, since arg[] points into original input line
+
+ arg[1] = arg[0];
+
+ // invoke sub-style coeff() starting with 1st arg
+
+ if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
+
+ // set setflag and which type maps to which sub-style
// if sub-style is NULL for "none", still set setflag
for (int i = ilo; i <= ihi; i++) {
- sprintf(arg[1],"%d",i);
map[i] = m;
- if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
if (styles[m] == NULL) setflag[i] = 1;
else setflag[i] = styles[m]->setflag[i];
}
diff -Naur lammps-6Jan08/src/MOLECULE/improper_hybrid.cpp lammps-8Jan08/src/MOLECULE/improper_hybrid.cpp
--- lammps-6Jan08/src/MOLECULE/improper_hybrid.cpp 2007-11-30 14:54:30.000000000 -0700
+++ lammps-8Jan08/src/MOLECULE/improper_hybrid.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -194,14 +194,20 @@
if (strcmp(arg[1],keywords[m]) == 0) break;
if (m == nstyles) error->all("Improper coeff for hybrid has invalid style");
- // set low-level coefficients for each impropertype
- // replace 2nd arg with i, call coeff() with no 1st arg
+ // move 1st arg to 2nd arg
+ // just copy ptrs, since arg[] points into original input line
+
+ arg[1] = arg[0];
+
+ // invoke sub-style coeff() starting with 1st arg
+
+ if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
+
+ // set setflag and which type maps to which sub-style
// if sub-style is NULL for "none", still set setflag
for (int i = ilo; i <= ihi; i++) {
- sprintf(arg[1],"%d",i);
map[i] = m;
- if (styles[m]) styles[m]->coeff(which,narg-1,&arg[1]);
if (styles[m] == NULL) setflag[i] = 1;
else setflag[i] = styles[m]->setflag[i];
}
diff -Naur lammps-6Jan08/src/pair_hybrid.cpp lammps-8Jan08/src/pair_hybrid.cpp
--- lammps-6Jan08/src/pair_hybrid.cpp 2008-01-02 12:24:46.000000000 -0700
+++ lammps-8Jan08/src/pair_hybrid.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -272,9 +272,10 @@
}
// move 1st/2nd args to 2nd/3rd args
+ // just copy ptrs, since arg[] points into original input line
- sprintf(arg[2],"%s",arg[1]);
- sprintf(arg[1],"%s",arg[0]);
+ arg[2] = arg[1];
+ arg[1] = arg[0];
// invoke sub-style coeff() starting with 1st arg
diff -Naur lammps-6Jan08/src/pair_hybrid_overlay.cpp lammps-8Jan08/src/pair_hybrid_overlay.cpp
--- lammps-6Jan08/src/pair_hybrid_overlay.cpp 2007-10-04 17:59:26.000000000 -0600
+++ lammps-8Jan08/src/pair_hybrid_overlay.cpp 2008-01-04 17:07:25.000000000 -0700
@@ -55,9 +55,10 @@
}
// move 1st/2nd args to 2nd/3rd args
+ // just copy ptrs, since arg[] points into original input line
- sprintf(arg[2],"%s",arg[1]);
- sprintf(arg[1],"%s",arg[0]);
+ arg[2] = arg[1];
+ arg[1] = arg[0];
// invoke sub-style coeff() starting with 1st arg
diff -Naur lammps-6Jan08/tools/README lammps-8Jan08/tools/README
--- lammps-6Jan08/tools/README 2007-06-22 17:41:35.000000000 -0600
+++ lammps-8Jan08/tools/README 2008-01-04 08:22:54.000000000 -0700
@@ -24,6 +24,7 @@
msi2lmp use Accelrys Insight code to setup LAMMPS input
pymol_asphere convert LAMMPS output of ellipsoids to PyMol format
restart2data convert a binary restart file to an input data file
+vim add-ons to VIM editor for editing LAMMPS input scripts
xmovie a quick/simple viz package (2d projections of 3d)
For tools that are single C, C++, or Fortran files, a Makefile for
diff -Naur lammps-6Jan08/tools/vim/README.txt lammps-8Jan08/tools/vim/README.txt
--- lammps-6Jan08/tools/vim/README.txt 1969-12-31 17:00:00.000000000 -0700
+++ lammps-8Jan08/tools/vim/README.txt 2008-01-04 08:22:54.000000000 -0700
@@ -0,0 +1,20 @@
+=== Vim Syntax Highlighting ===
+===============================
+
+The files provided in this directory will enable syntax highlighting
+for the lammps script syntax in vim. The simulation scripts have to
+end on .lmp (see mysyntax.vim). By far not all commands are included
+in the syntax file (lammps.vim). You can easily add new ones.
+
+=To enable the highlighting:
+============================
+(0) Create a ~/.vimrc
+ You can have a look in /usr/local/share/vim/current/vimrc.example
+(1) Insert in ~/.vimrc
+ let mysyntaxfile = "~/.vim/mysyntax.vim"
+ just before
+ syntax on
+(2) Create directory ~/.vim and place mysyntax.vim and lammps.vim there
+
+Gerolf Ziegenhain 2007
+
diff -Naur lammps-6Jan08/tools/vim/lammps.vim lammps-8Jan08/tools/vim/lammps.vim
--- lammps-6Jan08/tools/vim/lammps.vim 1969-12-31 17:00:00.000000000 -0700
+++ lammps-8Jan08/tools/vim/lammps.vim 2008-01-04 08:22:54.000000000 -0700
@@ -0,0 +1,57 @@
+" Vim syntax file
+" Language: Lammps Simulation Script File
+" Maintainer: Gerolf Ziegenhain
+" Latest Revision: 2007-11-19
+
+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 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 lammpsRun minimize run
+syn keyword lammpsDefine variable
+
+syn keyword lammpsRepeat jump next loop
+
+syn keyword lammpsOperator equal add sub mult div
+
+syn keyword lammpsConditional if then else
+
+syn region lammpsString start=+'+ end=+'+ oneline
+syn region lammpsString start=+"+ end=+"+ oneline
+
+syn match lammpsNumber "\<[0-9]\+[ij]\=\>"
+syn match lammpsFloat "\<[0-9]\+\.[0-9]*\([edED][-+]\=[0-9]\+\)\=[ij]\=\>"
+syn match lammpsFloat "\.[0-9]\+\([edED][-+]\=[0-9]\+\)\=[ij]\=\>"
+syn match lammpsFloat "\<[0-9]\+[edED][-+]\=[0-9]\+[ij]\=\>"
+
+syn match lammpsComment "#.*$"
+
+syn match lammpsVariable "\$\({[a-zA-Z0-9]\+}\)"
+syn match lammpsVariable "\$[A-Za-z]"
+
+if !exists("did_lammps_syntax_inits")
+ let did_lammps_syntax_inits = 1
+ hi link lammpsOutput Function
+ hi link lammpsRepeat Repeat
+ hi link lammpsRead Include
+ hi link lammpsLattice Typedef
+ hi link lammpsParticle Typedef
+ hi link lammpsSetup Typedef
+ hi link lammpsDefine Define
+ hi link lammpsRun Statement
+ hi link lammpsNumber Number
+ hi link lammpsFloat Float
+ hi link lammpsString String
+ hi link lammpsComment Comment
+ hi link lammpsLoop Repeat
+ hi link lammpsVariable Identifier
+ hi link lammpsConditional Conditional
+ hi link lammpsOperator Operator
+endif
+
+let b:current_syntax = "lammps"
diff -Naur lammps-6Jan08/tools/vim/mysyntax.vim lammps-8Jan08/tools/vim/mysyntax.vim
--- lammps-6Jan08/tools/vim/mysyntax.vim 1969-12-31 17:00:00.000000000 -0700
+++ lammps-8Jan08/tools/vim/mysyntax.vim 2008-01-04 08:22:54.000000000 -0700
@@ -0,0 +1,3 @@
+augroup syntax
+au BufNewFile,BufReadPost *.lmp so ~/.vim/lammps.vim
+augroup END
diff -Naur lammps-6Jan08/tools/vim/vimrc lammps-8Jan08/tools/vim/vimrc
--- lammps-6Jan08/tools/vim/vimrc 1969-12-31 17:00:00.000000000 -0700
+++ lammps-8Jan08/tools/vim/vimrc 2008-01-04 08:22:54.000000000 -0700
@@ -0,0 +1,2 @@
+let mysyntaxfile = "~/.vim/mysyntax.vim"
+syntax on