Created
July 17, 2015 06:03
-
-
Save ressu/1d85fadcbd463bb5ea12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Modeline and Notes { | |
" vim:foldmarker={,} foldlevel=0 foldmethod=marker spell ft=vim | |
" | |
" This configuration file contains pretty much everything needed to make Vim | |
" play nice (or at least like I want it to) | |
" | |
" Influenced by: https://github.com/spf13/spf13-vim/blob/master/.vimrc | |
" | |
" - Sami Haahtinen <[email protected]> | |
" } | |
" Environment { | |
" Vim behavior { | |
if has('vim_starting') | |
set nocompatible | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
" } | |
" } | |
" Begin NeoBundle { | |
if has("eval") | |
try | |
call neobundle#begin(expand('~/.vim/bundle')) | |
" Manage NeoBundle itself | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
" If NeoBundle is missing, define an installer for it | |
function! NeoBundleInstaller() | |
echom "Starting NeoBundle Installation" | |
let neobundlegit = 'https://github.com/Shougo/neobundle.vim' | |
let destination = expand('~/.vim/bundle/neobundle.vim') | |
call mkdir(destination, "p") | |
call system('git clone ' . neobundlegit . ' ' . destination) | |
echom "all done, restart vim" | |
endfunction | |
command! InstallNeoBundle call NeoBundleInstaller() | |
endtry | |
endif | |
" } | |
" Modules and related config { | |
if exists("#neobundle") | |
NeoBundle "vim-scripts/TailMinusF" | |
NeoBundle 'tpope/vim-abolish' " abolish.vim: easily search for, substitute, and abbreviate multiple variants of a word | |
" More modules | |
endif | |
" } | |
" End neobundle { | |
if exists("*neobundle#end") | |
call neobundle#end() | |
endif | |
" } | |
" Finalize NeoBundle { | |
if v:version >= 600 | |
" vundle required setting (and good to have) | |
filetype plugin indent on | |
endif | |
" Check for missing plugins | |
if exists(":NeoBundleCheck") | |
NeoBundleCheck | |
endif | |
" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment