set nocompatible " disable vi settings set noerrorbells " don't play a noise in macvim set vb " flash the screen set number " display line numbers set bs=2 " allow backspacing over everything in insert mode set ai " always set autoindenting on set nobackup " don't keep a backup file set viminfo='20,\"50 " read/write a .viminfo file, don't store more " than 50 lines of registers set history=50 " keep 50 lines of command line history set ruler " show the cursor position all the time set nowrap " make sure that long lines don't wrap set laststatus=2 " Make sure the status line is always displayed filetype plugin on " Switch syntax highlighting on syntax enable " Display bufnr:filetype (dos,unix,mac) in status line set statusline=%<%n:%f%h%m%r%=%{&ff}\ %l,%c%V\ %P " " Hide the mouse pointer while typing " The window with the mouse pointer does not automatically become the " active window " Right mouse button extends selections " Turn on mouse support set mousehide set nomousefocus set mousemodel=extend set mouse=a set colorcolumn=80 " Show paren matches for 5 tenths of a second set showmatch set matchtime=5 " Setup tabs for 4 spaces set tabstop=4 set shiftwidth=4 set softtabstop=4 set textwidth=78 set smarttab set shiftround set expandtab if $TERM_PROGRAM =~ 'APPLE' colorscheme synic else set t_Co=256 colorscheme synic endif set runtimepath+=~/.vim/vim-addon-manager filetype indent plugin on | syn on fun! SetupVAM() let c = get(g:, 'vim_addon_manager', {}) let g:vim_addon_manager = c let c.plugin_root_dir = expand('$HOME', 1) . '/.vim/vim-addons' " Force your ~/.vim/after directory to be last in &rtp always: " let g:vim_addon_manager.rtp_list_hook = 'vam#ForceUsersAfterDirectoriesToBeLast' " most used options you may want to use: " let c.log_to_buf = 1 " let c.auto_install = 0 let &rtp.=(empty(&rtp)?'':',').c.plugin_root_dir.'/vim-addon-manager' if !isdirectory(c.plugin_root_dir.'/vim-addon-manager/autoload') execute '!git clone --depth=1 git://github.com/MarcWeber/vim-addon-manager ' \ shellescape(c.plugin_root_dir.'/vim-addon-manager', 1) endif " This provides the VAMActivate command, you could be passing plugin names, too call vam#ActivateAddons([], {}) endfun call SetupVAM() " ACTIVATING PLUGINS " OPTION 1, use VAMActivate VAMActivate github:scrooloose/nerdtree Gundo github:jmcantrell/vim-virtualenv bufexplorer.zip " OPTION 2: use call vam#ActivateAddons " call vam#ActivateAddons([PLUGIN_NAME], {}) " use to complete plugin names " OPTION 3: Create a file ~/.vim-srcipts putting a PLUGIN_NAME into each line " See lazy loading plugins section in README.md for details " call vam#Scripts('~/.vim-scripts', {'tag_regex': '.*'})