Created
March 2, 2017 22:18
-
-
Save badstreff/f69e327ecd202ec11471a1e0b52a3e53 to your computer and use it in GitHub Desktop.
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
| if exists('py2') && has('python') | |
| elseif has('python3') | |
| endif | |
| let g:python2_host_prog = '/usr/local/bin/python' | |
| let g:python3_host_prog = '/usr/local/bin/python3' | |
| set nocompatible " be iMproved, required | |
| filetype off " 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 'scrooloose/nerdtree' | |
| " Plugin 'scrooloose/nerdcommenter' | |
| Plugin 'nvie/vim-flake8' | |
| " Plugin 'tpope/vim-fugitive' | |
| Plugin 'tpope/vim-surround' | |
| Plugin 'bling/vim-airline' | |
| Plugin 'airblade/vim-gitgutter' | |
| Plugin 'Valloric/YouCompleteMe' | |
| Plugin 'hynek/vim-python-pep8-indent' | |
| Plugin 'tmhedberg/simpylfold' | |
| Plugin 'mattn/webapi-vim' | |
| Plugin 'mattn/gist-vim' | |
| " All of your Plugins must be added before the following line | |
| call vundle#end() " required | |
| filetype plugin indent on | |
| " 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 | |
| " map leader to comma | |
| let mapleader="," | |
| " show line number on cursor | |
| set number | |
| " show relative line numbers | |
| " set relativenumber | |
| " Conigure colorscheme | |
| set termguicolors | |
| colorscheme spring-night | |
| " Configure python mode settings | |
| " let g:pymode_options_colorcolumn = 0 | |
| " let python_highlight_all=1 | |
| " let g:pymode_rope_lookup_project = 0 | |
| " let g:pymode_rope = 0 | |
| syntax on | |
| " configure fold settings | |
| let g:SimpylFold_docstring_preview = 1 | |
| let g:SimpylFold_fold_import = 0 | |
| " configure airline | |
| set laststatus=2 | |
| set ttimeoutlen=50 | |
| set guifont=Meslo\ LG\ S\ Regular\ for\ Powerline:h12 | |
| let g:airline#extensions#tabline#enabled = 1 | |
| let g:airline_powerline_fonts = 1 | |
| let g:airline_theme = 'spring_night' | |
| " configure NERDTree | |
| autocmd vimenter * NERDTree | |
| autocmd StdinReadPre * let s:std_in=1 | |
| autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif | |
| map <C-n> :NERDTreeToggle<CR> | |
| autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
| " configure vsplit to be more natural | |
| set splitright | |
| set splitbelow | |
| " split navigations shortcuts | |
| nnoremap <C-J> <C-W><C-J> | |
| nnoremap <C-K> <C-W><C-K> | |
| nnoremap <C-L> <C-W><C-L> | |
| nnoremap <C-H> <C-W><C-H> | |
| " fast buffer switching binds from vim-unimpaired | |
| map [b :bprevious<CR> | |
| map ]b :bnext<CR> | |
| " bind ,r to run the current program | |
| nnoremap <leader>r :!%:p | |
| " bind <space> for folding/unfolding a line | |
| nnoremap <Space> za | |
| " highlight current line | |
| set cursorline | |
| " keep buffers open | |
| set hidden | |
| " configure backspace to work correctly in insert mode | |
| set backspace=indent,eol,start | |
| " enable mousewheel scrolling | |
| set mouse=a | |
| " I HAVE HAD ENOUGH OF THESE F*CKING SWAP FILES | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment