Created
April 5, 2011 02:27
-
-
Save steiza/902918 to your computer and use it in GitHub Desktop.
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
| " General config | |
| set nocompatible | |
| set nowrap | |
| set listchars=tab:>-,trail:- | |
| set list | |
| set showmatch | |
| set autowrite | |
| filetype plugin indent on | |
| syntax on | |
| set ruler | |
| "make it so that jk, instead of navigating across actual lines, allows you | |
| "to scroll up/down visual lines... so if you have a really long wrapped line, | |
| "you can actually scroll down through it | |
| nnoremap <Down> gj | |
| nnoremap <Up> gk | |
| " Customizing indentation | |
| set shiftwidth=4 | |
| set tabstop=4 | |
| set expandtab | |
| set shiftround | |
| set smarttab | |
| filetype indent on | |
| " C-specific configuration | |
| set cino=+0.5s | |
| autocmd FileType c,cpp set cindent | |
| " Syntax highlighting for non-standard files | |
| autocmd BufNewFile,BufRead *.thrift set filetype=c | |
| " viki config | |
| au BufNewFile,BufRead *.viki :VikiMinorMode | |
| let g:vikiUseParentSuffix = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment