Skip to content

Instantly share code, notes, and snippets.

@bcarpio
Created October 23, 2019 23:35
Show Gist options
  • Save bcarpio/e35527009bad3165d83238178b697eff to your computer and use it in GitHub Desktop.
Save bcarpio/e35527009bad3165d83238178b697eff to your computer and use it in GitHub Desktop.
set nocompatible
filetype on
" Load Vindle
" Type :source % (Noob)
" Type :PluginInstall (Noob)
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'hashivim/vim-terraform'
Plugin 'stephpy/vim-yaml'
Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'ntpeters/vim-better-whitespace'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'scrooloose/syntastic'
Plugin 'rodjek/vim-puppet'
Bundle 'chase/vim-ansible-yaml'
Bundle 'https://github.com/m-kat/aws-vim'
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
Bundle "garbas/vim-snipmate"
Bundle "vadv/vim-chef"
Plugin 'elzr/vim-json'
Plugin 'https://github.com/vim-scripts/groovy.vim.git'
Plugin 'Yggdroot/indentline'
Plugin 'hdima/python-syntax'
Plugin 'martinda/Jenkinsfile-vim-syntax'
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Bundle 'vim-ruby/vim-ruby'
call vundle#end()
"
" Enable Syntax Highlight
syntax on
" Enable Indentation
filetype plugin indent on
" Defaults
set tabstop=2
set softtabstop=0 expandtab
set shiftwidth=2 smarttab
" Setup NerdTree Stuff
autocmd vimenter * NERDTree
autocmd vimenter * wincmd p
autocmd BufWinEnter * NERDTreeMirror
let NERDTreeShowHidden=1
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
" Setup Python Stuff
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=120 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
set encoding=utf-8
" Setup Syntastic Stuff
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
let g:indentLine_enabled = 1
let g:indentLine_setColors = 1
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
autocmd FileType python nnoremap <buffer> <F9> <Esc>:w<cr>:exec '!clear; python3' shellescape(@%, 1)<cr>
" Disable Folding in Markdown
let g:vim_markdown_folding_disabled = 1
" Disable Markdown Concealing
let g:vim_markdown_conceal = 0
let g:vim_markdown_conceal_code_blocks = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment