diff --git a/desktop-config.sh b/desktop-config.sh index 43db85a..1c1cbfa 100644 --- a/desktop-config.sh +++ b/desktop-config.sh @@ -43,7 +43,3 @@ sudo bash -c 'cp -r $(pwd)/home/.config ~' sudo bash -c 'cp -r $(pwd)/home/.tmux.conf ~' sudo bash -c 'ln ~/.zsh/zshrc ~/.zshrc' - -# Install Vim Stuff -sudo sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 12ac699..7cf0d20 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -20,7 +20,8 @@ set ttyfast " Speed up scrolling in Vim set fdm=indent " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=200 +set timeout timeoutlen=400 +set ttimeoutlen=0 " Avoid showing message extra message when using completion" set shortmess+=c diff --git a/home/.config/nvim/noplug.vim b/home/.config/nvim/noplug.vim index 1862385..37349c5 100644 --- a/home/.config/nvim/noplug.vim +++ b/home/.config/nvim/noplug.vim @@ -20,7 +20,8 @@ set ttyfast " Speed up scrolling in Vim set fdm=indent " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=200 +set timeout timeoutlen=400 +set ttimeoutlen=0 " Avoid showing message extra message when using completion" set shortmess+=c diff --git a/home/.tmux-server.conf b/home/.tmux-server.conf index f9f7aa6..cd44682 100644 --- a/home/.tmux-server.conf +++ b/home/.tmux-server.conf @@ -81,6 +81,9 @@ bind -T copy-mode-vi y send-keys -X copy-selection # Smart pane switching with awareness of Vim splits. # See: https://github.com/christoomey/vim-tmux-navigator +# send esc to the process instantly! +set-option -s escape-time 10 + is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" diff --git a/home/.tmux.conf b/home/.tmux.conf index a112218..e604436 100644 --- a/home/.tmux.conf +++ b/home/.tmux.conf @@ -84,6 +84,9 @@ bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy" # Smart pane switching with awareness of Vim splits. # See: https://github.com/christoomey/vim-tmux-navigator +# send esc to the process instantly! +set-option -s escape-time 10 + is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" diff --git a/home/.vimrc b/home/.vimrc index a404819..81e37fa 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -20,7 +20,8 @@ set ttyfast " Speed up scrolling in Vim set fdm=indent " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=200 +set timeout timeoutlen=400 +set ttimeoutlen=0 " Avoid showing message extra message when using completion" set shortmess+=c