Created
March 13, 2019 17:24
-
-
Save maxrp/791f31544060e9ffbee9b0af4f5512fe to your computer and use it in GitHub Desktop.
vimrc for python
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
" install vim-plug plugin manager https://github.com/junegunn/vim-plug | |
call plug#begin('~/.vim/plugged') | |
" Install the syntastic plugin | |
Plug 'scrooloose/syntastic' | |
" to support the syntastic plugin, you need to install a python "checker" | |
" I use `flake8` which can be installed from `pip` | |
" Install Inkpot theme | |
Plug 'ciaranm/inkpot' | |
call plug#end() | |
" http://www.vex.net/~x/python_and_vim.html | |
set tabstop=4 | |
set shiftwidth=4 | |
set smarttab | |
set expandtab | |
set softtabstop=4 | |
set autoindent | |
set secure | |
" Markdown per: http://plasticboy.com/markdown-vim-mode/ | |
augroup mkd | |
autocmd BufRead *.mkd set ai formatoptions=tcroqn2 comments=n:> | |
augroup END | |
autocmd BufNewFile,BufRead *.{txt*} set filetype=markdown | |
" Turn on line numbers | |
set number | |
" Enable filetype detection | |
filetype plugin on | |
" force 256 colors | |
let &t_Co=256 | |
" turn on the inkpot them | |
colorscheme inkpot | |
" use the dark inkpot version | |
set background=dark | |
" a nice bright red line at the 80th col | |
set colorcolumn=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment