Is it possible to install vim for a user? [duplicate]
I have a SSH Login to a dev computer (used for hosting PHP and Python files). It has vim installed, but a stripped down version of it - it has syntax
and whole lot of other stuff disabled .
So, my question is - can I install my own "local" vim without a superuser account?
- Download Vim
- Change the prefix:
- When compiling, use the option
--prefix=/home/myaccount
(or whatever you want), or - Edit the
prefix
option insrc/makefile
to something like/home/myaccount
or just$(HOME)
(thanks Heptite!)
- When compiling, use the option
- When you run
make install
, it will install the files using the prefix you specified (e.g. binaries will be installed to/home/myaccount/bin
) - Change your
prefix
to include/home/myaccount/bin
in.bash_profile
or.profile
. - Success!!
Maybe copying a binary to the server and chmoding it to executable?
Perhaps you should contect your sysadmin or host to see if they can enable these features for you.