Created
September 16, 2015 23:57
-
-
Save armiller/a848b9939ce030aa59f3 to your computer and use it in GitHub Desktop.
vim updated
This file contains hidden or 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 nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'tpope/vim-fugitive' | |
"Plugin 'tpope/vim-endwise' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'scrooloose/nerdcommenter' | |
Plugin 'bling/vim-airline' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'kien/ctrlp.vim' | |
"Plugin 'Raimondi/delimitMate' | |
Plugin 'terryma/vim-multiple-cursors' | |
"Plugin 'ervandew/supertab' | |
"Plugin 'altercation/vim-colors-solarized' | |
Plugin 'fatih/vim-go' | |
Plugin 'elzr/vim-json' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
set ts=2 | |
syntax on | |
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=2 | |
set nowritebackup | |
set nowrap | |
set ignorecase | |
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 ~/.vim/vimrc<CR> | |
"nnoremap <Leader>R :source ~/.vim/vimrc<CR>:source ~/.vim/vimrc<CR> | |
let base16colorspace=256 | |
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> | |
color Tomorrow-Night | |
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> | |
" 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 FileType python setlocal completeopt-=preview | |
autocmd FileType go setlocal ts=4 expandtab! shiftwidth=4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment