version 3 refactor

This commit is contained in:
Wryn Wagner
2021-02-24 17:38:02 -07:00
parent 35fc078b0e
commit 67e9710ab0
29 changed files with 187 additions and 180 deletions

View File

@ -63,7 +63,7 @@ augroup end
" -- Format Override Layers ------------------------------ {{{
source $VIM_DIR/rentdynamics.vim
source $WRYNVIMPATH/rentdynamics.vim
" }}}

View File

@ -14,7 +14,7 @@ set matchtime=0 " -- but don't jump to it.
set t_ZH= t_ZR= " italic start / end characters
set spellfile=$VIM_DIR/en.utf-8.add spelllang=en
set spellfile=$WRYNVIMPATH/en.utf-8.add spelllang=en
set encoding=utf-8

View File

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