mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
# Edit line in vim from insert & normal mode ctrl+e
This commit is contained in:
parent
dae47c7aeb
commit
e4787f3194
@ -1,7 +1,7 @@
|
|||||||
# Luke's config for the Zoomer Shell
|
# Luke's config for the Zoomer Shell
|
||||||
|
|
||||||
# Enable colors and change prompt:
|
# Enable colors and change prompt:
|
||||||
autoload -U colors && colors # Load colors
|
autoload -U colors; colors # Load colors
|
||||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
||||||
setopt autocd # Automatically cd into typed directory.
|
setopt autocd # Automatically cd into typed directory.
|
||||||
stty stop undef # Disable ctrl-s to freeze terminal.
|
stty stop undef # Disable ctrl-s to freeze terminal.
|
||||||
@ -75,8 +75,9 @@ bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
|
|||||||
bindkey '^[[P' delete-char
|
bindkey '^[[P' delete-char
|
||||||
|
|
||||||
# Edit line in vim with ctrl-e:
|
# Edit line in vim with ctrl-e:
|
||||||
autoload edit-command-line; zle -N edit-command-line
|
autoload -U edit-command-line; zle -N edit-command-line; bindkey '^e' edit-command-line
|
||||||
bindkey '^e' edit-command-line
|
# Edit line in vim from normal mode:
|
||||||
|
autoload -U edit-command-line; zle -N edit-command-line; bindkey -M vicmd "^e" edit-command-line
|
||||||
|
|
||||||
# Load syntax highlighting; should be last.
|
# Load syntax highlighting; should be last.
|
||||||
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user