使用breakindent修补程序编译VIM [英] Compiling VIM with breakindent patch
问题描述
在Ubuntu 12.04精确的,唯一的方法来获得breakindent补丁工作在VIM似乎是编译VIM本身后修补它。这是我做的:
In Ubuntu 12.04 Precise the only way to get breakindent patch working in VIM seems to be compiling VIM itself after patching it. Here's what I've done:
安装pbuilder并创建本地环境
Install pbuilder and create local environment
sudo apt-get install pbuilder debootstrap
sudo pbuilder create --debootstrapopts --variant=buildd
获取来源
sudo apt-get source vim
使用从官方回购
cd vim-7.3.429
patch -p1 < vim-breakindent.patch
sudo pbuilder build vim_7.3.429-2ubuntu2.1.dsc
Pbuilder正确生成deb软件包,但安装后,没有breakindent选项可用:
Pbuilder correctly generates deb packages but, after installing them, no breakindent option is available:
:set bri
E518: Unknown option: bri
错误在哪里?
谢谢
Where's the mistake? Thank you
推荐答案
pbuilder
.dsc
, .orig.tar.gz
和 .debian.tar.gz
来构建包。将补丁应用到本地副本并不会有帮助。
pbuilder
is still using the unmodified .dsc
, .orig.tar.gz
, and .debian.tar.gz
to build the package. Applying the patch to your local copy doesn't help.
您应该将补丁添加到 debian / patches /
debian / patches / series
,在 debian / changelog
( debchange
可以帮助),并重新制作源归档文件(类似于 dpkg-buildpackage -S
)。
You should probably add the patch to debian/patches/
and debian/patches/series
, bump the local version number in debian/changelog
(debchange
can help), and re-make the source archive (something like dpkg-buildpackage -S
).
这篇关于使用breakindent修补程序编译VIM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!