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 syntax on setlocal spell spelllang=en_us set nospell set laststatus=2 " color if $TERM =~ "^rxvt" || $TERM =~ "256color$" set t_Co=256 colorscheme pks256 else colorscheme default endif " bindings nmap :tabnew nmap :tabprevious nmap :tabnext map map map map " cursorline autocmd InsertEnter * setlocal nocursorline autocmd InsertLeave * setlocal cursorline " relative numbers function! NumberToggle() if(&relativenumber == 1) set number else set relativenumber endif endfunc nnoremap :call NumberToggle() " 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="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" " 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 = ''