diff --git a/.vimrc b/.vimrc index 19a9916..39b3945 100644 --- a/.vimrc +++ b/.vimrc @@ -209,11 +209,28 @@ if has("autocmd") filetype plugin indent on endif +" Mac-specific stuffs +if has('macunix') + " Hacks for MacPorts Bash to actually work. + function! Terminal() + execute 'ter bash --rcfile /etc/bashrc -i' + endfunction + function! VertTerminal() + execute 'vert ter bash --rcfile /etc/bashrc -i' + endfunction +else + function! Terminal() + execute 'ter' + endfunction + function! VertTerminal() + execute 'vert ter' + endfunction +endif " Super special mappings -" map :w!:!perl % -" map :w!:!python % -" map :w!:!bash % -map :!git blame % +map :call Terminal() +map :call VertTerminal() +map :!git grep -n '' $(git rev-parse --show-toplevel) +map :!git blame % map :w!:!xelatex % map :w!:!md-previewer % map :mksession!