if empty($DOTWRYN) let $DOTWRYN=expand("$HOME/.wryn") endif let $VIMRC=expand("$DOTWRYN/vim/rc.vim") for vimrcfile in split(trim(system("find " . expand("$DOTWRYN/vim/rc.d") . " -type f | sort -u")), '\n') execute 'source ' . vimrcfile endfor " ------------------------------------------------------------------- " --- generic bindings (easy reference) ----------------------------- " ------------------------------------------------------------------- " to execute macro on q nnoremap @q " \q for `q:` nnoremap q q: " \s previous selection command nnoremap s :'<,'> " Q to replace current line(s) with shell execution vnoremap Q !$SHELL nnoremap Q !!$SHELL " \j like J, but append current line to the line below nnoremap j ddpkJ " move the current line down/up one nnoremap - :move +1 nnoremap _ :move -2 " \d insert formatted date below nnoremap d :let @d = system("date '+%A, %B %-d, %Y'")od " \m to set buffer to modifiable nnoremap m :set modifiable " (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 ^