You are not logged in.
Pages: 1
I want to run console vim with gui support so that this plugin will be supported. The current vim package is complied without gui support. Gui support is in a seperate "gvim" package.
Is there a elegant way to run console vim with gui support if I have both packages installed?
Two ways I've thought about but ultimately discarded are:
1. Alias "vim" to "gvim -v", which runs gvim in the console. This works under most normal circumstances, but not under others. First, if running vim through sudo, my plugins and vimrc are loaded, but as the shell is different, the alias doesn't apply. Second, as vi is vim, running vi invokes this plugin, but vi calls vim, which doesn't have gui support, so the plugin fails.
2. Fool with the /usr/bin/vim file. Admittedly i haven't tried this, but obvious problems I see are when the vim package is updated. What happens then?
Is there a more elegant way?
:wq
Offline
Hi,
Why you want to alias vim to gvim -v?, why not just run vim, and gvim separately?
regards,
Guillermo.
Offline
I want to run vim using a plugin that requires vim to be built with gui support. The way arch's packages are set up, /usr/bin/vim is owned by the "vim" package, which is compiled without gui support.
The "gvim" package is (obviously) built with gui support. Gvim can be run in the console with "gvim -v", which would give me a console vim with gui support. However, I think you'll agree that typing "gvim -v" everytime I mean "vim" is tedious and not a real solution.
:wq
Offline
Just use abs and the pkgbuild of vim to compile vim with gui support. You can find more info on abs and pkgbuild on the wiki.
Offline
Pages: 1