Archive

Archive for the ‘VIM’ Category

一个日本人的vim的截图

2006/07/02 发表评论
令人发指阿,这玩意儿能用吗?

分类: VIM

今天用checkinstall学着打了一个vim7的deb包

2006/05/16 4 条评论
配置了gtk2,多字节支持,输入法支持,python,cscope,feature为huge.
如果懒得自己编译的话可以试试:)
这里下载.

安装使用 sudo dpkg -i vim7_vim7-1_i386.deb
卸载使用 sudo dpkg -r vim7,卸载的时候有些警告信息,没有关系.

分类: VIM

貌似vim7正式版发布了

2006/05/08 2 条评论
http://www.vim.org/download.php

可是我的svn不能更新了,报错信息如下:
svn: Unrecognized URL scheme for ‘https://svn.sourceforge.net/svnroot/vim/vim7′

搜索了一下说是不能load插件,但是不知道怎么解决……如果有谁知道望告知,谢谢。

分类: VIM

VIM7.0d release

2006/04/12 3 条评论
昨天的消息.尝鲜的可以试试.

顺便说一句,昨天升级了dapper核心,导致进不了X了..说是nvidia驱动版本和核心版本不一致..

Announcing: Vim (Vi IMproved) version 7.0d BETA

This is the third BETA release of Vim 7. It appears to be quite stable
and about ready for daily use, but I would like to do some more testing
to be sure.

Since the second BETA release quite a few things were improved, here is
a summary:
- $MYVIMRC is set to to the first found .vimrc file and $MYGVIMRC to the
first found .gvimrc file. Added menu item "Startup Settings" that
edits the $MYVIMRC file
- Added matcharg().
- The tab page labels are shortened, directory names are reduced to a
single letter by default. Added the pathshorten() function to allow a
user to do the same.
- Added CTRL-W gf: open file name under the cursor in a new tab page.
- "New tab" item in the GUI tabline menu opens tab left of the click.
- Added "usetab" to ‘switchbuf’: jump to window in other tab page.
- Added tabpage-local variables t:var.
- ‘cmdheight’ now works local to a tab page.
- Motif: Added GUI tab pages line. (Yegappan Lakshmanan)
- Win32: The font used for the tab page labels was too big. Use the
system menu font. (George Reilly)
- Use of the Enter key for the popup menu works differently, hopefully
better.
- Win32: Set the default for ‘isprint’ back to the wrong default
"@,~-255", because many people use Windows-1252 while ‘encoding’ is
"latin1".
- When init_spellfile() finds a writable directory in ‘runtimepath’ but
it doesn’t contain a "spell" directory, create one.
- A series of bug fixes, see the end of ":help version7".

Since Vim 6.4 many new features have been added. To mention a few:

- Spell checking support for about 50 languages
- Intelligent completion: Omni completion
- Tab pages, each containing multiple windows
- Undo branches: never accidentally lose text again
- Vim script supports Lists and Dictionaries (similar to Python)
- Vim script profiling
- Improved Unicode support
- Highlighting of matching parens, cursor line and cursor column
- Translated manual pages support.
- Internal grep; works on all platforms, searches compressed files
- Browsing of remote directories, zip and tar archives
- Printing multi-byte text

Once you have installed Vim 7.0d BETA you can find details about the
changes since Vim 6.4 with ":help version7". There are also a lot of
bug fixes.

Testing
——-

This is a BETA test version. Please give it a good test and report
anything that isn’t right. That includes a crash but also a typo in the
documentation.

A known problem is that generating the Hungarian spell file doesn’t
work.

I will not make an Amiga or OS/2 binary for Vim 7. A Mac version should
be available soon on http://macvim.org/

Where to get it
—————

Information about which files to download for what system:
http://www.vim.org/download.php

All files can be found below this directory:
ftp://ftp.vim.org/pub/vim/unstable/

A list of mirror sites can be found here:
http://www.vim.org/mirrors.php

Vim 7.0d is also available from CVS and with Aap:
http://www.vim.org/develop.php

Happy Vimming!

分类: VIM

在同一个VIM7实例中打开多个文件

2006/03/30 3 条评论
当然,我们在gvim中可以使用:tabe命令在新的tab中打开新文件。但是有的时候我们会在控制台中输入新的命令也想在之前的gvim中打开,怎么办呢?
gvim也提供了这样的参数
gvim –remote-tab-silent file.txt
就可以在原来已经打开的gvim创建一个新的tab来打开file.txt。还是很方便的。
分类: VIM

在windows利用VC2005编译VIM7

2006/03/26 发表评论
之前在我的ubuntu上成功编译了VIM7,很顺利,周五在公司用的windows上的vim还是很早之前别人编译的版本,于是想自己编译一个,没想到更加顺利。
首先要把VC的编译什么的加入到环境变量里面,在vc的目录里面有个bat文件可以做到这个。
然后进入src目录,修改Make_mvc.mak文件,修改地方和我的上篇在ubuntu中编译vim7的差不多。增加了OLE等支持。
然后运行命令
nmake -f Make_mvc.mak

过一会儿就结束了。然后把编译出拉的exe文件拷贝出去,外面还有一个runtime目录,放到里面就可以运行了。之前我还象ubuntu里面一样运行nmake install,结果不支持,哈哈。

分类: VIM

VIM7 beta发布以及VIM的作者Bram Moolenaar将会到google工作

