source $HOME/.config/wryn/env.vim if isdirectory(expand("$HOME/.vim/bundle/Vundle.vim")) source $WRYNVIMPATH/vundle.vim endif source $WRYNVIMPATH/options.vim source $WRYNVIMPATH/execute.vim source $WRYNVIMPATH/formatting.vim source $WRYNVIMPATH/navigation.vim source $WRYNVIMPATH/color.vim source $WRYNVIMPATH/utility.vim " --------------------------------------------------------------------- " {{{ " to execute macro on q nnoremap @q " \q for `q:` nnoremap q q: " \s previous selection command nnoremap s :'<,'> " \m to set buffer to modifiable nnoremap m :set modifiable " (e)dit / (s)ource vimrc nnoremap ev :tabedit $WRYNVIMRC nnoremap sv :source $MYVIMRC " Q to replace current line/selection with bash execution vnoremap Q !$SHELL nnoremap Q !!$SHELL " move the current line down/up one nnoremap - :move +1 nnoremap _ :move -2 " \j like J, but append current line to the line below nnoremap j ddpkJ " \d insert formatted date below nnoremap d :let @d = system("date '+%A, %B %-d, %Y'")od " \g git fugitive shortcuts nnoremap gb :Git blame " \r = open last REPL (p)ython (n)odejs (c)lisp nnoremap r q:?^echom 'quickrepl' nnoremap rp q:oechom 'quickrepl' \| call ExecuteCommand('bpython', 'split-pane-vertical') nnoremap rn q:oechom 'quickrepl' \| call ExecuteCommand('node', 'split-pane-vertical') nnoremap rc q:oechom 'quickrepl' \| call ExecuteCommand('clisp', 'split-pane-horizontal') nnoremap rs q:oechom 'quickrepl' \| call ExecuteCommand('zsh -l', 'split-pane-vertical') " \t = run last quicktest " t)ype new quicktest " e)dit last quicktest nnoremap t q:?^echom 'quicktest' nnoremap tt q:oechom 'quicktest' \| call ExecuteCommand('')F'i nnoremap te q:?^echom 'quicktest' " ./utility.vim nnoremap w :call Sudowrite() nnoremap x :call MakeFileExecutable(0) nnoremap xx :call MakeFileExecutable(1) " (c)opy / (p)aste from xclip " TODO: learn how to compile vim with x11 compatibility and delete vnoremap c :w !xclip nnoremap v o!!xclip -o nnoremap sc :'<,'>w !xclip " enable/disable true color nnoremap :set invtermguicolors " --- available / rarely used bindings (personal reference) --- " nnoremap " nnoremap " nnoremap " nnoremap z " nnoremap ^ " }}} " ---------------------------------------------------------------------