LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1894|回复: 18

VIM 7 Beta released

[复制链接]
发表于 2006-3-28 13:03:40 | 显示全部楼层 |阅读模式
This is the first BETA release of Vim 7.  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 for French, Italian and Russian
- Internal grep; works on all platforms, searches compressed files
- Browsing of remote directories, zip and tar archives
- Printing multi-byte text
发表于 2006-3-28 16:10:17 | 显示全部楼层
Wonderful
回复 支持 反对

使用道具 举报

发表于 2006-3-28 18:05:49 | 显示全部楼层
现在ftp服务器上最新的是gvim7.0c 了
win32下安装7.0b的会有问题

因为打包时没有把autoload目录下的内容打进去
回复 支持 反对

使用道具 举报

发表于 2006-3-28 18:11:39 | 显示全部楼层
速度感觉更快
界面上感觉更好 如当把光标放在一个括号时 匹配的另一边括号直接改变颜色
另外增加了自动完成的下拉列表

按 C-N 或C-f C-N时会显示出选项供选择 很是方便
tab功能没用过不好评价
回复 支持 反对

使用道具 举报

发表于 2006-3-29 13:13:01 | 显示全部楼层
从cvs到现在一直用,没感觉速度有有多大提高!
不过还是推荐大家能换的一定要换这个……
tab功能超爽,特别在终端下,比sp好多了
vi -p[n]起动时指定tab的个数
或者直接在当前编辑的文件中 :tab sp file;
gt下一个tab,[n]gt前往第n个tab!!
回复 支持 反对

使用道具 举报

发表于 2006-3-29 13:16:42 | 显示全部楼层
更正一下,刚编译完7.0c02这个速度真的提高不少……
???好像跟7.0b也没改多少文件啊????:ask
回复 支持 反对

使用道具 举报

发表于 2006-3-29 13:29:35 | 显示全部楼层
我在Windows上用时,如果想打开ftp上的文件的话,出现:
处理 BufReadCmd Auto commands: "ftp://*"时发生错误:
E117:未定义的函数: netrw#NetSavePosn
回复 支持 反对

使用道具 举报

发表于 2006-3-29 13:30:42 | 显示全部楼层
那个“字符界面的侯选菜单”确实不错。让我试试看。。。。
回复 支持 反对

使用道具 举报

发表于 2006-3-29 21:00:04 | 显示全部楼层
没试过打开ftp目录
pupilzeng你用的是7.0b 还是7.0c

今天试了试spell检查功能
输入
set spell就可以打开检查功能
关闭使用
set nospell
要想修改拼写
光标停在在出现拼写错误的词下面 然后输入 z= 就会出现假选单词列表
如果想查找下一个拼写错误 输入[s
回复 支持 反对

使用道具 举报

发表于 2006-3-29 21:05:44 | 显示全部楼层
tab sp试了一下 功能不错 后面可以结合其它插件更方便的工作了

附上本人编译时打开的options
VC6编译的(办公室里面就用它写代码)
GUI=yes
OLE=yes
MBYTE=yes
IME=yes
PERL=c:\Perl
DYNAMIC_PERL=yes
PERL_VER=58
CSCOPE=yes
CPUNR=i686

另外附上本人的vimrc
其中模式设置成xterm模式的 因为在win模式的话 当选择后会进入插入状态 感觉不好用
mswin.vim里面也去掉了一些无用的按键绑定 如 C-A C-E C-Y等
  1. set nocompatible
  2. source $VIMRUNTIME/vimrc_example.vim
  3. source $VIMRUNTIME/mswin.vim
  4. behave xterm
  5. set ffs=unix,dos
  6. set langmenu=none
  7. set wmnu
  8. language C
  9. set diffexpr=MyDiff()
  10. function MyDiff()
  11.   let opt = '-a --binary '
  12.   if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  13.   if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  14.   let arg1 = v:fname_in
  15.   if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
  16.   let arg2 = v:fname_new
  17.   if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
  18.   let arg3 = v:fname_out
  19.   if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
  20.   let eq = ''
  21.   if $VIMRUNTIME =~ ' '
  22.     if &sh =~ '\<cmd'
  23.       let cmd = '""' . $VIMRUNTIME . '\diff"'
  24.       let eq = '"'
  25.     else
  26.       let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
  27.     endif
  28.   else
  29.     let cmd = $VIMRUNTIME . '\diff'
  30.   endif
  31.   silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 . eq
  32. endfunction
  33. set guioptions-=T        " 去掉工具栏,我喜欢显示的范围更大的
  34. colorscheme desert          " ps_color            
  35. set formatoptions=tcrqn2
  36. set ts=8
  37. set sw=4
  38. set bs=2      " backspace
  39. set ru
  40. set ic
  41. set is
  42. set scs
  43. set lsp=0 " space it out a little more (easier to read)
  44. set wildignore=*.bak,*.o,*.e,*~
  45. iab #i #include
  46. iab #d #define
  47. iab #e #endif
  48. set cst
  49. set csto=1
  50. set tags=./tags,../tags,../../tags,../../../tags,D:/tools/dev/Microsoft\ Visual\ Studio/VC98/Include/tags
  51. set cspc=3  " show file path's last three part
  52. set grepprg=grep\ -nH
  53. map <F1>    :Tlist<cr>
  54. map <F2>    :WMToggle<cr>
  55. map <F3>    zO
  56. map <F4>    zc
  57. map <F5>    zR
  58. map <F6>    zM
  59. map <F7>    :cn<CR>
  60. "     
  61. set vb t_vb=  " set visual bell and disable screen flash
  62. set backup    " enable backup and define the backup file
  63. set backupext=.bak
  64. set hlsearch  " hlsearch
  65. " allow backspacing over everything in
  66. " the insert mode
  67. set backspace=indent,eol,start
  68. set dir=D:\tmp\vim
  69. " 设置swap文件的目录上面
  70. set backupdir=D:\tmp\vim
  71. "设置备份文件的目录上面 我不喜欢看到每个目录下都有备份 因为一般备份用不到
  72. set foldmethod=syntax   "marker
  73. set foldlevel=100       " Don't autofold anything (but I can still fold manually)
  74. set foldopen-=search    " don't open folds when you search into them
  75. set foldopen-=undo      " don't open folds when you undo stuff
  76. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  77. " Perl
  78. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  79. let perl_extended_vars=1 " highlight advanced perl vars inside strings
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表