summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorDaniel Holman <coderdan657@gmail.com>2016-12-05 20:08:13 -0600
committerDaniel Holman <coderdan657@gmail.com>2016-12-05 20:11:50 -0600
commitc70c5c7a97c69133309d48254b1bcda9983b1846 (patch)
tree636f75727b78c1667b37a721a5c7fe5634d5ac79 /.vimrc
Initial commit
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc80
1 files changed, 80 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..10ace5a
--- /dev/null
+++ b/.vimrc
@@ -0,0 +1,80 @@
+set nocompatible
+
+" General
+set autoread
+set hidden
+set showmode
+set showcmd
+set number
+set history=1000
+set gcr=a:blinkon0
+set grepprg="grep -nH $*"
+let g:tex_flavor = "latex"
+set visualbell
+set background=dark
+set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after
+syntax on
+
+" Turn off swap files
+set noswapfile
+set nobackup
+set nowb
+
+" Indentation
+set autoindent
+set smartindent
+set smarttab
+set shiftwidth=8
+set softtabstop=8
+set tabstop=8
+set expandtab
+
+noremap p p=`[<C-o>
+noremap P P=`[<C-o>
+
+filetype plugin on
+filetype indent on
+
+set nowrap
+set linebreak
+
+set splitbelow
+set splitright
+
+" Completion
+set wildmode=list:longest
+set wildmenu
+set wildignore=*.o,*.obj,*~
+set wildignore+=vim/backups
+set wildignore+=*sass-cache*
+set wildignore+=*DS_Store*
+set wildignore+=vendor/cache/**
+set wildignore+=log/**
+set wildignore+=tmp/**
+set wildignore+=*.png,*.jpeg,*.gif
+
+" Scrolling
+set scrolloff=8
+set sidescrolloff=15
+set sidescroll=1
+
+" Key mapping
+no <Up> <Nop>
+no <Down> <Nop>
+no <Left> <Nop>
+no <Right> <Nop>
+ino <Up> <Nop>
+ino <Down> <Nop>
+ino <Left> <Nop>
+ino <Right> <Nop>
+vno <Up> <Nop>
+vno <Down> <Nop>
+vno <Left> <Nop>
+vno <Right> <Nop>
+nnoremap <C-J> <C-W><C-J>
+nnoremap <C-K> <C-W><C-K>
+nnoremap <C-L> <C-W><C-L>
+nnoremap <C-H> <C-W><C-H>
+
+" Email options
+au BufRead /tmp/mutt-* set tw=72