ConEmu:Vim 语法亮点 [英] ConEmu: Vim Syntax Highlight

查看:23
本文介绍了ConEmu:Vim 语法亮点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 ConEmu 中获得 vim 语法高亮?

Is it possible to get vim syntax highlighting in ConEmu?

推荐答案

注意.项目站点上可能存在一些更新的信息.

Note. Some updated information may exists on the project site.

好吧,自 130120 以来的构建在 vim 中支持 256 种颜色.你需要

Well, builds since 130120 supports 256 colors in vim. You need to

  • 选中功能"页面上的注入 ConEmuHk"和ANSI X3.64/xterm 256 色"选项
  • 选中颜色"页面上的TrueMod(24 位颜色)支持"选项
  • 编辑您的 vimrc 文件,示例行位于此处.当然,你需要一些 256 色的 vim 方案,在这个例子的最后一行是 zenburn.

  • Check options "Inject ConEmuHk" and "ANSI X3.64 / xterm 256 colors" on "Features" page
  • Check option "TrueMod (24bit color) support" on "Colors" page
  • Edit your vimrc file, sample lines are here. Of course, you need some 256-color vim scheme, it is zenburn in the last line of this example.

set term=xterm
set t_Co=256
let &t_AB="\e[48;5;%dm"
let &t_AF="\e[38;5;%dm"
colorscheme zenburn

  • 并且vim"必须是vim.exe ATM.

    注意.原始" Vim(来自 gvim##.exe 和 vim##w32.zip) 通过测试.MinGW 的 Vim 无法切换到使用 Ansi 序列.

    Note. 'Original' Vim (Win32 console executable from gvim##.exe and vim##w32.zip) passed tests. MinGW's Vim fails to switch to using Ansi sequences.

    这篇关于ConEmu:Vim 语法亮点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