diff --git a/gitconfig b/gitconfig index ca61a1a..6ae1881 100644 --- a/gitconfig +++ b/gitconfig @@ -1,11 +1,13 @@ [user] - name = David Tomaschik - email = david@systemoverlord.com + name = David Tomaschik + email = david@systemoverlord.com [push] # Simple is not supported on git < 2.0 #default = simple default = matching [core] - excludesfile = ~/.gitignore + excludesfile = ~/.gitignore [web] browser = chrome +[github] + user = matir diff --git a/vimrc b/vimrc index e8a130c..167ea32 100644 --- a/vimrc +++ b/vimrc @@ -12,20 +12,29 @@ if filereadable(glob("~/.vim/bundle/Vundle.vim/README.md")) Plugin 'mileszs/ack.vim' Plugin 'tpope/vim-unimpaired' Plugin 'scrooloose/syntastic' + Plugin 'mattn/webapi-vim' + Plugin 'mattn/gist-vim' call vundle#end() endif -" Autoindentation +" Whitespace options set autoindent -" Use same indentation style as above file set copyindent -" Proper tabs set tabstop=2 set softtabstop=2 set shiftwidth=2 set expandtab -" Display cursor position +set shiftround +set backspace=indent,eol,start +" Shift-tab to go backwards in insert mode +imap </dev/null + " Search options set incsearch set ignorecase set smartcase +" Optional highlighting +nmap hs :set hlsearch! hlsearch? + +" Toggle paste mode +nmap :set invpaste:set paste? +imap :set invpaste:set paste? " Mediocre Hex editing in vim " Source: http://vim.wikia.com/wiki/Improved_hex_editing +" TODO: move to an include nnoremap :Hexmode command -bar Hexmode call ToggleHex() function ToggleHex() @@ -89,6 +102,12 @@ function ToggleHex() let &modifiable=l:oldmodifiable endfunction +" Options for syntastic +let g:syntastic_enable_signs = 1 +let g:syntastic_auto_lock_list = 2 +" Have F5 run the tests and display errors +nnoremap :SyntasticCheck :Errors + " Include a .vimrc.local if it exists if filereadable(glob("~/.vimrc.local")) source ~/.vimrc.local