Skip to content

Instantly share code, notes, and snippets.

@steiza
Created April 5, 2011 02:27
Show Gist options
  • Save steiza/902918 to your computer and use it in GitHub Desktop.
Save steiza/902918 to your computer and use it in GitHub Desktop.
" 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