Skip to content

Instantly share code, notes, and snippets.

@maxrp
Created March 13, 2019 17:24
Show Gist options
  • Save maxrp/791f31544060e9ffbee9b0af4f5512fe to your computer and use it in GitHub Desktop.
Save maxrp/791f31544060e9ffbee9b0af4f5512fe to your computer and use it in GitHub Desktop.
vimrc for python
" 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