From 3df87f38124e20972bb693b11e5404cceaa98eb7 Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 19 Dec 2013 12:58:13 -0700 Subject: add vimrc --- vim/vimrc | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 vim/vimrc (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc new file mode 100644 index 0000000..edc111f --- /dev/null +++ b/vim/vimrc @@ -0,0 +1,57 @@ +set nocompatible " disable vi settings + +set noerrorbells " don't play a noise in macvim +set vb " flash the screen +set number " display line numbers +set bs=2 " allow backspacing over everything in insert mode +set ai " always set autoindenting on +set nobackup " don't keep a backup file +set viminfo='20,\"50 " read/write a .viminfo file, don't store more + " than 50 lines of registers +set history=50 " keep 50 lines of command line history +set ruler " show the cursor position all the time +set nowrap " make sure that long lines don't wrap +set laststatus=2 " Make sure the status line is always displayed +filetype plugin on + +" Switch syntax highlighting on +syntax enable + +" Display bufnr:filetype (dos,unix,mac) in status line +set statusline=%<%n:%f%h%m%r%=%{&ff}\ %l,%c%V\ %P +" +" Hide the mouse pointer while typing +" The window with the mouse pointer does not automatically become the +" active window +" Right mouse button extends selections +" Turn on mouse support +set mousehide +set nomousefocus +set mousemodel=extend +set mouse=a +set colorcolumn=80 + +" Show paren matches for 5 tenths of a second +set showmatch +set matchtime=5 + +" Setup tabs for 4 spaces +set tabstop=4 +set shiftwidth=4 +set softtabstop=4 +set textwidth=78 +set smarttab +set shiftround +set expandtab + +if $TERM_PROGRAM =~ 'APPLE' + colorscheme synic +else + set t_Co=256 + colorscheme synic +endif + +set runtimepath+=~/.vim/vim-addon-manager +call vam#ActivateAddons([ + \ 'github:jamessan/vim-gnupg']) + " \ 'github:scrooloose/nerdtree', -- cgit v1.2.1