From 37d49b4a8bcfccb6f1c287d98b17d85f6541d0b4 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Mon, 14 Jun 2021 18:28:53 +0200 Subject: [PATCH] change zshc to use vim --- configs/.zshrc | 4 ++++ configs/init.vim | 14 ++++++++++++-- configs/zsh/aliases.sh | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/configs/.zshrc b/configs/.zshrc index a850e9a..19b2fe9 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -80,3 +80,7 @@ export PROMPT_COMMAND='printf "\e]9;9;%s\e\\" "$(wslpath -m "$PWD")"' # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh + +# tabtab source for packages +# uninstall by removing these lines +[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true diff --git a/configs/init.vim b/configs/init.vim index 9e7cc6c..701d309 100644 --- a/configs/init.vim +++ b/configs/init.vim @@ -23,10 +23,18 @@ Plug 'preservim/nerdtree' Plug 'itchyny/lightline.vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'evanleck/vim-svelte', {'branch': 'main'} -Plug 'ctrlpvim/ctrlp.vim' Plug 'mattn/emmet-vim' Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' } +" Svelte support +Plug 'leafOfTree/vim-svelte-plugin' + +" Multi Cursor select +Plug 'mg979/vim-visual-multi', {'branch': 'master'} + +" Plug 'ctrlpvim/ctrlp.vim' +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } + " List ends here. Plugins become visible to Vim after this call. call plug#end() @@ -50,6 +58,8 @@ let g:lightline = { let mapleader = "," nmap rn (coc-rename) +" +nmap :FZF " COC Configs set updatetime=300 @@ -77,4 +87,4 @@ function! s:CloseIfOnlyNerdTreeLeft() endif endfunction -let g:python3_host_prog = expand('~/.pyenv/shims/python3.9') +" let g:python3_host_prog = expand('~/.pyenv/shims/python3.9') diff --git a/configs/zsh/aliases.sh b/configs/zsh/aliases.sh index 9d8644d..53ed4fe 100644 --- a/configs/zsh/aliases.sh +++ b/configs/zsh/aliases.sh @@ -9,7 +9,7 @@ alias yoink="curl" alias pls='sudo -E env "PATH=$PATH"' -alias zshc="vim ~/.dotfiles/configs/.zshrc" +alias zshc="cd ~/.dotfiles && vim configs/.zshrc" alias zshu="source ~/.zshrc" alias nano="nvim"