From a3f7b6f27f677bf7b025e5ea0d2709865402d43b Mon Sep 17 00:00:00 2001 From: Eamonn Travers Date: Wed, 17 Jun 2020 12:26:46 +0200 Subject: [PATCH] Add vim config --- vimrc | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 vimrc diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..46fdef1 --- /dev/null +++ b/vimrc @@ -0,0 +1,87 @@ +set nocompatible " required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" let Vundle manage Vundle, required +Plugin 'gmarik/Vundle.vim' + +" all plugins +Plugin 'vim-scripts/indentpython.vim' +Plugin 'scrooloose/nerdtree' +Plugin 'vim-syntastic/syntastic' +Plugin 'nvie/vim-flake8' +Plugin 'jnurmine/Zenburn' +Plugin 'tpope/vim-fugitive' +Plugin 'morhetz/gruvbox' +Bundle 'Valloric/YouCompleteMe' + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required + +" Python +" Pep8 +au BufNewFile,BufRead *.py + \ set tabstop=4 | + \ set softtabstop=4 | + \ set shiftwidth=4 | + \ set textwidth=79 | + \ set colorcolumn=+1 | + \ set expandtab | + \ set autoindent | + \ set fileformat=unix | + \ highlight ColorColumn ctermbg=lightgrey + +let python_highlight_all=1 + +" reStructuredText +au BufRead *.rst + \ set textwidth=79 | + \ set colorcolumn=+1 | + \ set fileformat=unix | + \ highlight ColorColumn ctermbg=lightgrey + +",*.pp,*.epp +au BufRead *.yaml,*.yml + \ set tabstop=2 | + \ set softtabstop=2 | + \ set shiftwidth=2 | + \ set textwidth=79 | + \ set colorcolumn=+1 | + \ set expandtab | + \ set autoindent | + \ set fileformat=unix | + \ highlight ColorColumn ctermbg=lightgrey + +"" Whitespace Highlighting +au BufRead,BufNewFile *.py,*.pyw,*.sh,*.html,*.sh,*.pp match ErrorMsg /\s\+$/ + +" ignore files in NERDTree +let NERDTreeIgnore=['\.pyc$', '\~$'] + +set nu! +set tabstop=2 +set expandtab +set encoding=utf-8 +syntax on +colorscheme zenburn +" colorscheme gruvbox +" colorscheme desert + + +map :set hlsearch +map :set nohlsearch +map :NERDTree + +" split navigations +nnoremap +nnoremap +nnoremap +nnoremap + +" split zoom +nnoremap Zz _\|\| +nnoremap Zo =