|
| 1 | +filetype plugin indent on " detect file plugin+indent |
| 2 | +syntax on " syntax highlighting |
| 3 | + |
| 4 | +set cursorline " hilight cursor line |
| 5 | +set cursorcolumn |
| 6 | +set more " ---more--- like less |
| 7 | +set number " line numbers |
| 8 | +set scrolloff=3 " lines above/below cursor |
| 9 | +set showcmd " show cmds being typed |
| 10 | +set title " window title |
| 11 | +set vb t_vb= " disable beep and flashing |
| 12 | +set wildmenu " better auto complete |
| 13 | +set wildmode=longest,list " bash-like auto complete |
| 14 | +set hidden " buffer change, more undo |
| 15 | +set history=1000 " default 20 |
| 16 | +set iskeyword+=_,$,@,%,# " not word dividers |
| 17 | +set laststatus=2 " always show statusline |
| 18 | +set linebreak " don't cut words on wrap |
| 19 | +set listchars=tab:>\ " > to highlight <tab> |
| 20 | +set list " displaying listchars |
| 21 | +set mouse= " disable mouse |
| 22 | +set noshowmode " hide mode, got powerline |
| 23 | +set noexrc " don't use other .*rc(s) |
| 24 | +set nostartofline " keep cursor column pos |
| 25 | +set nowrap " don't wrap lines |
| 26 | +set numberwidth=5 " 99999 lines |
| 27 | +set shortmess+=I " disable startup message |
| 28 | +set splitbelow " splits go below w/focus |
| 29 | +set splitright " vsplits go right w/focus |
| 30 | +set autoread " refresh if changed |
| 31 | +set backup " backup curr file |
| 32 | +set confirm " confirm changed files |
| 33 | +set noautowrite " never autowrite |
| 34 | +set updatecount=50 " update swp after 50chars |
| 35 | +set autoindent " preserve indentation |
| 36 | +set backspace=indent,eol,start " smart backspace |
| 37 | +set cinkeys-=0# " don't force # indentation |
| 38 | +set expandtab " no real tabs |
| 39 | +set nrformats+=alpha " incr/decr letters C-a/-x |
| 40 | +set shiftround " be clever with tabs |
| 41 | +set shiftwidth=4 " default 8 |
| 42 | +set smartcase " igncase,except capitals |
| 43 | +set smarttab " tab to 0,4,8 etc. |
| 44 | +set softtabstop=4 " "tab" feels like <tab> |
| 45 | +set tabstop=4 " replace <TAB> w/4 spaces |
| 46 | +""" Persistent undo. Requires Vim 7.3 {{{ |
| 47 | + if has('persistent_undo') && exists("&undodir") |
| 48 | + set undodir=$HOME/.vim/undo/ " where to store undofiles |
| 49 | + set undofile " enable undofile |
| 50 | + set undolevels=500 " max undos stored |
| 51 | + set undoreload=10000 " buffer stored undos |
| 52 | + endif |
| 53 | +""" }}} |
| 54 | + |
| 55 | +set t_Co=256 " 256-colors |
| 56 | +colors jellybeans " select colorscheme |
| 57 | +let g:jellybeans_overrides = { |
| 58 | +\ 'background': { '256ctermbg': 'none' }, |
| 59 | +\} |
| 60 | +set background=dark " we're using a dark bg |
| 61 | + |
| 62 | +let mapleader="," |
| 63 | +map <leader>. <Plug>NERDCommenterToggle |
0 commit comments