Changes between Version 3 and Version 4 of Web/ViEditor
- Timestamp:
- Mar 28, 2011, 4:24:33 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Web/ViEditor
v3 v4 3 3 [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. 4 4 5 == Syntax Highlighting == 6 7 The syntax highlighting is enabled by installing two files. It can be done with the following process: 5 If 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: 8 6 {{{ 9 7 mkdir -p ${HOME}/.vim/ftdetect 10 mkdir ${HOME}/.vim/syntax11 8 }}} 12 9 13 Download the following file from the quattor website:10 and download the following file from the quattor website: 14 11 {{{ 15 12 https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/ftdetect/pan.vim … … 17 14 and copy it to the {{{${HOME}/.vim/ftdetect}}} directory. 18 15 19 Download the following file from the quattor website: 16 === Syntax Highlighting === 17 18 For highlighting PAN keywords, create the {{{syntax}}} directory with the following 19 command: 20 {{{ 21 mkdir ${HOME}/.vim/syntax 22 }}} 23 Then download the following file from the quattor website: 20 24 {{{ 21 25 https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/syntax/pan.vim 22 26 }}} 23 and copy it to the {{{${HOME}/.vim/syntax }}} directory.27 and copy it to the {{{${HOME}/.vim/syntax directory}}}. 24 28 25 Take care, the two files have the same name! 29 === PAN Code Completion === 30 31 For enabling code auto-completion, add the following line in your {{{.vimrc}}} file: 32 filetype plugin on 33 34 Then create the autoload and ftplugin directories with the following commands: 35 {{{ 36 mkdir ${HOME}/.vim/autoload 37 mkdir ${HOME}/.vim/ftplugin 38 }}} 39 40 Put in the {{{autoload}}} directory the following file: 41 {{{ 42 https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/autoload/pancomplete.vim 43 }}} 44 45 Put in the {{{ftplugin}}} directory the following file: 46 {{{ 47 https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/util/vim/ftplugin/pan.vim 48 }}} 49 50 Code completion is performed by using Ctrl-x + Ctrl-o in ''insert'' or ''append'' mode. 51 52