Skip to content

Instantly share code, notes, and snippets.

@mkocikowski
Last active April 18, 2017 21:54
Show Gist options
  • Select an option

  • Save mkocikowski/3e8ce171dcab12ad173f to your computer and use it in GitHub Desktop.

Select an option

Save mkocikowski/3e8ce171dcab12ad173f to your computer and use it in GitHub Desktop.
.vimrc
syntax on
filetype indent plugin on
" wrap text
map <C-\> {gq}
" always display status line
set laststatus=2
" auto change dir to current file
set autochdir
" display file name, line, column
set statusline+=%F\ %l\:%c
" where to look for ctags
" start in the current directory, work your way all the way up to $HOME
set tags=./tags;$HOME
" https://dev.launchpad.net/UltimateVimPythonSetup
" Wrapping and tabs.
set tw=78 ts=4 sw=4 sta et sts=4 ai
" More syntax highlighting.
let python_highlight_all = 1
" Auto completion via ctrl-space (instead of the nasty ctrl-x ctrl-o)
set omnifunc=pythoncomplete#Complete
inoremap <Nul> <C-x><C-o>
" Wrap at 72 chars for comments.
set formatoptions=cq textwidth=72 foldignore= wildignore+=*.py[co]
" Highlight end of line whitespace.
highlight WhitespaceEOL ctermbg=red guibg=red
match WhitespaceEOL /\s\+$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment