> Anyone have any other must have vimrc options?

Spent a day reading Vim docs, setting myself up a nice environment to
hack Java. Did it on FC2 but seems to work fine as is on my debian boxen
too. I started out just looking for how to enable auto formatting for
Java (it wasn't on by default) and I ended up with this:

#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.2.1).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `!/bin/sh' line above, then type `sh FILE'.
#
# Made on 2004-07-07 20:01 CDT by <seg at bigtime>.
# Source directory was `/home/seg'.
#
# Existing files will *not* be overwritten unless `-c' is specified.
# This format requires very little intelligence at unshar time.
# "if test", "echo", "mkdir", and "sed" may be needed.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    295 -rw-rw-r-- .vimrc
#     85 -rw-rw-r-- .gvimrc
#     79 -rw-rw-r-- .vim/ftplugin/sourcecode.vim
#
echo=echo
if mkdir _sh30096; then
  $echo 'x -' 'creating lock directory'
else
  $echo 'failed to create lock directory'
  exit 1
fi
# ============= .vimrc ==============
if test -f '.vimrc' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING '.vimrc' '(file already exists)'
else
  $echo 'x -' extracting '.vimrc' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > '.vimrc' &&
X:filetype plugin indent on
X:set hlsearch
X:set incsearch
X:set display=lastline
X:set listchars=eol:·,tab:·\ ,precedes:<,extends:>
X:set showbreak=>
X:set sidescroll=1
X:set scrolloff=2
X:set sidescrolloff=8
X:set mouse=a
X:set whichwrap=b,s,h,l,<,>,~,[,]
X:set virtualedit=all
X:set backup
X:set confirm
SHAR_EOF
  : || $echo 'restore of' '.vimrc' 'failed'
fi
# ============= .gvimrc ==============
if test -f '.gvimrc' && test "$first_param" != -c; then
  $echo 'x -' SKIPPING '.gvimrc' '(file already exists)'
else
  $echo 'x -' extracting '.gvimrc' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > '.gvimrc' &&
X:set guifont=Bitstream\ Vera\ Sans\ Mono\ 13
Xcolorscheme torte
X:set mousemodel=popup
SHAR_EOF
  : || $echo 'restore of' '.gvimrc' 'failed'
fi
# ============= .vim/ftplugin/sourcecode.vim ==============
if test ! -d '.vim'; then
  $echo 'x -' 'creating directory' '.vim'
  mkdir '.vim'
fi
if test ! -d '.vim/ftplugin'; then
  $echo 'x -' 'creating directory' '.vim/ftplugin'
  mkdir '.vim/ftplugin'
fi
if test -f '.vim/ftplugin/sourcecode.vim' && test "$first_param" != -c;
then
  $echo 'x -' SKIPPING '.vim/ftplugin/sourcecode.vim' '(file already
exists)'
else
  $echo 'x -' extracting '.vim/ftplugin/sourcecode.vim' '(text)'
  sed 's/^X//' << 'SHAR_EOF' > '.vim/ftplugin/sourcecode.vim' &&
X:set nowrap
X:set tabstop=3
X:set softtabstop=3
X:set shiftwidth=3
X:set showmatch
SHAR_EOF
  : || $echo 'restore of' '.vim/ftplugin/sourcecode.vim' 'failed'
fi
rm -fr _sh30096
cd .vim/ftplugin
ln -s sourcecode.vim c.vim
ln -s sourcecode.vim cpp.vim
ln -s sourcecode.vim java.vim
exit 0

Note, the 'set listchars' is using a unicode centered period. I bet it
gets mangled in email. Here's what it looks like with plain periods:

set listchars=eol:.,tab:.\ ,precedes:<,extends:>

Not sure I like some of my tweaks yet. So do I win the award for most
convoluted vim configuration?


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
Help beta test TCLUG's potential new home: http://plone.mn-linux.org
Got pictures for TCLUG? Beta test http://plone.mn-linux.org/gallery
tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list