Changes between Version 3 and Version 4 of Web/ViEditor


Ignore:
Timestamp:
Mar 28, 2011, 4:24:33 PM (15 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=IPHC/CN=Jerome Pansanel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Web/ViEditor

    v3 v4  
    33[http://www.vim.org/ Vim] is a highly configurable text editor built to enable efficient text editing. It supports syntax highlighting and code completion for many languages. However, PAN language is not supported by default. The following sections describes how to use Vi for PAN template development.
    44
    5 == Syntax Highlighting ==
    6 
    7 The syntax highlighting is enabled by installing two files. It can be done with the following process:
     5If you want to enable PAN syntax highlighting or code completion, the first step is to tell to Vim how to recognize PAN files. To do this, create the following directory:
    86{{{
    97mkdir -p ${HOME}/.vim/ftdetect
    10 mkdir ${HOME}/.vim/syntax
    118}}}
    129
    13 Download the following file from the quattor website:
     10and download the following file from the quattor website:
    1411{{{
    1512https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/ftdetect/pan.vim
     
    1714and copy it to the {{{${HOME}/.vim/ftdetect}}} directory.
    1815
    19 Download the following file from the quattor website:
     16=== Syntax Highlighting ===
     17
     18For highlighting PAN keywords, create the {{{syntax}}} directory with the following
     19command:
     20{{{
     21mkdir ${HOME}/.vim/syntax
     22}}}
     23Then download the following file from the quattor website:
    2024{{{
    2125https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/syntax/pan.vim
    2226}}}
    23 and copy it to the {{{${HOME}/.vim/syntax}}} directory.
     27and copy it to the {{{${HOME}/.vim/syntax directory}}}.
    2428
    25 Take care, the two files have the same name!
     29=== PAN Code Completion ===
     30
     31For enabling code auto-completion, add the following line in your {{{.vimrc}}} file:
     32filetype plugin on
     33
     34Then create the autoload and ftplugin directories with the following commands:
     35{{{
     36mkdir ${HOME}/.vim/autoload
     37mkdir ${HOME}/.vim/ftplugin
     38}}}
     39
     40Put in the {{{autoload}}} directory the following file:
     41{{{
     42https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/autoload/pancomplete.vim
     43}}}
     44
     45Put in the {{{ftplugin}}} directory the following file:
     46{{{
     47https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/ftplugin/pan.vim
     48}}}
     49
     50Code completion is performed by using Ctrl-x + Ctrl-o in ''insert'' or ''append'' mode.
     51
     52