You are not logged in.
when opening a text file with vim using dolphin, the file path gets cut off after the first space. so instead of opening "~/new folder/file.txt" vim will instead open "~/new"
how do i fix this?
Last edited by randomiranda (2025-05-31 14:40:58)
Offline
in some config you seem to have overwriten the default
vim "$*"to something without quotes
vim $*causing vim to fail
Offline
Is this vim specific?
I'd assume that dolphin uses the g|vim.desktop service and that likely via xdg-open - and it seems odd that %F isn't properly escaped, let alone only for vim.
… therefore:
type -a vim gvimOnline
so i ended up reinstalling vim and now the thing doesn't open at all with dolphin. works with thunar though, but i want it to work with dolphin
here's output for that type command
vim is /usr/bin/vim
bash: type: gvim: not foundLast edited by randomiranda (2025-05-30 14:35:23)
Offline
Is this vim specific?
Since you rely on vim running in a TE, what is your TE (konsole or did you change that) and did you attempt to change that in any way shape or form?
And what DE is this? Plasma?
Online
i'm on kde plasma with xfce4-terminal. i changed the default terminal to xfce4 in the kdeglobals file
Offline
i changed the default terminal to xfce4 in the kdeglobals file
And what happens if you reset that to the default?
Is this plasma on X11 or on wayland?
Online
i'm on x11. konsole opens vim correctly when changing it to default but i don't want to use konsole
Offline
so turns out the reason why it isn't starting is because the automatically generated service file is written wrong as this is the line used to execute the command
ExecStart="/usr/bin/xfce4-terminal" "-e" "/usr/bin/vim" "/home/user/file"it gives the error
xfce4-terminal[29756]: xfce4-terminal: Unknown option "/home/user/file"still not sure how to remedy this
Last edited by randomiranda (2025-05-31 13:44:35)
Offline
well, i did it
made a new vim.desktop file in ~/.local/share/applications with this in it
[Desktop Entry]
Name=Vim
Icon=gvim
Exec=xfce4-terminal -e "vim '%F'"
MimeType=text/x-tex;text/x-pascal;text/x-moc;text/x-makefile;text/x-java;text/x-csrc;text/x-csrc;text/x-chdr;text/x-c++src;text/x-c++hdr;text/tcl;text/plain;application/x-shellscript;Offline