From: stack Date: Fri, 12 Oct 2012 14:59:30 +0000 (+0200) Subject: changed vam config in vimrc X-Git-Url: https://v.licheni.net/stack/conf/vim.git/commitdiff_plain/5eb8ade7718e488253b04f1d3ea9e0b22d556d3c changed vam config in vimrc --- diff --git a/.vimrc b/.vimrc index bc78eb3..6de923f 100644 --- a/.vimrc +++ b/.vimrc @@ -19,7 +19,6 @@ set t_Co=256 colorscheme desert "colorscheme xoria256 "let g:solarized_termcolors=256 -"colorscheme solarized """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Vim UI @@ -31,7 +30,6 @@ set lz " do not redraw while running macros (much faster) (LazyRedraw) set hid " you can change buffer without saving set backspace=2 " make backspace work normal set whichwrap+=<,>,h,l " backspace and cursor keys wrap to -set mouse=a " use mouse everywhere set shortmess=atI " shortens messages to avoid 'press a key' prompt set report=0 " tell us when anything is changed via :... " make the splitters between windows be blank @@ -193,30 +191,23 @@ fun SetupVAM() let addons_base = expand('$HOME') . '/.vim/addons' exec 'set runtimepath+='.addons_base.'/vim-addon-manager' - " unix based os users may want to use this code checking out VAM - " if !isdirectory(addons_base.'/vim-addon-manager') - " exec '!p='.shellescape(addons_base).'; mkdir -p "$p" && cd "$p" && git clone --depth 1 git://github.com/MarcWeber/vim-addon-manager.git' - " endif + try - " commenting try .. endtry because trace is lost if you use it. - " There should be no exception anyway - try - - let g:solarized_termcolors=256 - call vam#ActivateAddons(['github:altercation/vim-colors-solarized']) + " Plugins that should be always enabled call vam#ActivateAddons(['surround','checksyntax','snipmate','snipmate-snippets','gnupg','LargeFile','taglist-plus'], {'auto_install' : 0}) - " pluginA could be github:YourName see vam#install#RewriteName() + catch /.*/ echoe v:exception endtry endf call SetupVAM() +" Enable addons with vim-addon-manager using file type recognition let ft_addons = { - \ '^\%(R\|r\)$': [ 'Screen_vim__gnu_screentmux', 'Vim-R-plugin' ], -\ } + \ '^\%(R\|r\)$': [ 'Screen_vim__gnu_screentmux', 'Vim-R-plugin' ], + \ } au FileType * for l in values(filter(copy(ft_addons), string(expand('')).' =~ v:key')) | call vam#ActivateAddons(l, {'force_loading_plugins_now':1}) | endfor -" experimental: run after gui has been started (gvim) [3] -" option1: au VimEnter * call SetupVAM() -" option2: au GUIEnter * call SetupVAM() -" See BUGS sections below [*] + + + +