diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 88 |
1 files changed, 29 insertions, 59 deletions
@@ -1,3 +1,7 @@ +" pathogen +execute pathogen#infect() + +" settings set nocompatible set nu set noet @@ -18,10 +22,15 @@ set mouse=r set bs=2 set ignorecase set smartcase +set laststatus=2 +set ttyfast +set lazyredraw syntax on +filetype plugin indent on + +" spelling setlocal spell spelllang=en_us set nospell -set laststatus=2 " color if $TERM =~ "^rxvt" || $TERM =~ "256color$" @@ -32,70 +41,31 @@ else 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> +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 nocursorline autocmd InsertLeave * setlocal cursorline -" relative numbers -function! NumberToggle() - if(&relativenumber == 1) - set number - else - set relativenumber - endif -endfunc -nnoremap <C-n> :call NumberToggle()<cr> - -" vundle -filetype off " required! -set rtp+=~/.vim/bundle/vundle/ -call vundle#rc() -Bundle 'gmarik/vundle' -Bundle 'SirVer/ultisnips' -Bundle 'Valloric/YouCompleteMe' -Bundle 'tpope/vim-fugitive' -Bundle 'docunext/closetag.vim' -Bundle 'vimwiki/vimwiki' -Bundle 'scrooloose/nerdcommenter' -Bundle 'scrooloose/nerdtree' -Bundle 'majutsushi/tagbar' -Bundle 'scrooloose/syntastic' -Bundle 'tpope/vim-surround' -Plugin 'tpope/vim-endwise' -Plugin 'vim-ruby/vim-ruby' -Plugin 'bling/vim-airline' -filetype plugin indent on " required! - -" UltiSnips -let g:UltiSnipsExpandTrigger="<c-j>" -let g:UltiSnipsJumpForwardTrigger="<c-i>" -let g:UltiSnipsJumpBackwardTrigger="<c-o>" - -" syntastic -let g:syntastic_auto_loc_list=1 -let g:syntastic_enable_signs=1 - " airline -let g:airline_theme = 'pks256' -let g:airline_powerline_fonts = 1 -"let g:airline_enable_branch = 1 -"let g:airline_enable_syntastic = 1 -"let g:airline_left_sep = '' -"let g:airline_left_alt_sep = '' -"let g:airline_right_sep = '' -"let g:airline_right_alt_sep = '' -"let g:airline_branch_prefix = '' -"let g:airline_readonly_symbol = '' -"let g:airline_linecolumn_prefix = '' +let g:airline_theme = 'pks256' +let g:airline_powerline_fonts = 1 +let g:airline_enable_branch = 0 +let g:airline_symbols = {} +let g:airline_symbols.whitespace = 'Ξ' + +" tagbar +let g:tagbar_compact = 1 " vimwiki -let g:vimwiki_list = [{'path':'~/var/wiki', 'path_html':'~/var/wiki/html/'}] +let g:vimwiki_list = [{'path':'~/var/wiki'}] |