免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3833 | 回复: 5

谁有vim的syntax文件 [复制链接]

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
发表于 2010-01-12 13:35 |显示全部楼层
10可用积分
我现在用的是vim72,w32下的, 没有这个文件。 谁有, 给一个

最佳答案

查看完整内容

syntax.vim ??

论坛徽章:
0
发表于 2010-01-12 13:35 |显示全部楼层

回复 #1 寂寞烈火 的帖子

syntax.vim  ??

syntax.rar

724 Bytes, 下载次数: 51

论坛徽章:
0
发表于 2010-01-12 13:39 |显示全部楼层
倒是有一个folder "syntax". 将近4M

评分

参与人数 1可用积分 +5 收起 理由
寂寞烈火 + 5 我很赞同

查看全部评分

论坛徽章:
0
发表于 2010-01-12 13:49 |显示全部楼层
GVIM的syntax文件内容:

  1. " Vim syntax support file
  2. " Maintainer:        Bram Moolenaar <[email]Bram@vim.org[/email]>
  3. " Last Change:        2001 Sep 04

  4. " This file is used for ":syntax on".
  5. " It installs the autocommands and starts highlighting for all buffers.

  6. if !has("syntax")
  7.   finish
  8. endif

  9. " If Syntax highlighting appears to be on already, turn it off first, so that
  10. " any leftovers are cleared.
  11. if exists("syntax_on") || exists("syntax_manual")
  12.   so <sfile>:p:h/nosyntax.vim
  13. endif

  14. " Load the Syntax autocommands and set the default methods for highlighting.
  15. runtime syntax/synload.vim

  16. " Load the FileType autocommands if not done yet.
  17. if exists("did_load_filetypes")
  18.   let s:did_ft = 1
  19. else
  20.   filetype on
  21.   let s:did_ft = 0
  22. endif

  23. " Set up the connection between FileType and Syntax autocommands.
  24. " This makes the syntax automatically set when the file type is detected.
  25. augroup syntaxset
  26.   au! FileType *        exe "set syntax=" . expand("<amatch>")
  27. augroup END


  28. " Execute the syntax autocommands for the each buffer.
  29. " If the filetype wasn't detected yet, do that now.
  30. " Always do the syntaxset autocommands, for buffers where the 'filetype'
  31. " already was set manually (e.g., help buffers).
  32. doautoall syntaxset FileType
  33. if !s:did_ft
  34.   doautoall filetypedetect BufRead
  35. endi
复制代码

评分

参与人数 1可用积分 +5 收起 理由
寂寞烈火 + 5 我很赞同

查看全部评分

论坛徽章:
0
发表于 2010-01-12 13:51 |显示全部楼层
这个是suse下的,跟上面一样都是vim72的:


  1. " Vim syntax support file
  2. " Maintainer:   Bram Moolenaar <[email]Bram@vim.org[/email]>
  3. " Last Change:  2001 Sep 04

  4. " This file is used for ":syntax on".
  5. " It installs the autocommands and starts highlighting for all buffers.

  6. if !has("syntax")
  7.   finish
  8. endif

  9. " If Syntax highlighting appears to be on already, turn it off first, so that
  10. " any leftovers are cleared.
  11. if exists("syntax_on") || exists("syntax_manual")
  12.   so <sfile>:p:h/nosyntax.vim
  13. endif

  14. " Load the Syntax autocommands and set the default methods for highlighting.
  15. runtime syntax/synload.vim

  16. " Load the FileType autocommands if not done yet.
  17. if exists("did_load_filetypes")
  18.   let s:did_ft = 1
  19. else
  20.   filetype on
  21.   let s:did_ft = 0
  22. endif

  23. " Set up the connection between FileType and Syntax autocommands.
  24. " This makes the syntax automatically set when the file type is detected.
  25. augroup syntaxset
  26.   au! FileType *        exe "set syntax=" . expand("<amatch>")
  27. augroup END


  28. " Execute the syntax autocommands for the each buffer.
  29. " If the filetype wasn't detected yet, do that now.
  30. " Always do the syntaxset autocommands, for buffers where the 'filetype'
  31. " already was set manually (e.g., help buffers).
  32. doautoall syntaxset FileType
  33. if !s:did_ft
  34.   doautoall filetypedetect BufRead
  35. endif
复制代码

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
发表于 2010-01-12 14:39 |显示全部楼层
感谢ls几位, 我倒vim的站点下载一个。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP