X-Git-Url: https://v.licheni.net/stack/conf/vim.git/blobdiff_plain/45974721d44e2a7e50ad64792b4f95fae4bd62e9..c7f2269619360ae4692e3c64ff6e0daa2714a745:/vimrc diff --git a/vimrc b/vimrc index 28d68f4..562c097 100644 --- a/vimrc +++ b/vimrc @@ -25,13 +25,14 @@ syntax on " syntax highlighting on set background=dark set t_Co=256 -colorscheme desert +colorscheme morning "colorscheme xoria256 "let g:solarized_termcolors=256 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim UI """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +set nofoldenable " disable folding set wildmenu " turn on wild menu set ruler " Always show current positions along the bottom set number " turn on line numbers @@ -71,16 +72,6 @@ set expandtab " space instead of tabs set smarttab "Use the "shiftwidth" setting for inserting s instead of the "tabstop" setting, when at the beginning of a line. set nowrap " do not wrap lines -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Folding -" Enable folding, but by default make it act like folding is off, because folding is annoying in anything but a few rare cases -""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -set foldenable " Turn on folding -set foldmethod=indent " Make folding indent sensitive -set foldlevel=100 " Don't autofold anything (but I can still fold manually) -set foldopen-=search " don't open folds when you search into them -set foldopen-=undo " don't open folds when you undo stuff - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Mouse Settings """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -187,6 +178,7 @@ if has ("autocmd") autocmd FileType c,cpp,slang set cindent autocmd FileType c,cpp,slang set textwidth=79 + autocmd FileType c,cpp,slang set tags=./tags,/usr/src/linux/tags,~/.vim/tags/usr/include/tags autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full) autocmd BufNewFile *.sh call append(0, "#!/bin/bash") @@ -232,11 +224,11 @@ let vam_install_path = expand('$HOME') . '/.vim/addons' exec 'set runtimepath+='.vam_install_path.'/vim-addon-manager' " Enable addons with vim-addon-manager using file type recognition let ft_addons = { - \ 'always': ['desert', 'surround', 'checksyntax', 'quickfixsigns', 'LargeFile', 'snipmate', 'snipmate-snippets', 'The_NERD_tree', 'SuperTab%1643'], + \ 'always': ['desert', 'gnupg', 'surround', 'checksyntax', 'quickfixsigns', 'LargeFile', 'snipmate', 'snipmate-snippets', 'The_NERD_tree', 'SuperTab%1643', 'fugitive'], \ 'r': [ 'Screen_vim__gnu_screentmux', 'Vim-R-plugin' ], - \ '^\%(c\|cpp\|javascript\|python\|php\|html\|xml\|r\|sh\|css\|java\|make\|xslt\|vim\)$': [ 'Tagbar', 'checksyntax', 'TagHighlight'], - \ '^\%(c\|cpp\|h\)$': [ 'clang_complete' ], - \ 'python': ['pythoncomplete', 'python_pydoc'], + \ '^\%(c\|cpp\|cuda\|javascript\|python\|php\|html\|xml\|r\|sh\|css\|java\|make\|xslt\|vim\)$': [ 'Tagbar', 'checksyntax', 'TagHighlight', 'sleuth'], + \ '^\%(c\|cpp\|h\|cuda\)$': [ 'clang_complete' ], + \ 'python': [ 'python_pydoc'], \ 'php': ['phpcomplete', 'PDV_-_phpDocumentor_for_Vim'], \ 'gpg': ['gnupg'], \ } @@ -256,3 +248,20 @@ endif let g:clang_complete_copen = 1 let g:clang_complete_auto = 1 let g:clang_user_options='|| exit 0' + +if has("cscope") + set csto=0 + set cst + set nocsverb + " add any database in current directory + if filereadable("cscope.out") + cs add cscope.out + " else add database pointed to by environment + elseif $CSCOPE_DB != "" + cs add $CSCOPE_DB + endif + if filereadable("/usr/linux/cscope.out") + cs add /usr/linux/cscope.out + endif + set csverb +endif