" We use a vim "set nocompatible " " Colo(u)red or not colo(u)red " If you want color you should set this to true " let color = "true" " if has("syntax") if color == "true" " This will switch colors ON so ${VIMRUNTIME}/syntax/syntax.vim else " this switches colors OFF syntax off set t_Co=0 endif endif set smarttab set expandtab set shiftwidth=2 set tabstop=2 " Only do this part when compiled with support for autocommands. if has("autocmd") " Enable file type detection. " Use the default filetype settings, so that mail gets 'tw' set to 72, " 'cindent' is on in C files, etc. " Also load indent files, to automatically do language-dependent indenting. filetype plugin indent on " For all text files set 'textwidth' to 78 characters. autocmd FileType text setlocal textwidth=78 " When editing a file, always jump to the last known cursor position. " Don't do it when the position is invalid or when inside an event handler " (happens when dropping a file on gvim). autocmd BufReadPost * \ if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g`\"" | \ endif endif " has("autocmd") map :s/\s\+\%#\s*\\|\s*\%#\s\+/ / " RJC: temporary let @q = "const char const * msg = " " let @e = "write(2, msg, strlen(msg));\n" let @d = "oif(sel_cc == SPARC_cc) {" let @e = "o} else {" let @w = '"qPA;"ep' let @p = 'iposix_' " RJC: Commenting out let @c = ":'a,'bs,^,//," let @r = ":'a,'bs,^//,," " misc/temp guff set hlsearch "set gfn=-misc-fixed-medium-r-semicondensed-*-*-120-*-*-c-*-iso10646-1 highlight green ctermbg=green highlight blue ctermbg=blue highlight red ctermbg=red set guifont=Neep\ Alt\ 10 " RJC: End of RJC " Notes: " " :help match <-- colour highlighting " " " " " ~/.vimrc ends here