ERROR: Slooooow dooooown... this page load was delayed.


vim - Vi IMproved - a text editor based on vi ChangeLog

HOWTO


# Vim 8.0
# =======
# Slackware 13.37: vim, vim-gvim 7.3.154
# Slackware 14.0: vim, vim-gvim 7.3.645
# Slackware 14.1: vim, vim-gvim 7.4.050
# Slackware 14.2: vim, vim-gvim 7.4.1938
#
# Older versions of Slackware < 11.0 included a 'xvim' package instead of a
# 'vim-gvim' one

# Vim and ctags are both included in the Slackware packages.  I recommend
# going to the ctags howto first, then coming back here to install vim.
# If you remove the vim Slackware package(s) below without going through the
# ctags howto first, you will loose ctags.

# I use --disable-nls below because I live in the US and only reed & rite
# Inglish guud.  If this is not the case for you, leave that off of the
# configure line.

# Prerequisites:
# SELinux support (optional)
# Lua (optional; add --enable-luainterp)
# Perl (optional; if not, leave off --enable-perlinterp)
# Python 2.x (optional; if not, leave off --enable-pythoninterp)
# Python 3.x (optional; add --enable-python3interp)
# Tcl (optional; add --with-tclinterp)
# Ruby (optional; add --with-rubyinterp)
# XFree86 or X.org (optional; for gvim)
# GUI libraries/includes: gtk, gtk2, gtk3, gnome2, motif, athena, neXtaw, photon, carbon (optional; for gvim)
# ncurses
# gpm (optional)
# glibc's iconv or libiconv
# ctags

# We use ~/installed/vim/ below to hold the source and any future patches
# in one place

# Here is the announcement of 8.0:
# https://groups.google.com/forum/#!topic/vim_announce/EKTuhjF3ET0

# Get it
cd
test -f installed/vim-8.0.tar.bz2 && mv installed/vim-8.0.tar.bz2 .
test -f installed/vim/vim-8.0.tar.bz2 && mv installed/vim/vim-8.0.tar.bz2 .
test ! -f vim-8.0.tar.bz2 &&
wget ftp://ftp.vim.org/pub/vim/unix/vim-8.0.tar.bz2

# Extract the source
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "vim??" -exec rm -r {} \;
tar xjvf ~/vim-8.0.tar.bz2
cd vim80
test $UID = 0 && chown -R root:root .

# Read ./README, ./README_unix.txt, and src/INSTALL

# If you have the X libraries and includes but do not want X support (gvim)
# compiled in, add --without-x --disable-gui
#
# If you want separate 'vim' and 'gvim' binaries, instead of just one 'vim'
# which can be run as 'vim -g' for the graphical version, use --without-x
# and --disable-gui the first time, then leave those off the second time,
# and add --with-vim-name=gvim
#
# To see all of the build options, see './configure --help'

# Configure the build
./configure --prefix=/usr --sysconfdir=/etc --infodir=/usr/info \
--mandir=/usr/man --docdir=/usr/doc/vim-8.0 \
--enable-pythoninterp --enable-perlinterp \
--enable-cscope --enable-multibyte --disable-nls

# If you want the default vimrc to be in /etc, instead of /usr/share/vim,
# run 'make VIMRCLOC=/etc' instead of 'make'

# Build it
make

# Become root to install it
su

# Remove the Slackware vim package(s) if there are any installed
# (if there are, this will remove ctags also)
test -x /sbin/removepkg && /sbin/removepkg vim xvim vim-gvim

# Install it
make install

# You may still have a /usr/share/vim/vimrc file left over from the
# Slackware package(s) version of Vim.  If you want to replace the current
# system-wide vimrc (/usr/share/vim/vimrc) with an example from the this
# new version, do something like the following.
for cfile in vimrc gvimrc; do
  test -f /usr/share/vim/${cfile} &&
   ( mkdir -p -m 0700 ~/backup
     cp -a /usr/share/vim/${cfile} ~/backup/${cfile}-$(date +%Y%m%d)
     chmod 600 ~/backup/${cfile}-$(date +%Y%m%d)
     rm -f /usr/share/vim/${cfile}
     cp /usr/share/vim/vim80/${cfile}_example.vim /usr/share/vim/${cfile} )
done

# Become your non-root user again
exit

# To set non-default preferences, create a .vimrc file in your home
# directory
test ! -f ~/.vimrc2 && cat > ~/.vimrc2 < colorscheme elflord
set nobackup
set nowritebackup
set nowrap
EOF

# See the Vim web site for links to documentation, mailing lists, videos,
# books, ...
#
# If you're new to Vim, run 'vimtutor' or while running vim ':help tutor'
#
# For usage tips, go to the Vim Tips wiki
#
# If you want to see the changes from 7.4 to 8.0, while running vim,
# use ':help version8'
#
# If you need help with Vim, try the mailing list:
# http://www.vim.org/maillist.php
#
# xxd is a handy utility that you can use to get a hex dump of something.
# ...without opening the something with vim and typing :%!xxd
#
# To run vim in graphical mode under X, either run 'gvim' or 'vim -g'
#
# /usr/share/icons/hicolor/48x48/apps/gvim.png can be used as a desktop icon

# Save the source for later
cd
mkdir -p -m 0700 installed/vim
rm -f installed/vim-*.tar.* installed/vim/vim-*.tar.*
mv vim-8.0.tar.bz2 installed/vim/


# If you ever want to uninstall Vim, this should do it:
cd
su
test -d src/vim-* && ( cd src/vim-* ; make uninstall )
( cd /usr/bin
  rm -f vim vimtutor xxd
  for vlink in ex rview rvim view vimdiff; do
    test -L $vlink && rm $vlink
  done )
( cd /usr/man/man1
  rm -f eview.1 evim.1 ex.1 gview.1 gvim.1 gvimdiff.1 rgview.1 rgvim.1 \
   rview.1 rvim.1 view.1 vim.1 vimdiff.1 vimtutor.1 xxd.1 )
test -d /usr/share/applications &&
( cd /usr/share/applications
   rm -f vim.desktop gvim.desktop )
find /usr/share/icons -type f -name "gvim.png" -exec rm {} \;
test -d /usr/share/vim && rm -r /usr/share/vim
exit
find ~/src -maxdepth 1 -type d -name "vim-*" -exec rm -r {} \;
rm -f ~/installed/vim-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2016-09-12 12:40pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]