2006/03/25 发表评论
今天上午收到Bram的邮件,公布了两个消息,第一个就是VIM7beta发布(难怪我昨天晚上无法连上vim的cvs服务器)。
另外一个消息就是Bram接受了google的offer,不再靠捐助生活了,当然大家还可以继续捐赠,但是Bram会把捐赠的金钱全部转交给救助uganda(乌干达)的儿童们。另外一个稍微不好的消息是由于Bram有了自己的全职工作所以就没有太多的时间在vim上了,以前是150%的时间都在vim上。

恭喜Bram,恭喜vim,只有作者在没有后顾之忧的情况下,项目才会很好的发展。

谢谢google。google现在已经笼络了很多开源世界的大牛,比如python的老大,现在的Bram。

snapshot5

分类: VIM

VIM中文文档更新为0.9.0,所有文档都已经翻译了.

2006/03/22 1 comment
今天在vim的maillist中看到的消息,感谢vimcdoc团队的工作.

[ANN] Vim documentation Chinese translation 0.9.0   vim

Wenzhi Liang 
<wenzhi.liang AT gmail.com> to vim
 More options   3:24 am (5 hours ago)

This is a major milestone release! All Vim documentation are now
translated and updated against Vim 6.4. This release is almost
single-handedly made possible by Willis, who has only joined us for no
more than a month. Everybody is encouraged to upgrade (hint: read the
INSTALL file). Online HTML version will be updated shortly.

Available at http://vimcdoc.sourceforge.net/

Rgds,

lang2

分类: VIM

尝试翻译vim7的帮助

2006/03/19 发表评论
    首先翻译的tabpage,当翻译了60%的时候,我想试试能否集成到vim的帮助中,结果拷贝到.vim/doc/中不行(我安装了vim6.4的中文翻译文档,就是拷贝到这里的),于是就想看看到底是怎么回事,发现里面有个tags-cn文件,打开一看原来是一些标签,表示各个帮助的中文文档的对应关系,于是我就想自己编辑一下这个文件,发现不行,老是说格式错误。怎么都不行,很打击信心。
    刚才看了vim手册,发现有个命令helptags,就是用来生成tags的,我们中文翻译的文档后缀名为cnx,使用:helptags .vim/doc,就会自动生成tags-cn文件,就可以使用中文翻译文档了。我试了一下,果然行,哈哈,不错,就是我排版还不行,有的地方有点儿乱。应该是tab的问题,老人们的教诲是对的呀,一定要把tab转换成空格,不然空格和tab混排的时候,格式乱得一塌糊涂阿。
    另外,翻译文档的时候一定要注意的地方是第一行一定要翻译,里面必须包含中文,不然在使用helptags命令的时候会报错,说里面有多种编码。看帮助里面说,vim的doc只支持latin和utf8,如果是多字节文字第一行必须也翻译,不然就认不出来。

   

分类: VIM

[VIM]ubuntu编译VIM7指南

2006/03/18 4 条评论
vim7的alpha版本已经出来很久了,增加了很多特性,比如tabpage,自动完成,拼写检查等,改善特别大,为了尝鲜,我们可以自己获取源代码来编译.
今天终于编译成功了,非常顺利,真是会者不难,难者不会.
我把我的编译过程列在下面,希望能够给想自己编译vim7的朋友提供一些帮助.(注,这是我第一次在linux编译成功软件,也是自己编译的第一个软件,连我都会了,想来大家更是没有问题)

  • 首先第一步是安装编译工具 sudo apt-get install build-essential 这没什么好说的.

  • 然后修改源,把源代码加上.我添加了如下的源

deb-src http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse

  • 更新包索引. sudo apt-get update
  • 然后安装编译vim-gtk的依赖包,sudo apt-get build-dep vim-gtk  ,这一步是关键,我最开始尝试编译vim7始终不成功的原因就是不知道vim7依赖哪些包,导致始终编译不成功.
  • 前面几步成功之后,我们开始进入正题,获取vim7的源代码 cvs -z3 -d:pserver:anonymous@cvs-pserver.sf.net:80/cvsroot/vim checkout vim7

    这个命令会在你的个人目录里面建立一个vim7的目录.里面就是vim7的最新的源代码.如果执行命令出错,说找不到命令cvs,便是你没有安装cvs,可以使用sudo apt-get install cvs来安装

  • 现在进入vim7的目录  cd vim7/src .
  • 修改makefile文件,配置编译选项 gvim Makefile.其实就是把一些配置项反注释掉.我总共修改了如下几个部分.大家可以参考
    1. CONF_OPT_GUI = –enable-gui=gtk2 #gtk2支持,也可以使用gnome
    2. CONF_OPT_CSCOPE = –enable-cscope #cscope支持
    3. CONF_OPT_PYTHON = –enable-pythoninterp #python支持
    4. CONF_OPT_MULTIBYTE = –enable-multibyte #双字符支持
    5. CONF_OPT_INPUT = –enable-xim #输入法支持
    6. CONF_OPT_OUTPUT = –enable-fontset #双字符支持
    7. CONF_OPT_FEAT = –with-features=huge #最大特性支持
    8. CONF_OPT_COMPBY = "–with-compiledby=Karron Qiu<KarronQiu#gmail.com>" #编译人
  • 保存之后就可以开始编译了.输入make就行了,等一会儿吧,喝口茶.
  • 大概几分钟之后(根据机器配置不一样时间可能有长短),编译完成.
  • 好安装.make install
  • 如上几步如果成功的话,恭喜你,现在可以进入vim7的世界了.
  • 输入gvim,可以看到版本号变成了7.0aa.然后就可以用命令:help version7看看vim7的新功能了.

下面是几张截图.

分类: VIM
加关注

Get every new post delivered to your Inbox.