Skip to content

Instantly share code, notes, and snippets.

@armiller
Last active February 10, 2017 05:44
Show Gist options
  • Save armiller/a6dee9c1e855542002b3 to your computer and use it in GitHub Desktop.
Save armiller/a6dee9c1e855542002b3 to your computer and use it in GitHub Desktop.
vim
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
"Plugin 'altercation/vim-colors-solarized'
Plugin 'frankier/neovim-colors-solarized-truecolor-only'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'airblade/vim-gitgutter'
"Plugin 'scrooloose/syntastic'
Plugin 'benekastah/neomake'
"Plugin 'kien/ctrlp.vim'
Plugin 'Raimondi/delimitMate'
Plugin 'terryma/vim-multiple-cursors'
"Plugin 'ervandew/supertab'
"Plugin 'fatih/vim-go'
"Plugin 'elzr/vim-json'
Plugin 'easymotion/vim-easymotion'
call vundle#end() " required
filetype plugin indent on " required
set ts=2
syntax enable
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
set autoindent
set scrolloff=3
set smartindent
set softtabstop=2
set backspace=indent,eol,start
set title
set ruler
set wildmenu
set hidden
set number
let NERDSpaceDelims=1
set laststatus=2
set noswapfile
set linespace=3
set nowritebackup
set nowrap
set ignorecase
set termguicolors
set smartcase
set incsearch
set pastetoggle=<F2>
set guifont=Inconsolata:h14
set runtimepath^=~/.nvim/bundle/ctrlp.vim
set go-=L
set go-=r
let g:airline#extensions#tabline#enabled = 1
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_enable_highlighting = 0
"let g:SuperTabDefaultCompletionType = "context"
let g:jedi#popup_on_dot = 0
let NERDTreeIgnore = ['\.py[oc]$']
let NERDSpaceDelims=1
let g:vim_json_syntax_conceal = 0
let g:go_highlight_space_tab_error = 0
let g:go_highlight_array_whitespace_error = 0
let g:go_highlight_chan_whitespace_error = 0
let g:go_highlight_trailing_whitespace_error = 0
let g:go_fmt_command = "goimports"
map <Leader>n :NERDTreeToggle<CR>
nnoremap <Leader>r :edit ~/.vimrc<CR>
nnoremap <Leader>R :source ~/.vimrc<CR>:source ~/.vimrc<CR>
"let base16colorspace=256
"let g:solarized_contrast="high"
"let g:solarized_visibility="high"
let g:neomake_verbose = 0
"let g:solarized_termcolors=256
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
"nnoremap <silent> <F4> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
nnoremap <c-i> :CtrlPBuffer<CR>
colorscheme solarized
set background=light
filetype plugin indent on
nnoremap <leader>q :bp<cr>:bd #<cr>
nnoremap <C-K> :bnext<CR>
nnoremap <C-J> :bprevious<CR>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
tnoremap <C-L> <C-\><C-n><C-W>l
tnoremap <C-H> <C-\><C-n><C-W>h
" Remove trailing whitespace and empty lines at end of file
augroup whitespace
autocmd!
autocmd BufWritePre * :%s/\s\+$//e
autocmd BufWritePre * :%s/\($\n\s*\)\+\%$//e
augroup END
"autocmd! BufWritePost,BufEnter * Neomake
autocmd FileType python setlocal ts=4 shiftwidth=4
autocmd FileType go setlocal ts=4 expandtab! shiftwidth=4
@armiller
Copy link
Author

armiller commented Oct 6, 2014

  • vim-gitgutter
  • syntastic
  • nerdtree
  • vim-colorschemes
  • ctrlp
  • vim-multiple-cursors
  • vim-ariline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment