UserPreferences

VimConfig


The following 125 words could not be found in the dictionary of 550 words (including 550 LocalSpellingWords) and are highlighted below:

0i   Also   and   are   au   autoindent   backspace   be   behave   black   break   Buf   chars   Class   Co   Colin   colors   configuration   ctermbg   current   definition   description   do   Don   Donald   endif   eol   Ex   example   exception   Exception   expandtab   F5   F6   F7   F8   fixdel   fmt   for   formatting   gq   gray   gui   has   here   highlight   highlighting   hilight   hlsearch   if   imap   indent   insert   int   inter   java   kb   key   last   line   loadview   loop   Mac   make   makes   map   method   Method   mkview   mode   mouse   need   new   nmap   nobackup   nocompatible   Note   nowritebackup   Object   on   or   param   pattern   public   Read   reformat   replaced   return   ruler   running   search   Search   selectmode   set   shiftwidth   showcmd   silent   softtabstop   source   start   statusline   Stuff   Switch   switch   syntax   tabstop   terminal   that   the   This   to   two   Unload   use   used   variable   vim   Vim   vimrc   void   whatever   when   with   Write   xterm  

Clear message

ColinMacDonald's Vim configuration:

Note that the ^Ms here are two chars, and need to be replaced with <CTRL-V><RET> or whatever.

set nocompatible
" Don't use Ex mode, use Q for formatting
map Q gq
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

" This makes the search hilight black on gray
highlight Search ctermbg=7

set t_kb=^H
fixdel

" source $VIMRUNTIME/vimrc_example.vim
behave xterm
set selectmode=mouse
set nobackup       
set nowritebackup
set ruler
set backspace=indent,eol,start           
set autoindent     
set tabstop=4      
set softtabstop=4  
set expandtab      
set shiftwidth=4
au BufRead *.java silent loadview
au BufWrite *.java mkview    
au BufUnload *.java mkview

set statusline=%F%y%r%m%l,%c-%p
set showcmd

" make the F8 key insert the inter-method break line.
imap <F8> //---------------------------------------------------------------------------^M
nmap <F8> 0i^M  //---------------------------------------------------------------------------^M^[

" make the F7 key insert a new method definition.
imap <F7> /**^M * Method description^M*^M* @param variable description^M* @return description^M* @exception ExceptionClass description^M*/^M^?public void doStuff(Object param)^M{^M}^M^[
nmap <F7> 0i^M  /**^M * Method description^M*^M* @param variable description^M* @return description^M* @exception ExceptionClass description^M*/^M^?public void doStuff(Object param)^M{^M}^M^[

" make the F6 key insert a for loop
imap <F6> for ( int i = 0; i < XXX; i++ )^M{^M}
nmap <F6> 0i^M  for ( int i = 0; i < XXX; i++ )^M{^M}^[

" reformat the current line
nmap <F5> :,!fmt^M