summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc81
1 files changed, 81 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..21659f0
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,81 @@
+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
+
+" 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>
+
+" 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'
+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
+