| | 1 | = Vi Editor = |
| | 2 | |
| | 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 | |
| | 5 | == Syntax Highlighting == |
| | 6 | |
| | 7 | The syntax highlighting is enabled by installing two files. It can be done with the following process: |
| | 8 | {{{ |
| | 9 | mkdir -p ${HOME}/.vim/ftdetect |
| | 10 | mkdir ${HOME}/.vim/syntax |
| | 11 | }}} |
| | 12 | |
| | 13 | Download the following file from the quattor website: |
| | 14 | {{{ |
| | 15 | https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/panc-vim/ftdetect/pan.vim |
| | 16 | }}} |
| | 17 | and copy it to the {${HOME}/.vim/ftdetect} directory. |
| | 18 | |
| | 19 | Download the following file from the quattor website: |
| | 20 | {{{ |
| | 21 | https://quattor.svn.sourceforge.net/svnroot/quattor/trunk/panc-vim/syntax/pan.vim |
| | 22 | }}} |
| | 23 | and copy it to the {${HOME}/.vim/syntax} directory. |
| | 24 | |
| | 25 | Take care, the two files have the same name! |