commit 3fcdbfe90ca9e7857282a4cec54d00bca69c07cb
parent ab8273f3630d32b18b2044ede29f45820290a9aa
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\+/
+
+