Created
November 12, 2017 17:58
-
-
Save josephjoice/c27b217a1a459744f70982eaf9c6e922 to your computer and use it in GitHub Desktop.
This file contains 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
set noswapfile | |
set clipboard=unnamed | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'scrooloose/nerdtree' | |
" The following are examples of different formats supported. | |
" Keep Plugin commands between vundle#begin/end. | |
" plugin on GitHub repo | |
"Plugin 'tpope/vim-fugitive' | |
" plugin from http://vim-scripts.org/vim/scripts.html | |
"Plugin 'L9' | |
" Git plugin not hosted on GitHub | |
"Plugin 'git://git.wincent.com/command-t.git' | |
" git repos on your local machine (i.e. when working on your own plugin) | |
"Plugin 'file:///home/gmarik/path/to/plugin' | |
" The sparkup vim script is in a subdirectory of this repo called vim. | |
" Pass the path to set the runtimepath properly. | |
"Plugin 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" Install L9 and avoid a Naming conflict if you've already installed a | |
" different version somewhere else. | |
"Plugin 'ascenator/L9', {'name': 'newL9'} | |
" All of your Plugins must be added before the call vundle line | |
"Plugin 'myusuf3/numbers.vim' | |
Plugin 'flazz/vim-colorschemes' | |
Plugin 'nlknguyen/papercolor-theme' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'davidhalter/jedi-vim' | |
Plugin 'tmhedberg/matchit' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'vim-scripts/indentpython.vim' | |
Bundle 'tell-k/vim-autopep8' | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'mxw/vim-jsx' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
syntax enable | |
set encoding=utf-8 | |
set showcmd " display incomplete commands | |
filetype plugin indent on " load file type plugins + indentation | |
"" Whitespace | |
set nowrap " don't wrap lines | |
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4) | |
set expandtab " use spaces, not tabs (optional) | |
set backspace=indent,eol,start " backspace through everything in insert mode | |
"" Searching | |
set hlsearch " highlight matches | |
set incsearch " incremental searching | |
set ignorecase " searches are case insensitive... | |
set smartcase " ... unless they contain at least one capital letter | |
set number | |
set t_Co=256 " This is may or may not needed. | |
set background=dark | |
colorscheme PaperColor | |
set laststatus=2 | |
set noshowmode | |
set notimeout | |
let NERDTreeIgnore = ['\.pyc$'] | |
map <c-p> :tabn<CR> | |
vmap <c-p> <ESC>:tabn<CR> | |
map <c-o> :tabp<CR> | |
map <c-n> :tabe<CR> | |
map <c-s> :w<CR> | |
map <c-q> :wq<CR> | |
map <S-Left> :wincmd h | |
map <S-Right> :wincmd l | |
map <S-Down> :wincmd j | |
map <S-Up> :wincmd k | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 0 | |
let g:syntastic_check_on_wq = 0 | |
let g:syntastic_jshint_exec="/usr/local/bin/jshint" | |
let g:syntastic_javascript_checkers = ["jshint"] | |
let g:jsx_ext_required = 0 " Allow JSX in normal JS files | |
autocmd filetype make setlocal noexpandtab | |
let g:airline_theme='minimalist' | |
let g:airline_powerline_fonts = 1 | |
"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 | |
" Minimal Configuration for terraform autocomplete | |
" Begin | |
set nocompatible | |
syntax on | |
filetype plugin indent on | |
call plug#begin('~/.vim/plugged') | |
Plug 'hashivim/vim-terraform' | |
Plug 'vim-syntastic/syntastic' | |
Plug 'juliosueiras/vim-terraform-completion' | |
Plug 'neomake/neomake' | |
Plug 'majutsushi/tagbar' | |
call plug#end() | |
" Syntastic Config | |
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 | |
" (Optional)Remove Info(Preview) window | |
set completeopt-=preview | |
" (Optional)Hide Info(Preview) window after completions | |
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif | |
autocmd InsertLeave * if pumvisible() == 0|pclose|endif | |
" (Optional) Enable terraform plan to be include in filter | |
let g:syntastic_terraform_tffilter_plan = 1 | |
" Minimal Configuration for terraform autocomplete | |
" | |
" End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment