On 21/07/10 20:35, Dominique Pellé wrote:
duffman wrote:
Many thanks for your replies! I am working at a big corporation and
the IT-powers that be have access to most root level modifications. I
have read/write permissions on my home directory (/home/myName).
Could I install the vim editor under my directory? If so, any pointers
on what to do? Once downloaded is there a script I can run that'd
perform the installation?
Is this what I should download?
http://www.vim.org/download.php#unix
Thanks again for your help.
Hi
You can certainly install vim without root access. I'm in the same
exact same situation at work. Here is how you can install Vim from
sources:
# Create a directory where to put your installed software
$ mkdir ~/opt
# Create a directory where to put source codes which you download
$ mkdir ~/sb
$ cd ~/sb
# Download sources. I recommend using Mercurial, which you may
# have to install if not available, again, no need to be root.
$ hg clone https://vim.googlecode.com/hg/ vim
$ cd vim
# Configure Vim. You need to pass the --prefix option since
# you don't have root access (or else it would try to install Vim
# in /usr/local/... where you don't have permission)
$ ./configure --with-features=huge --prefix=$HOME/opt
# Compile Vim
$ make
# Install Vim (this will install Vim files into $HOME/opt/...)
$ make install
Then edit your ~/.bashrc (or ~/.cshrc, depending on your shell) to add
$HOME/opt/bin into your PATH.
That's it. You may try "./configure --help" to see what other
options are available when running the configure script.
The way to install Vim from sources is the same as for most
other softwares on Unix:
Another solution is to ask root to install Vim. A good
Unix administrator should always install Vim :-)
PS1: please bottom post when posting to this mailing list
PS2: this question was more suitable for the vim_use mailing list
(vim_dev is for the development of Vim).
-- Dominique
See also:
http://vim.wikia.com/wiki/Getting_the_Vim_source_with_Mercurial
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm
and in order to install Vim into subdirectories of $HOME/opt/ as above
by using the method described in compunix.htm you'll need to include the
following as part of the configuration-setting script to be sourced:
export CONF_ARGS="--prefix=$HOME/opt"
and make sure (with this example) that $HOME/opt/bin exists and is in
your $PATH.
If Dominique hadn't recommended something else, I might have just
suggested "--prefix=$HOME" which would have put:
the Vim executable at $HOME/bin/vim
the runtime files at $HOME/share/vim/vim72 (Vim 7.2)
or at $HOME/share/vim/vim73b (Vim 7.3b)
and searched user scripts under $HOME/share/vim/vimfiles/
and under $HOME/.vim/
With $HOME/opt intead, $HOME/.vim stays there and all the rest move to
$HOME/opt/bin/ and to subdirs of $HOME/opt/share/.
Note that you can only set one $CONF_ARGS variable of course; if you
have several arguments to set by means of it, put them space-separated
into a single value. (For some arguments, as shown in my conpunix.htm
HowTo page, there are separate environment variables).
Best regards,
Tony.
--
When a Banker jumps out of a window, jump after him -- that's where the
money is.
-- Robespierre
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php