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

如何在vim中安装pascal编译器?,vim,compiler-construction,pascal,Vim,Compiler Construction,Pascal,我已经找到了vim的pascal编译器,但我不知道如何安装它。没有指示。我不知道我必须用它做什么,以及如何用它编译程序。 多谢各位 我想您应该看看关于插件安装的Vim文档: 摘录 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

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

我想您应该看看关于插件安装的Vim文档:

摘录

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. 使用全局插件 首先阅读插件本身的文本,检查是否有任何特殊情况。 然后将文件复制到插件目录: 系统插件目录 Unix~/.vim/插件/ PC和OS/2$HOME/vimfiles/plugin或$VIM/vimfiles/plugin Amiga s:vimfiles/插件 Macintosh$VIM:vimfiles:plugin Mac OS X~/.vim/插件/ RISC-OS选项:vimfiles.plugin Unix示例(假设您还没有插件目录): mkdir~/.vim mkdir~/.vim/插件 cp/usr/local/share/vim/vim60/macros/justify.vim~/.vim/plugin 这就是全部!现在您可以使用此插件中定义的命令来证明 文本。 与直接将插件放入plugin/目录不同,您可以 通过将它们放入plugin/下的子目录,更好地组织它们。 作为一个例子,考虑使用“~/.Vim/Pult/Perl/*.vim”来处理所有Perl。 插件。
如果您不熟悉设置这些东西的概念,您可能应该从IDE开始,就像通常不在vim中安装编译器一样,没有必要。另外,这个包不是编译器本身,它只是一个非常小的脚本文件。要编译Pascal代码本身,您需要。好吧,我撒谎了。我把它扔到ftplugin文件夹中,就像我用c做的一样,但当我键入一些东西,然后键入“:make”时,它写道::!make 2>&1 | tee/var/folders/3v/bbg9bzzn47s9x0vjw7p1\u fn8000gn/T/vxl4Va1/0[自上次更改以来没有写入]make:**没有指定目标,也没有找到makefile.Stop.(1/1):make:**没有指定目标,也没有找到makefile.Stop。”. 在那之后,我认为问题出在我身上,我做错了什么。把它放在
~/.vim/compiler/
上,然后看
:help:compiler
。看看它将简化pascal文件的编译和运行,直到你学会如何使用
:make
。好的,把它放在正确的目录中。下一步是什么?例如,我有一个带有代码的demo.pas文件,我在vim中打开了它。此外,我们还有fpc。如何编译它?freepascal.org有很多关于编译FPC的信息,另请参阅。最简单的方法是下载.tar文件,提取并运行脚本。特别是如果您使用debian派生的发行版(这些发行版中的软件包似乎总是很旧)