User talk:Andy: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(→‎VIM is a great editor: Move table to separate page and add my vimrc file)
(Random things that need to be put somewhere)
Line 49: Line 49:
  :autocmd BufRead,BufNewFile [Mm]akefile :set noexpandtab
  :autocmd BufRead,BufNewFile [Mm]akefile :set noexpandtab
  highlight SpellErrors  guibg=Red guifg=Black
  highlight SpellErrors  guibg=Red guifg=Black
== Random things that need to be put somewhere ==
* MITK from CSiro: http://www3.ict.csiro.au/ict/content/display/0%2C%2Ca16254_b16408_d72676,00.html
* Fairly good C++ reference: http://www.cppreference.com/index.html

Revision as of 14:59, 30 July 2004

VIM is a great editor

Ok, so I use VIM. I used to use Emacs, but I guess the starting time was bothering me. Also, for small sysadmin edits I used VIM already and I was mixing key strokes from Emacs and VIM.


My VIM Settings

set nocompatible " We use a vim
set noautoindent 
set tabstop=2       " Tabs are two characters
set shiftwidth=2    " Indents are two charactes too
set expandtab       " Do not use tabs
"
syntax on           " Turn on syntax hilighting
"
set hlsearch        " Hilight the search results
set incsearch       " Incrementally search. Like Emacs
set matchpairs+=<:> " Also match <> when pressing %
set showmatch
set laststatus=2
"
" Minimalistic gui
set guioptions-=T
set guioptions-=m
set guioptions+=f
set guifont=Andale\ Mono\ 8
"
colorscheme darkblue
"
" Add spell checking
if exists("loaded_vimspell")
  set spell_auto_type="tex,mail,text,html,sgml,otl"
  :SpellAutoEnable
endif
"
set wildmode=longest " Make tabcompletion behave correctly
set selection=exclusive "  Only select up to not including last character
set ignorecase " Ignore case when searching lowercase
set smartcase " Ignore case when searching lowercase
"
"
set cinoptions={1s,:0,l1,g0,c0,(0,(s,m1 " VTK, ITK style indenting
"
" Fix for Makefiles do tabs
:autocmd BufRead,BufNewFile [Mm]akefile :set noexpandtab
highlight SpellErrors  guibg=Red guifg=Black

Random things that need to be put somewhere