source $HOME/.config/wryn/env/env.vim if isdirectory(expand("$HOME/.vim/bundle/Vundle.vim")) source $WRYNVIMPATH/vundle.vim endif source $WRYNVIMPATH/options.vim source $WRYNVIMPATH/testing.vim source $WRYNVIMPATH/formatting.vim source $WRYNVIMPATH/abbreviations.vim source $WRYNVIMPATH/navigation.vim source $WRYNVIMPATH/color.vim " -- 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 ^ " }}}