"TODO guicursor set cmdheight=1 set encoding=utf-8 set termencoding=utf-8 set clipboard=unnamed if has('gui_running') set guioptions+=a set guioptions+=c set guioptions-=T set guioptions-=e colorscheme zenburn if has('win32') set columns=120 set lines=60 set guifont=Bitstream_Vera_Sans_Mono:h8:cANSI else set guifont=Bitstream\ Vera\ Sans\ Mono\ 8 endif elseif (&term == 'screen.linux') || (&term =~ '^linux') set t_Co=8 colorscheme desert elseif (&term == 'rxvt-unicode') || (&term =~ '^xterm') || (&term =~ '^screen-256') set mouse=a set ttymouse=xterm set termencoding=utf-8 colorscheme inkpot else colorscheme desert endif syntax on filetype indent plugin on set shell=/bin/sh set splitbelow set autowrite set writebackup set backup backupdir=$HOME/.vim/backup "status line settings set laststatus=2 set statusline=%-3.3n\ %f\ %r%#Error#%m%#Statusline#\ (%l/%L,\ %c)\ %P%=%h%w\ %y\ [%{&encoding}:%{&fileformat}]\ \ "bell options (go away, I hate you) set vb set t_vb= " search options set hlsearch set incsearch set ignorecase set smartcase "navigation options set whichwrap=h,l,<,>,[,] set backspace=indent,eol,start set tabstop=4 set softtabstop=4 set shiftwidth=4 set textwidth=80 set expandtab set nowrap set history=500 set cinoptions=g0,:0,l1,(0,t0 set formatoptions+=l set selection=inclusive set number if has("folding") set foldenable set foldmethod=marker set foldlevel=100 endif set shortmess=a set complete=.,t,i,b,w,k set wildchar= set wildmenu set wildmode=longest:full,full set previewheight=5 let mapleader = "`" let &cdpath=','.expand("$HOME").','.expand("$HOME").'/devel' if has("autocmd") " This needs to be done after everything (plugins and all) are loaded "au VimEnter * GuiColorScheme rdark au Syntax {cpp,c,idl} runtime syntax/doxygen.vim au Syntax {cpp,c,lisp,scheme} runtime plugin/RainbowParenthesis.vim au FileType qf if &buftype == "quickfix" | \ setlocal statusline=%-3.3n\ %0*[quickfix]%=%2*\ %<%P | \endif au FileType mail setlocal spell au FileType cvs setlocal spell au FileType help setlocal statusline=%-3.3n\ [help]%=\ %<%P au WinEnter * setlocal cursorline au WinLeave * setlocal nocursorline au BufReadPost * if line("'\"")>0 && line("'\"")<=line("$")|exe "normal g`\""|endif au BufRead,BufNewFile PKGBUILD set ft=sh au BufRead,BufNewFile *.as setlocal ft=actionscript cindent "Omni Functionalizationify au FileType css setlocal ofu=csscomplete#CompleteCSS au Filetype * if exists('&ofu') && &ofu == "" | \ set ofu=syntaxcomplete#Complete | \endif endif if v:version >= 700 set cursorline set completeopt=menu,menuone,longest,preview set spelllang=en_us set spellsuggest=fast,20 set numberwidth=1 " imma commnt with missspellings, use me tu tesst endif "set dictionary=/usr/share/dict/words "ha! defeated! nmap q: :q " man-page autoreturn after view nmap K K "tags files search for a project " :FindTags('~/projects/something') command! -nargs=1 -complete=dir FindTags :call ProjectTags() function! ProjectTags(projectbase) let tfiles = glob("$(find ".a:projectbase." -name tags -print)") let &tags = substitute(tfiles, "\n", ",", "g") endfunction command! -nargs=* Make :call SilentMake() function! SilentMake() let oldsp=&shellpipe setlocal shellpipe=>%s\ 2>&1 exe 'silent make '.string(a:000) cwindow set shellpipe=&oldsp redraw! "this screws up the screen sometimes, fix that endfunction iab MAINTTAG Maintainer: Aaron Griffin "screw you thinkpad imap "Project let g:proj_flags = "ibmstg" let g:proj_window_width = 35 "TODO get this working better "TagsParser "let g:TagsParserLastPositionJump = 1 "let g:TagsParserCurrentFileCWD = 1 let g:TagsParserWindowSize = 30 "let g:TagsParserAutoOpenClose = 1 "let g:TagsParserSingleClick = 1 "let g:TagsParserHighlightCurrentTag = 1 "let g:TagsParserSortType = "line" "let g:TagsParserFileReadTag = 1 "let g:TagsParserFileReadDeleteTag = 1 "enable the Vim 7.0 options if v:version >= 700 let g:TagsParserCtrlTabUsage = 'tabs' "Configure the projects - These have been renamed because the projects I work "on at work are not really what is important, but rather the way they are configured. let g:TagsParserProjectConfig = {} let g:TagsParserProjectConfig['/home/griff/devel/pacman-lib/'] = { 'tagsPath' : '/home/griff/devel/pacman-lib/lib/libalpm/,/home/griff/devel/pacman-lib/src/pacman/' } endif "TagList "let Tlist_Display_Tag_Scope = 1 "ugh... let g:Tlist_Display_Prototype = 1 let g:Tlist_Use_Right_Window = 1 let g:Tlist_Exit_OnlyWindow = 1 let g:Tlist_Enable_Fold_Column = 0 let g:Tlist_Sort_Type = "name" let g:Tlist_Compact_Format = 0 let g:Tlist_File_Fold_Auto_Close = 0 let g:Tlist_WinWidth = 50 "VTreeExplorer let g:treeExplVertical = 1 let g:treeExplWinSize = 35 let g:treeExplDirSort = 1 "NetRW let g:netrw_keepdir = 1 let g:netrw_winsize = 40 let g:netrw_alto = 1 "BufExplorer let g:bufExplorerOpenMode=1 let g:bufExplorerSortBy='mru' let g:bufExplorerSplitType='v' let g:bufExplorerSplitVertSize = 35 let g:bufExplorerShowDirectories=1 "Valgrind let g:valgrind_arguments = "--leak-check=yes --num-callers=5000 --time-stamp=yes" let g:valgrind_use_horizontal_window = 1 let g:valgrind_win_height = 7 "DoxygenToolkit let g:DoxygenToolkit_authorName = "Aaron Griffin" let g:DoxygenToolkit_briefTag_funcName = "yes" "ShowMarks let g:showmarks_ignore_type="hmpqr" "Buftabs let g:buftabs_only_basename = 1 "Lisp syntax let g:lisp_rainbow = 1 "Key bindings set pastetoggle= noremap :Tlist noremap :VSBufExplore noremap :Make "NOT the same as :set nohlsearch noremap :nohlsearch noremap :set spell! noremap :tabn noremap :tabp noremap :tabnew noremap! :Tlist noremap! :VSBufExplore noremap! :Make "NOT the same as :set nohlsearch noremap! :nohlsearch noremap! :set spell! noremap! :tabn noremap! :tabp noremap! :tabnew " I never use these anyway noremap ( :bprev noremap ) :bnext filetype plugin indent on