Ⅰ. 插件描述
a Vim colorscheme that looks like good old Borland IDEs, such as Turbo Pascal and Turbo C++.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'caglartoklu/borlandp-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'caglartoklu/borlandp-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'caglartoklu/borlandp-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/caglartoklu/borlandp.vim
Ⅳ. 文档说明
# borlandp.vim
borlandp.vim is a Vim colorscheme that looks like good old Borland IDEs, such as Turbo Pascal and Turbo C++.
Vim script page:
https://www.vim.org/scripts/script.php?script_id=5827
It is based on
borland.vim
colorscheme by Yegappan Lakshmanan.
Screenshots
This colorscheme has been especially tested with curly-braced languages such as C++ and Java.
borlandp.vim on Vim on Windows 10 Editing a C File

borlandp.vim on Vim on Windows 10 Editing a Java File

Note that javadoc lines has been made less significant to focus on the code.
borlandp.vim on Vim on Windows 10 Editing a Python File

borlandp.vim on Vim on Windows 10 Editing a Pascal File

borlandp.vim on Vim on Windows 10 Editing a Markdown File

borlandp.vim on Vim on DOSBox

Original Borland C on DOSBox for Comparison

Options
If the original color is too blue or bright, the following options can be used to make the background darker, since the background color is customizable.
To do so, one of the following code snippets should be added to VIMRC, before the following line:
colorscheme borlandpdark_blue background
let g:borlandp_bg = "dark_blue"
dark_gray background
let g:borlandp_bg = "dark_gray"
black background
let g:borlandp_bg = "black"
Restoring the original blue
Simply delete the let g:borlandp_bg = ".." line.
The blue background can also be explicitely set:
let g:borlandp_bg = "borland_blue"Source Files in Screenshots
Source code used in screenshots for C language:
https://github.com/id-Software/DOOM/blob/master/linuxdoom-1.10/p_enemy.c
Source code used in screenshots for Java language:
https://github.com/AXDOOMER/mochadoom/blob/master/src/doom/player_t.java
Source code used in screenshots for Python language:
https://github.com/Pink-Silver/PyDoom/blob/master/pydoom/graphics.py
Source code used in screenshots for Pascal language:
https://sourceforge.net/projects/fpcdoom/files/Source%20Code%20Snapshots/FPCDoom_Src_20190919.zip/download
Source code used in screenshots for Markdown file:
https://github.com/AXDOOMER/mochadoom/blob/master/README.md
Font
The font used in the screenshots except DOS screenshot:
set gfn=PxPlus_IBM_VGA8:h14:cANSI:qDRAFTIt can be downloaded here:
https://int10h.org/oldschool-pc-fonts/readme/
Also, the screen has been configured as follows in Vim:
set columns=80 lines=25Installation
For Vundle users:
Plugin 'caglartoklu/borlandp.vim'
For all other users, simply drop the borlandp.vim file to yourcolors directory.
Usage
colorscheme borlandp
See Also
ftcolor.vim
ftcolor.vim is a Vim plugin that switches colorschemes according to the file type.
qbcolor.vim
qbcolor.vim is a Vim colorscheme that looks like good old Microsoft QuickBASIC.