dotfiles

andersuno dotfiles
Log | Files | Refs

commit 20ef27417a4d005bc10b7c1ddba0b67f25dae72f
parent 306df8aa86c89695c150eb8de177ee88789de5fc
Author: anders <anders@debian-acer.andersuno.nu>
Date:   Wed, 27 Feb 2019 22:08:22 +0100

	modified:   .vimrc

Diffstat:
M.vimrc | 50++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+), 0 deletions(-)

diff --git a/.vimrc b/.vimrc @@ -1,6 +1,56 @@ +set nocompatible +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +Plugin 'gmarik/Vundle.vim' +Plugin 'vim-scripts/indentpython.vim' +Plugin 'vim-syntastic/syntastic' +Plugin 'nvie/vim-flake8' +"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} +"plugins here----- +call vundle#end() +filetype plugin indent on +let python_highlight_all=1 syntax on set number +set relativenumber set mouse= set ttymouse= set hlsearch +:command Q q +:command W w +:command WQ wq + +" Enable folding +set foldmethod=indent +set foldlevel=99 + +" Enable folding with the spacebar +nnoremap <space> za + +" Python PEP 8 +"au BufNewFile,BufRead *.py +au Filetype python + \setlocal tabstop=4 + \setlocal softtabstop=4 + \setlocal shiftwidth=4 + \setlocal textwidth=79 + \setlocal expandtab + \setlocal autoindent + \setlocal fileformat=unix + +" Other filespecific settings +au BufNewFile,BufRead *.js, *.html, *.css + \set tabstop=2 + \set softtabstop=2 + \set shiftwidth=2 + +" Mark bad whitespace +highlight ExtraWhitespace ctermbg=red guibg=red +" Trailing whitespace +au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match ExtraWhitespace /\s\+$/ +" Show tabs that are not at the start of a line: +match ExtraWhitespace /[^\t]\zs\t\+/ + +