home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / vim53os2.zip / vim-5.3 / doc / os_unix.txt < prev    next >
Text File  |  1998-08-30  |  2KB  |  55 lines

  1. *os_unix.txt*   For Vim version 5.3.  Last modification: 1998 Mar 15
  2.  
  3.  
  4.           VIM REFERENCE MANUAL    by Bram Moolenaar
  5.  
  6.  
  7. This file contains the particularities for the Unix version of Vim.
  8.  
  9. For compiling Vim on Unix see "INSTALL" and "Makefile" in the src directory.
  10.  
  11. The default help file name is "/usr/local/lib/vim/help.txt"
  12. The files "$HOME/.vimrc" and "$HOME/.exrc" are used instead of "s:.vimrc" and
  13. "s:.exrc". Additionally "/usr/local/etc/vimrc" is used first.
  14. If "/usr/local/share" exists it is used instead of "/usr/local/lib"
  15.  
  16. Temporary files (for filtering) are put in "/tmp".
  17.  
  18. With wildcard expansion you can use <~> (home directory) and <$>
  19. (environment variable).
  20.  
  21.                             *fork* *spoon*
  22. For executing external commands fork()/exec() is used when possible, otherwise
  23. system() is used, which is a bit slower.  The output of ":version" includes
  24. |+fork| when fork()/exec() is used, |+system()| when system() is used.  This
  25. can be changed at compile time.
  26. (For forking of the GUI version see |gui-fork|).
  27.  
  28. Because terminal updating under Unix is often slow (e.g. serial line
  29. terminal, shell window in suntools), the 'showcmd' and 'ruler' options
  30. are default off. If you have a fast terminal, try setting them on.  You might
  31. also want to set 'ttyfast'.
  32.  
  33. When using Vim in an xterm the mouse clicks can be used by Vim by setting
  34. 'mouse' to "a". If you then still want the xterm copy/paste with the mouse,
  35. press the shift key when using the mouse.  See |mouse-using|.
  36.  
  37.                             *terminal-colors*
  38. To use colors in Vim you can use the following example (if your terminal
  39. supports colors, but "T_Co" is empty or zero):
  40. >  :set t_me=^[[0;1;36m     " normal mode (undoes t_mr and t_md)
  41. >  :set t_mr=^[[0;1;33;44m  " reverse (invert) mode
  42. >  :set t_md=^[[1;33;41m    " bold mode
  43. >  :set t_se=^[[1;36;40m    " standout end
  44. >  :set t_so=^[[1;32;45m    " standout mode
  45. >  :set t_ue=^[[0;1;36m     " underline end
  46. >  :set t_us=^[[1;32m       " underline mode start
  47. [the ^[ is an <Esc>, type CTRL-V <Esc> to enter it]
  48.  
  49. For real color terminals the ":highlight" command can be used.
  50.  
  51. The file "tools/Vim132" is a shell script that can be used to put Vim in 132
  52. column mode on a vt100 and lookalikes.
  53.  
  54.  vim:ts=8:sw=8:tw=78:
  55.