X-Git-Url: https://v.licheni.net/stack/conf/vim.git/blobdiff_plain/e0b3d765a6b5407ee5b4ba22642a0586f1bd52b4..44e5d4e98942ac2949f4840e0aca0d31db557fe9:/vimrc?ds=inline diff --git a/vimrc b/vimrc index 2b6b92a..2b16f7c 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 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -233,30 +224,15 @@ 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', 'gnupg', 'surround', 'checksyntax', 'quickfixsigns', 'LargeFile', 'snipmate', 'snipmate-snippets', 'The_NERD_tree', 'SuperTab%1643', 'fugitive'], + \ 'always': ['desert', 'surround', 'checksyntax', 'quickfixsigns', 'LargeFile', 'UltiSnips', 'The_NERD_tree', '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': [ 'python_pydoc'], - \ 'php': ['phpcomplete', 'PDV_-_phpDocumentor_for_Vim'], - \ 'gpg': ['gnupg'], + \ '^\%(c\|cpp\|cuda\|javascript\|python\|php\|html\|xml\|r\|sh\|css\|java\|make\|xslt\|vim\)$': [ 'Tagbar', 'checksyntax', 'TagHighlight', 'sleuth'], + \ '^\%(c\|cpp\|h\|cuda\|php\|python\)$': [ 'YouCompleteMe' ], + \ 'php': ['PDV_-_phpDocumentor_for_Vim'], \ } call vam#ActivateAddons(ft_addons['always'], {'auto_install': 1}) au FileType * for l in values(filter(copy(ft_addons), string(expand('')).' =~ v:key')) | call vam#ActivateAddons(l, {'force_loading_plugins_now':1}) | endfor -" SuperTab option for context aware completion -let g:SuperTabDefaultCompletionType = "context" -" If you prefer the Omni-Completion tip window to close when a selection is -" " made, these lines close it on movement in insert mode or when leaving -" " insert mode -if has("autocmd") - autocmd CursorMovedI * if pumvisible() == 0|pclose|endif - autocmd InsertLeave * if pumvisible() == 0|pclose|endif -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 @@ -274,3 +250,8 @@ if has("cscope") endif set csverb endif + +let g:UltiSnipsExpandTrigger = "" +let g:UltiSnipsJumpForwardTrigger = "" +let g:UltiSnipsJumpBackwardTrigger = "" +let g:UltiSnipsDontReverseSearchPath=1