Prev Up (Under construction)

vim


Vi IMproved, a programmers text editor

Compilation

V7.3

AIX

For AIX' native compilers, in src/os_unix.h add
   || defined(__xlc__)
where the __ARGS macro is defined.
Moreover, vim uses the Xutf8SetWMProperties function, which can't be found in any standard library, thus add at the end of src/vim.h:
   # _AIX
   #undef X_HAVE_UTF8_STRING
   #endif
Moreover, better use gmake, otherwise something goes wrong and the build runs into "install" with unset macros.

Common procedure

                                     # AIX 5.3/6.1/7.1, C 12.1/9/12.1 examples
   ./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/include/" CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/include/" LDFLAGS="-L/bio/local/lib/" --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir  --enable-multibyte --enable-xim --enable-fontset --with-features=big
   ./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/../61/include/" CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/bio/local/../61/include/" LDFLAGS="-L/bio/local/../61/lib/" --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir  --enable-multibyte --enable-xim --enable-fontset --with-features=big
                                     # if threadsafe support libs are being used: 
   ./configure --prefix=/tmp/vim-7.3 CC="cc" CFLAGS="-O2 -qcpluscmt -D_LARGE_FILES -D_THREAD_SAFE -I/nfs/local/71/include/"    CPPFLAGS="-D_LARGE_FILES -D_THREAD_SAFE -I/nfs/local/71/include/"    LDFLAGS="-L/nfs/local/71/lib/"  LIBS="-lpthread"  --enable-gui=motif --disable-motif-check MOTIFHOME=/usr --without-local-dir  --enable-multibyte --enable-xim --enable-fontset --with-features=big

   make 
   make install

V7.0

Straightforward (sort of).

Either: follow the instructions in src/INSTALL:

  1. cd src
    configure CC=cc --prefix=/tmp/vim-70 --enable-gui=motif
    
  2. make
    make install  # goes into /tmp/vim-70
    

Or, in vim-70 directly:

  1. make
    make install  # goes into /usr/local !
    

AIX 5.1/6.1 (VAC 6/9)

The IBM compilers dislike a particular construct in src/message.c. Use
#if SIZEOF_INT <= 2 
   char *q = memchr(str_arg, '\0',
                    precision
                   );
#else
   char *q = memchr(str_arg, '\0',
                    precision <= (size_t)0x7fffffffL ? precision
                    : (size_t)0x7fffffffL
                   );
#endif
instead.

Installation/Configuration

$VIM, $VIMRUNTIME
Last updated: Wed Jul 3 16:14:03 CED 2013 , M.Kraemer