home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / amiga / vim46bin.lha / vim-4.6 / doc / vim.man < prev    next >
Encoding:
Text File  |  1996-08-07  |  11.8 KB  |  331 lines

  1.  
  2.  
  3.  
  4. VIM(1)                                                     VIM(1)
  5.  
  6.  
  7. NAME
  8.        vim - Vi IMproved, a programmers text editor
  9.  
  10. SYNOPSIS
  11.        vim [options] [file ..]
  12.        vim [options] -t tag
  13.        vim [options] -e [errorfile]
  14.  
  15. DESCRIPTION
  16.        Vim is a text editor that is upwards compatible to vi.  It
  17.        can be used to edit any ASCII text.  It is especially use-
  18.        ful for editing programs.
  19.  
  20.        There  are  a  lot  of  enhancements above vi: multi level
  21.        undo, multi windows and  buffers,  command  line  editing,
  22.        filename completion, on-line help, visual selection, etc..
  23.        Read vim_diff.txt for a summary of the differences between
  24.        Vim and vi.
  25.  
  26.        While  running  Vim a lot of help can be obtained from the
  27.        on-line help system.  See ON-LINE HELP below.
  28.  
  29.        Most often Vim is started to edit a single file  with  the
  30.        command
  31.  
  32.             vim file
  33.  
  34.        More generally Vim is started with:
  35.  
  36.             vim [options] [filelist]
  37.  
  38.        If  the filelist is missing, the editor will start with an
  39.        empty buffer.  Otherwise exactly one out of the  following
  40.        three  may  be  used  to  choose  one  or more files to be
  41.        edited.
  42.  
  43.        file ..     A list of file names.  The first one  will  be
  44.                    the  current  file  and  read into the buffer.
  45.                    The cursor will be  positioned  on  the  first
  46.                    line  of the buffer.  You can get to the other
  47.                    files with the ":next"  command.   To  edit  a
  48.                    file  that  starts  with  a  dash, precede the
  49.                    filelist with "--".
  50.  
  51.        -t {tag}    The file to edit and the initial cursor  posi-
  52.                    tion depends on a "tag", a sort of goto label.
  53.                    {tag} is looked up in the tags file, the asso-
  54.                    ciated  file  becomes the current file and the
  55.                    associated command is executed.   Mostly  this
  56.                    is  used for C programs.  {tag} then should be
  57.                    a function name.  The effect is that the  file
  58.                    containing  that  function becomes the current
  59.                    file and the cursor is positioned on the start
  60.                    of the function.  See ":help tag_commands".
  61.  
  62.  
  63.  
  64.                            1996 May 27                          1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VIM(1)                                                     VIM(1)
  71.  
  72.  
  73.        -e [errorfile]
  74.                    Start  in quickFix mode.  The file [errorfile]
  75.                    is read and the first error is displayed.   If
  76.                    [errorfile]   is  omitted  the  file  name  is
  77.                    obtained from the 'errorfile' option (defaults
  78.                    to "AztecC.Err" for the Amiga, "errors.vim" on
  79.                    other systems).  Further errors can be  jumped
  80.                    to  with the ":cn" command.  See ":help quick-
  81.                    fix".
  82.  
  83. OPTIONS
  84.        The options, if present, must precede the  filelist.   The
  85.        options  may be given in any order.  Options can mostly be
  86.        combined after a single dash.
  87.  
  88.        +[num]      For the first file the cursor  will  be  posi-
  89.                    tioned  on  line  "num".  If "num" is missing,
  90.                    the cursor will  be  positioned  on  the  last
  91.                    line.
  92.  
  93.        +/{pat}     For  the  first  file the cursor will be posi-
  94.                    tioned on the first occurrence of {pat}.   See
  95.                    ":help   search_pattern"   for  the  available
  96.                    search patterns.
  97.  
  98.        +{command}
  99.  
  100.        -c {command}
  101.                    {command} will be  executed  after  the  first
  102.                    file  has been read.  {command} is interpreted
  103.                    as an Ex command.  If the  {command}  contains
  104.                    spaces  it  must  be enclosed in double quotes
  105.                    (this depends on  the  shell  that  is  used).
  106.                    Example: Vim "+set si" main.c
  107.                    Note:  You  can use only one "+" or "-c" argu-
  108.                    ment.
  109.  
  110.        -b          Binary mode.  A few options will be  set  that
  111.                    makes  it  possible  to  edit a binary or exe-
  112.                    cutable file.
  113.  
  114.        -d {device} Open {device} for use as a terminal.  Only  on
  115.                    the Amiga.  Example: "-d con:20/30/600/150".
  116.  
  117.        -i {viminfo}
  118.                    When  using  the viminfo file is enabled, this
  119.                    option sets the file name to use,  instead  of
  120.                    the  default  "~/.viminfo".   This can also be
  121.                    used to skip the use of the .viminfo file,  by
  122.                    giving the name "NONE".
  123.  
  124.        -g          If  Vim  has  been  compiled with GUI support,
  125.                    this option turns the GUI on.  If no GUI  sup-
  126.                    port  was  compiled  in,  an  error message is
  127.  
  128.  
  129.  
  130.                            1996 May 27                          2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VIM(1)                                                     VIM(1)
  137.  
  138.  
  139.                    given and Vim aborts.
  140.  
  141.        -H          If Vim has been compiled with  RIGHTLEFT  sup-
  142.                    port  for editing right-to-left oriented files
  143.                    and  Hebrew  keyboard  mapping,  this   option
  144.                    starts  Vim  in  Hebrew  mode,  i.e. hkmap and
  145.                    rightleft are set.  Otherwise an error message
  146.                    is given and Vim aborts.
  147.  
  148.        -n          No  swap  file will be used.  Recovery after a
  149.                    crash will be impossible.  Handy if  you  want
  150.                    to  edit  a  file  on a very slow medium (e.g.
  151.                    floppy).  Can also be done with  ":set  uc=0".
  152.                    Can be undone with ":set uc=200".
  153.  
  154.        -o[N]       Open  N  windows.  When N is omitted, open one
  155.                    window for each file.
  156.  
  157.        -r          List swap files, with information about  using
  158.                    them for recovery.
  159.  
  160.        -r {file}   Recovery  mode.   The  swap  file  is  used to
  161.                    recover a crashed editing session.   The  swap
  162.                    file  is a file with the same file name as the
  163.                    text file with ".swp"  appended.   See  ":help
  164.                    recovery".
  165.  
  166.        -s {scriptin}
  167.                    The script file {scriptin} is read.  The char-
  168.                    acters in the file are interpreted as  if  you
  169.                    had typed them.  The same can be done with the
  170.                    command ":source! {scriptin}".  If the end  of
  171.                    the  file  is reached before the editor exits,
  172.                    further characters are read from the keyboard.
  173.  
  174.        -T {terminal}
  175.                    Tells  Vim  the  name  of the terminal you are
  176.                    using.  Should be  a  terminal  known  to  Vim
  177.                    (builtin)  or  defined  in the termcap or ter-
  178.                    minfo file.
  179.  
  180.        -u {vimrc}  Use the commands in the file "vimrc" for  ini-
  181.                    tializations.   All  the other initializations
  182.                    are skipped.  Use this to edit a special  kind
  183.                    of  files.   It  can  also be used to skip all
  184.                    initializations by  giving  the  name  "NONE".
  185.                    See ":help initialization" within vim for more
  186.                    details.
  187.  
  188.        -v          View mode.  The 'readonly' option will be set.
  189.                    You  can  still  edit  the buffer, but will be
  190.                    prevented from accidently overwriting a  file.
  191.                    If  you  do  want  to overwrite a file, add an
  192.                    exclamation mark to  the  Ex  command,  as  in
  193.  
  194.  
  195.  
  196.                            1996 May 27                          3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. VIM(1)                                                     VIM(1)
  203.  
  204.  
  205.                    ":w!".   The  -v  option  also  implies the -n
  206.                    option (see below).  The 'readonly' option can
  207.                    be  reset with ":set noro".  See ":help 'read-
  208.                    only'".
  209.  
  210.        -w {scriptout}
  211.                    All the characters that you type are  recorded
  212.                    in  the  file {scriptout}, until you exit Vim.
  213.                    This is useful if you want to create a  script
  214.                    file  to  be used with "vim -s" or ":source!".
  215.                    If the {scriptout} file exists, characters are
  216.                    appended.
  217.  
  218.        -W {scriptout}
  219.                    Like  -w, but an existing file is overwritten.
  220.  
  221.        -x          (Amiga only) Vim is not restarted  to  open  a
  222.                    new  window.   This option should be used when
  223.                    Vim is executed by a program  that  will  wait
  224.                    for  the  edit  session to finish (e.g. mail).
  225.                    The ":sh" and ":!" commands will not work.
  226.  
  227.        --          Denotes the  end  of  the  options,  arguments
  228.                    after  this  will  be  handled as a file name.
  229.                    This can be used to  edit  a  file  name  that
  230.                    starts with a '-'.
  231.  
  232. ON-LINE HELP
  233.        Type  ":help" in Vim to get started.  Type ":help subject"
  234.        to get help on a specific subject.   For  example:  ":help
  235.        ZZ" to get help for the "ZZ" command.  Use <Tab> and CTRL-
  236.        D to complete subjects (":help cmdline_completion").  Tags
  237.        are  present  to  jump  from one place to another (sort of
  238.        hypertext links, see ":help").  All files mentioned  below
  239.        can   be   viewed   in   this   way,  for  example  ":help
  240.        vim_ref.txt".
  241.  
  242. FILES
  243.        Vim documentation (in /usr/local/lib/vim).
  244.  
  245.        vim_ref.txt    A complete reference of Vim (long).
  246.  
  247.        vim_help.txt   File used by the on-line help (short), con-
  248.                       tains links to all other files.
  249.  
  250.        vim_win.txt    Explanation   of   the  multi  windows  and
  251.                       buffers commands and options.
  252.  
  253.        vim_idx.txt    Overview of all command characters  (useful
  254.                       when adding new mappings).
  255.  
  256.        vim_tips.txt   Some  useful  tips about using Vim for spe-
  257.                       cific file types.
  258.  
  259.  
  260.  
  261.  
  262.                            1996 May 27                          4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. VIM(1)                                                     VIM(1)
  269.  
  270.  
  271.        vim_digr.txt   Overview of the available digraphs.
  272.  
  273.        vim_kcc.txt    About copying Vim and Uganda.
  274.  
  275.        vim_diff.txt   Overview of the differences between Vim and
  276.                       vi.
  277.  
  278.        vim_<machine>.txt
  279.                       Machine  specific  comments.  <machine> can
  280.                       be ami (Amiga),  arch  (Archimedes),  unix,
  281.                       w32  (Windows  95/NT),  dos  (MS-DOS), mint
  282.                       (Atari MiNT) and mac (Macintosh).
  283.  
  284.        vim_gui.txt    Specific comments about the GUI version.
  285.  
  286.        vim_rlh.txt    Information about  using  Vim  for  editing
  287.                       right-to-left oriented files.
  288.  
  289.        /usr/local/lib/vim/vimrc
  290.                       System wide Vim initializations
  291.  
  292.        /usr/local/lib/vim/gvimrc
  293.                       System wide gvim initializations
  294.  
  295.        For recent info read the VIM home page:
  296.        <URL:http://www.math.fu-berlin.de/~guckes/vim/>
  297.  
  298. AUTHOR
  299.        Most of Vim was made by Bram Moolenaar.
  300.        Vim  is  based on Stevie, worked on by: Tim Thompson, Tony
  301.        Andrews and G.R. (Fred) Walter
  302.  
  303. BUGS
  304.        Probably.  See the "todo" file that comes with the distri-
  305.        bution.
  306.  
  307.        Note  that a number of things that may be regarded as bugs
  308.        by some, are in fact caused by a too-faithful reproduction
  309.        of  vi's  behaviour.   Other people may think other things
  310.        are bugs "because vi does it differently".   Those  people
  311.        should  take  a  closer  look at the vim_diff.txt file (or
  312.        type :help vim_diff.txt when in Vim).  Also have a look at
  313.        the 'compatible' option.
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.                            1996 May 27                          5
  329.  
  330.  
  331.