Last active
September 30, 2017 14:42
-
-
Save jkw/c43a9e164767758d8b072fd582a7b592 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 nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
"-[ Plugins ]----------------------------------------------------------------- | |
Plugin 'VundleVim/Vundle.vim' " Vundle | |
Plugin 'tpope/vim-fugitive' " Gitshit | |
Plugin 'tmhedberg/SimpylFold' " Code folding | |
Plugin 'vim-scripts/indentpython.vim' " Fix for auto-indent in python | |
Plugin 'Valloric/YouCompleteMe' " Auto-complete | |
Plugin 'itchyny/lightline.vim' " nicer statusbar | |
Plugin 'yuttie/hydrangea-vim' " color scheme | |
Plugin 'ctrlpvim/ctrlp.vim' " fuzzy finder | |
Plugin 'scrooloose/nerdtree' " file browser | |
call vundle#end() | |
filetype plugin indent on | |
"-[ Settings ]---------------------------------------------------------------- | |
syntax on | |
set rnu | |
set splitbelow | |
set splitright | |
set foldmethod=indent | |
set foldlevel=99 | |
set encoding=utf-8 | |
colorscheme hydrangea | |
NERDtree | |
let g:SimpylFold_docstring_preview=1 | |
let g:lightline = { | |
\ 'colorscheme': 'hydrangea', | |
\ 'component': { | |
\ 'readonly': '%{&readonly?"":""}', | |
\ }, | |
\ 'separator': { 'left': '', 'right': '' }, | |
\ 'subseparator': { 'left': '', 'right': '' }, | |
\ } | |
"-[ Keybinds ]---------------------------------------------------------------- | |
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> | |
nnoremap <space> za | |
"-[ Scripts ]----------------------------------------------------------------- | |
au BufRead,BufNewFile *.py,*.pyw set expandtab | |
au BufRead,BufNewFile *.py,*.pyw set textwidth=79 | |
au BufRead,BufNewFile *.py,*.pyw set tabstop=4 | |
au BufRead,BufNewFile *.py,*.pyw set softtabstop=4 | |
au BufRead,BufNewFile *.py,*.pyw set shiftwidth=4 | |
au BufRead,BufNewFile *.py,*.pyw set autoindent | |
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/ | |
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /\s\+$/ | |
au BufNewFile *.py,*.pyw set fileformat=unix | |
au BufRead,BufNewFile *.py,*.pyw let b:comment_leader = '#' | |
au BufNewFile,BufRead *.js, *.html, *.css set tabstop=2 softtabstop=2 shiftwidth=2 | |
augroup myvimrc | |
au! | |
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment