Skip to content

Instantly share code, notes, and snippets.

@ressu
Created July 17, 2015 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ressu/1d85fadcbd463bb5ea12 to your computer and use it in GitHub Desktop.
Save ressu/1d85fadcbd463bb5ea12 to your computer and use it in GitHub Desktop.
" 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 <ressu@ressukka.net>
" }
" 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