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
|
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
|
## Neovim
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ bind-key ] paste-buffer
|
|||||||
if-shell '[[ -n "$WAYLAND_DISPLAY" ]]' \
|
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 "wl-copy --foreground"' \
|
||||||
'bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -display $DISPLAY -selection clipboard -in"'
|
'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
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
|
|
||||||
# Status Bar (Rosé Pine)
|
# Status Bar (Rosé Pine)
|
||||||
@@ -64,7 +67,7 @@ set -g visual-activity on
|
|||||||
set-option -g repeat-time 0
|
set-option -g repeat-time 0
|
||||||
|
|
||||||
# From tmux-sensible
|
# From tmux-sensible
|
||||||
set -s escape-time 0
|
set -s escape-time 20
|
||||||
set -g history-limit 50000
|
set -g history-limit 50000
|
||||||
set -g display-time 750
|
set -g display-time 750
|
||||||
set -g default-terminal "xterm-256color"
|
set -g default-terminal "xterm-256color"
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ endif
|
|||||||
" enable syntax highlighting
|
" enable syntax highlighting
|
||||||
syntax enable
|
syntax enable
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
colorscheme molokai
|
colorscheme rosepine
|
||||||
highlight Comment ctermfg=blue " make comments readable
|
highlight Comment ctermfg=blue " make comments readable
|
||||||
set autoindent
|
set autoindent
|
||||||
set autoread " reload files when changed on disk, i.e. via `git checkout`
|
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 'tpope/vim-sensible'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'wlangstroth/vim-racket'
|
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;3C' forward-word # Alt+Right
|
||||||
bindkey '\e[1;3D' backward-word # Alt+Left
|
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
|
# Completion
|
||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
if [[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user