Fix minor issues with vim and zsh
This commit is contained in:
@@ -20,7 +20,14 @@ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
|
||||
stow git zsh nvim vim tmux jj kitty
|
||||
```
|
||||
|
||||
> Note: on Debian, zsh-autosuggestions path differs — update the `source` line in `.zshrc` if needed.
|
||||
## vim
|
||||
|
||||
Install [vim-plug](https://github.com/junegunn/vim-plug):
|
||||
|
||||
```shell
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
```
|
||||
|
||||
## Neovim
|
||||
|
||||
|
||||
@@ -46,6 +46,9 @@ bind-key ] paste-buffer
|
||||
if-shell '[[ -n "$WAYLAND_DISPLAY" ]]' \
|
||||
'bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy --foreground"' \
|
||||
'bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -display $DISPLAY -selection clipboard -in"'
|
||||
if-shell '[[ -n "$WAYLAND_DISPLAY" ]]' \
|
||||
'bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-copy --foreground"' \
|
||||
'bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -display $DISPLAY -selection clipboard -in"'
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
|
||||
# Status Bar (Rosé Pine)
|
||||
@@ -64,7 +67,7 @@ set -g visual-activity on
|
||||
set-option -g repeat-time 0
|
||||
|
||||
# From tmux-sensible
|
||||
set -s escape-time 0
|
||||
set -s escape-time 20
|
||||
set -g history-limit 50000
|
||||
set -g display-time 750
|
||||
set -g default-terminal "xterm-256color"
|
||||
|
||||
@@ -29,7 +29,7 @@ endif
|
||||
" enable syntax highlighting
|
||||
syntax enable
|
||||
filetype plugin indent on
|
||||
colorscheme molokai
|
||||
colorscheme rosepine
|
||||
highlight Comment ctermfg=blue " make comments readable
|
||||
set autoindent
|
||||
set autoread " reload files when changed on disk, i.e. via `git checkout`
|
||||
|
||||
@@ -12,3 +12,4 @@ Plug 'tpope/vim-fugitive'
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'wlangstroth/vim-racket'
|
||||
Plug 'rose-pine/vim'
|
||||
|
||||
@@ -17,6 +17,10 @@ bindkey '\e[3~' delete-char # Delete key
|
||||
bindkey '\e[1;3C' forward-word # Alt+Right
|
||||
bindkey '\e[1;3D' backward-word # Alt+Left
|
||||
|
||||
# Consume focus event sequences from tmux so they don't leak as input
|
||||
bindkey '\e[I' redisplay # focus gained
|
||||
bindkey '\e[O' redisplay # focus lost
|
||||
|
||||
# Completion
|
||||
autoload -Uz compinit && compinit
|
||||
if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||
|
||||
Reference in New Issue
Block a user