如何在vim中安装pascal编译器?

时间:2012-10-11 18:17:17

标签: vim compiler-construction pascal

我找到了vim there的pascal编译器,但我不知道如何安装它。没有指示。我不知道我必须用它做什么,以及如何使用它编译程序。 谢谢。

1 个答案:

答案 0 :(得分:1)

我想你想看一下关于插件安装的Vim文档: http://vimdoc.sourceforge.net/htmldoc/usr_05.html#plugin

<强>摘录

USING A GLOBAL PLUGIN

First read the text in the plugin itself to check for any special conditions.
Then copy the file to your plugin directory:

    system      plugin directory 
    Unix        ~/.vim/plugin/
    PC and OS/2 $HOME/vimfiles/plugin or $VIM/vimfiles/plugin
    Amiga       s:vimfiles/plugin
    Macintosh   $VIM:vimfiles:plugin
    Mac OS X    ~/.vim/plugin/
    RISC-OS     Choices:vimfiles.plugin

Example for Unix (assuming you didn't have a plugin directory yet):

    mkdir ~/.vim
    mkdir ~/.vim/plugin
    cp /usr/local/share/vim/vim60/macros/justify.vim ~/.vim/plugin

That's all!  Now you can use the commands defined in this plugin to justify
text.

Instead of putting plugins directly into the plugin/ directory, you may
better organize them by putting them into subdirectories under plugin/.
As an example, consider using "~/.vim/plugin/perl/*.vim" for all your Perl
plugins.