configfiles

All my config files for making a linux box friendlier
git clone git@git.hellocld.com:/srv/git/configfiles
Log | Files | Refs | README

commit 059148170849cfc08b963068aeee1f0c4670fc29
parent 2541800d5b6a8919542cc1e93c4e060906fdbb47
Author: Chris Langford <chris@hellocld.com>
Date:   Thu, 31 Jan 2019 11:23:56 -0500

Added vim stuff

Diffstat:
MREADME.md | 2++
Avim/.vimrc | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -16,3 +16,5 @@ Best way to set these up and ensure your local config is up to date with the rep ### URxvt ~/.Xdefaults +### VIm +~/.vimrc diff --git a/vim/.vimrc b/vim/.vimrc @@ -0,0 +1,71 @@ +set nocompatible " required +filetype off " required + +" Python formatting goodness +au BufNewFile,BufRead *.py + \ set tabstop=4 | + \ set softtabstop=4 | + \ set shiftwidth=4 | + \ set textwidth=79 | + \ set expandtab | + \ set autoindent | + \ set fileformat=unix + +" Flag unnecessary whitespace - BROKEN +" au BufNewFile,BufRead *.py, *.pyw, *.c, *.h match BadWhitespace /\s\+$/ + +" UTF-8 support +set encoding=utf-8 + +" Set Vundle runtime path and init +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" Vundle gonna manage Vundle +Plugin 'gmarik/Vundle.vim' + +" Mah plugins +" vvvvvvvvv + +Plugin 'tmhedberg/SimpylFold' " Code folding +Plugin 'vim-scripts/indentpython.vim' " Python indentation +Bundle 'Valloric/YouCompleteMe' +Plugin 'vim-syntastic/syntastic' +Plugin 'nvie/vim-flake8' +Plugin 'jnurmine/Zenburn' " Zenburn theme +Plugin 'altercation/vim-colors-solarized' "Altercation theme +Plugin 'scrooloose/nerdtree' " File browser-ish +Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim'} + +" ^^^^^^^^^ + +call vundle#end() " required +filetype plugin indent on " required + +" YouCompleteMe config +let g:ycm_autoclose_preview_window_after_completion=1 +map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR> + +" Python virtualenv support +python3 << EOF +import os +import sys +if 'VIRTUAL_ENV' in os.environ: + project_base_dir = os.environ['VIRTUAL_ENV'] + activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') + execfile(activate_this, dict(__file__=activate_this)) +EOF + +" Pretty python +let python_highlight_all=1 +syntax on + +" Color scheme based on GUI +if has('gui_running') + set background=dark + colorscheme solarized +else + colorscheme zenburn +endif + +set nu