Skip to content

Instantly share code, notes, and snippets.

@OBdA
Last active December 14, 2015 09:18
Show Gist options
  • Save OBdA/5063668 to your computer and use it in GitHub Desktop.
Save OBdA/5063668 to your computer and use it in GitHub Desktop.
Practical VIM resources
" Enable file configuration, eg. "# vim: ts=4"
set modeline
" Set statusline and enable it permanently
" Entry format (see :help statusline): %-0{minwid}.{maxwid}{item}
set statusline=%<%f%h%m%r%=%b\ 0x%B\ \ %l,%c%V\ %P
set laststatus=2
" create backup file
set backup
" Macros
"map <F2> a<C-R>=strftime("%Y-%m-%d %H:%M ")
""
"" Abkürzungen (see http://www.vmunix.com/vim/vimrc.forall)
""
" For 'taskopen' (see git://github.com/ValiValpas/taskopen.git)
set ignorecase
set smartcase
iab Qts <C-R>=strftime("%Y-%m-%d %H:%M")<CR>
map ,log /^== log/<CR>oQts
"EOF
# Python
# vim: fileencoding=utf-8 tabstop=4 expandtab shiftwidth=4
# vim:syntax=python:sw=4:ts=4:expandtab (Rico Schiekel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment