mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 08:45:39 +00:00
cmd O to edit in vim with fzf
This commit is contained in:
parent
2d579893c0
commit
8cca6bfd39
@ -591,7 +591,8 @@ shell:
|
||||
key_bindings:
|
||||
- { key: F, mods: Super, action: ToggleSimpleFullscreen }
|
||||
- { key: A, mods: Super, chars: "\x02" } # CMD-A sends CTRL-B for tmux
|
||||
- { key: O, mods: Super, chars: "\x14" } # CMD-O sends CTRL-T for fzf
|
||||
- { key: D, mods: Super, chars: "\x14" } # CMD-D sends CTRL-T for fzf
|
||||
- { key: O, mods: Super, chars: "edit\x0D" } # CMD-O opens file in vim
|
||||
|
||||
- { key: A, mods: Alt, chars: "\x1ba" }
|
||||
- { key: B, mods: Alt, chars: "\x1bb" }
|
||||
|
5
fish.configlink/functions/edit.fish
Normal file
5
fish.configlink/functions/edit.fish
Normal file
@ -0,0 +1,5 @@
|
||||
function edit --description "Open a file in Vim"
|
||||
set vimfile (fzf)
|
||||
and vim $vimfile
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user