refactor to use scwrypts in setup; use scwrypts everywhere

This commit is contained in:
2022-08-16 18:42:57 -06:00
parent 6157bfe8f9
commit 2b4511739c
29 changed files with 425 additions and 560 deletions

View File

@ -9,6 +9,10 @@ nnoremap <C-l> <C-w>l
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
tnoremap <C-l> <C-w>l
tnoremap <C-h> <C-w>h
tnoremap <C-j> <C-w>j
tnoremap <C-k> <C-w>k
" (ctrl + n/p) for buffers
nnoremap <C-n> :n<CR>

41
vim/update Executable file
View File

@ -0,0 +1,41 @@
#!/bin/zsh
source "$HOME/.config/wryn/env.zsh" && LOAD_ZSH_UTILS
#####################################################################
UPDATE() {
local VIM_PATH="$HOME/.local/share/source-packages/vim"
VIM_INSTALL --only-pull || return 1
cd "$VIM_PATH"
__STATUS 'configuring vim'
./configure \
--with-features=huge \
--enable-cscope \
--enable-gtk2-check \
--enable-gtk3-check \
--with-x \
--enable-gui=auto \
--enable-luainterp=yes \
--enable-perlinterp=yes \
--enable-python3interp=yes \
--enable-rubyinterp=yes \
--enable-terminal \
&& __SUCCESS 'finished configuring vim' \
|| __FAIL 3 'failed to configure vim (see above)' \
;
VIM_INSTALL $@ --only-build || __FAIL 2 'vim build failed (try with --clean for make clean)'
}
VIM_INSTALL() {
"$DOTWRYN/zsh/plugins/scwrypts/scwrypts" --env local --no-log \
zsh/git/package/install -- \
--target-url 'https://github.com/vim/vim.git' \
--local-name 'vim' \
--update \
$@
}
#####################################################################
UPDATE $@

View File

@ -9,10 +9,13 @@ Plugin 'VundleVim/Vundle.vim'
" {{{
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'https://github.com/scrooloose/nerdtree.git'
Plugin 'scrooloose/nerdtree'
Plugin 'fatih/vim-go'
Plugin 'https://github.com/Valloric/YouCompleteMe.git'
Plugin 'https://github.com/w0rp/ale'
Plugin 'w0rp/ale'
Plugin 'valloric/youcompleteme', {'oninstall': 'python3 install.py --all', 'onupdate': 'python3 install.py --all'}
Plugin 'rrethy/vim-hexokinase', {'oninstall': 'make hexokinase', 'onupdate': 'make hexokinase'}
" }}}
" ---------------------------------------------------------------------
call vundle#end()