Coder Social home page Coder Social logo

calon / txt Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 4 KB

用于中文书写的 Vim 语法高亮文件,支持常见序号和不太复杂的配对标点符号,建议搭配 ir_black 主题使用。

Vim Script 100.00%

txt's People

Contributors

calon avatar freed-wu avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

txt's Issues

你好,这个插件在windows7/10 下面使用时会报一些错误,但仍能生效,请问是什么原因呢?

因为vim默设将txt识别为text格式,所以我将此插件重命名为text.vim放在syntax/目录下使用。
在linux下使用良好。
但同样的vimrc和文件拷到 windows7/10 下面后,gvim关联txt格式,然后双击打开文件时,会弹出错误信息。
点击确认按钮后仍然能为txt着色。

我排查问题,只将 txt.vim 放在 syntax/目录下,然后在 vimrc 中添加一条命令如下
autocmd BufEnter * if &filetype == "text" | setlocal ft=txt | endif
这样就不会报错。
请问这是为什么呢?

因为错误信息太长,可以在 https://github.com/tankb52/txt/blob/master/text_error.txt 这里查看。

前186行为 cp936格式,186行以后为utf8格式。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.