diff options
Diffstat (limited to 'vim/.vimrc')
-rw-r--r-- | vim/.vimrc | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..819e89d --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,76 @@ +" pathogen +execute pathogen#infect() + +" settings +set nocompatible +set nu +set noet +set showcmd +set autoindent +set smartindent +"set cursorline +set nocp +set showmatch +set foldmethod=indent +set completeopt=longest,menuone +set tabstop=2 +set shiftwidth=2 +set expandtab +set ruler +set ttyfast +set mouse=r +set bs=2 +set ignorecase +set smartcase +set laststatus=2 +set ttyfast +set lazyredraw +if v:version >= 703 + set cc=80 +endif +syntax on +filetype plugin indent on + +autocmd FileType cpp set complete-=i + +" spelling +setlocal spell spelllang=en_us +set nospell + +" color +if $TERM =~ "^rxvt" || $TERM =~ "256color$" + set t_Co=256 + colorscheme pks256 +else + colorscheme default +endif + +" bindings +nmap <C-t> :tabnew<cr> +nmap <C-a> :tabprevious<cr> +nmap <C-d> :tabnext<cr> +map <up> <nop> +map <down> <nop> +map <left> <nop> +map <right> <nop> +inoremap <C-s> <esc>:w<cr>a +nnoremap <C-s> :w<cr> +nmap <C-b> :TagbarToggle<cr> + +" cursorline +autocmd InsertEnter * setlocal cursorline +autocmd InsertLeave * setlocal nocursorline + +" airline +let g:airline_theme = 'pks256' +let g:airline_powerline_fonts = 1 +let g:airline#extensions#branch#enabled = 1 +let g:airline_symbols = {} +let g:airline_symbols.whitespace = 'Ξ' + +" tagbar +let g:tagbar_compact = 1 + +" vimwiki +let g:vimwiki_list = [{'path':'~/var/wiki'}] + |