mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
search-and-edit jump to line number
This commit is contained in:
parent
8705f2a96f
commit
2a4a8efa48
@ -15,6 +15,7 @@ set vimfile ( \
|
||||
--preview 'bat --color=always {1} --highlight-line {2}' \
|
||||
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3'
|
||||
)
|
||||
and set line_number (echo $vimfile | tr -d '\r' | cut -d':' -f2)
|
||||
and set vimfile (echo $vimfile | tr -d '\r' | cut -d':' -f1)
|
||||
and commandline -r "vim $vimfile"
|
||||
and commandline -r "vim +$line_number $vimfile"
|
||||
and commandline -f execute
|
||||
|
Loading…
Reference in New Issue
Block a user