Skip to content

Instantly share code, notes, and snippets.

@blackknight36
Created April 27, 2017 15:31
Show Gist options
  • Save blackknight36/74e5cfa0005b7d43177067d3dd56b27c to your computer and use it in GitHub Desktop.
Save blackknight36/74e5cfa0005b7d43177067d3dd56b27c to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/syntastic'
let g:syntastic_puppet_puppetlint_args = "--no-140chars-check"
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
syntax on
set autoindent
set bg=dark
set paste
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set t_ti= t_te=
set textwidth=72
set laststatus=2
set showtabline=0
set showmode
highlight LiteralTabs ctermbg=darkgreen guibg=darkgreen
match LiteralTabs /\s\ /
highlight ExtraWhitespace ctermbg=darkgreen guibg=darkgreen
match ExtraWhitespace /\s\+$/
" set spell spelllang=en_us
" Override the default "saved" cursor position from the last commit.
function GitCommitBufEnter()
if &filetype == "gitcommit"
call setpos('.', [0, 1, 1, 0])
endif
endfunction
au BufEnter * call GitCommitBufEnter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment