Created
July 4, 2010 23:12
-
-
Save k0001/463845 to your computer and use it in GitHub Desktop.
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
autocmd! | |
syntax on | |
set background=dark | |
set showmatch | |
set showtabline=2 | |
set nu | |
set nuw=4 | |
set cursorline | |
set nowrap | |
set modifiable | |
set encoding=utf-8 | |
set ff=unix | |
set nobomb | |
colo peachpuff | |
imap <up> <Nop> | |
imap <down> <Nop> | |
imap <left> <Nop> | |
imap <right> <Nop> | |
imap <insert> <Nop> | |
imap <delete> <Nop> | |
imap <home> <Nop> | |
imap <end> <Nop> | |
imap <PageDown> <Nop> | |
imap <PageUp> <Nop> | |
nmap <up> <Nop> | |
nmap <down> <Nop> | |
nmap <left> <Nop> | |
nmap <right> <Nop> | |
nmap <insert> <Nop> | |
nmap <delete> <Nop> | |
nmap <home> <Nop> | |
nmap <end> <Nop> | |
nmap <PageDown> <Nop> | |
nmap <PageUp> <Nop> | |
" remove trailing whitespace | |
autocmd BufWritePre * :%s/\s\+$//e | |
" tabulation options (4 spaces) | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set smarttab | |
set autoindent | |
set smartindent | |
set textwidth=120 | |
inoremap # X# | |
set list lcs=tab:>-,trail:-,extends:> | |
" current line | |
syntax match CurrentLine /.*\%#.*/ | |
hi link CurrentLine Visual | |
au BufNewFile,BufRead *.c,*.h,*.py,*.cc,*.cpp,*.rst exec 'match Todo /\%>' . &textwidth . 'v.\+/' | |
" python | |
" im :<CR> :<CR><TAB> | |
autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with | |
" omnicpp stuff | |
set nocp | |
filetype plugin on | |
command Oc :!ctags -R -I --c++-kinds=+p --fields=+iaS --extra=+q . | |
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif | |
autocmd InsertLeave * if pumvisible() == 0|pclose|endif | |
set completeopt=menuone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment