Last active
December 14, 2015 09:18
-
-
Save OBdA/5063668 to your computer and use it in GitHub Desktop.
Practical VIM resources
This file contains hidden or 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
| " 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 |
This file contains hidden or 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
| # 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