" set the following environment variables: " $RC_DIR $VIM_DIR $WRYNVIMRC $BASHRC $ZSHRC $WEBBROWSER source $HOME/.wryn/env/env.vim if isdirectory(expand("$HOME/.vim/bundle/Vundle.vim")) source $VIM_DIR/vundle.vim endif source $VIM_DIR/options.vim source $VIM_DIR/testing.vim source $VIM_DIR/formatting.vim source $VIM_DIR/abbreviations.vim source $VIM_DIR/navigation.vim source $VIM_DIR/color.vim let mapleader = "\\" "let localmapleader = ',' augroup personal_bindings " {{{ " to execute macro on q nnoremap @q " Q to replace current line/selection with bash execution vnoremap Q !$SHELL nnoremap Q !!$SHELL " \q for `q:` nnoremap q q: " \s previous selection command nnoremap s :'<,'> " \f for fold nnoremap f z nnoremap f z " \j for J, but append current line to the line below nnoremap j ddpkJ " move the current line one below where it is nnoremap - :m +1 nnoremap _ :m -2 " \t for rerun last 'vimtest' command: nnoremap t q:?vimtest " \b for git blame nnoremap b :set termwinsize=15*0:execute "terminal git blame -L " .eval(line(".")-5) . ",+10 %":set termwinsize& " \d to insert formatted date before/after cursor nnoremap di :let @d = system("date '+%A, %B %-d, %Y'")id nnoremap da :let @d = system("date '+%A, %B %-d, %Y'")a d " - toggle casing for current word inoremap viw~ea " \c \v to copy/paste from xclip " @TODO: learn how to freaking compile vim with x11 compatibility so these " aren't necessary :) vnoremap c :w !xclip nnoremap v o!!xclip -o nnoremap sc :'<,'>w !xclip " ------- available / rarely used bindings ------- " nnoremap " nnoremap " nnoremap " nnoremap z " nnoremap ^ " }}} augroup end