txt.vim : Universal syntax script for all txt docs, logs and other types
增加txt檔案的顯示效果,如圖:
方法如下:
1.下載txt.vim 檔案,放入systax目錄.
2.按照作者的介紹要識別txt檔案,必須如下操作:
I'd also suggest to add a file into your $HOME/ftdetect called txt.vim that contains a line:
au BufRead,BufNewFile * setfiletype txt
This way if Vim cannot detect a filetype of a file you've just opened - it sets this universal syntax.
我直接加入_vimrc檔案,現在看txt檔案好多了!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-82851/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Script – List status of all submitted DBMS jobs(轉)MIT
- JDBC differences between the DB2 Universal JDBC Driver and other DB2 JDBC driversJDBCDB2
- docker docsDocker
- [20170708]tmux script例子.txtUX
- [20120106]Extensibility Types.txt
- manage-docs-versions
- [20181219]script使用小技巧.txt
- Dynamics 365 Web API Set Values of all Data Types using Web API in Dynamics CRM Through C#WebAPIC#
- [20210223]sys與Extended Data Types.txt
- EF Core – Owned Entity Types & Complex Types
- Mail To SyntaxAI
- TypeScript @typesTypeScript
- stock Types
- [20160202]crosscheck archivelog all.txtROSHive
- [20230207]ANSI DATE and TIMESTAMP SQL syntax.txtSQL
- Runloop + runtime + otherOOP
- 支援Java API Docs中文版JavaAPI
- Types of Locks (340)
- [20130916]12c Indexing Extended Data Types and index.txtIndex
- OJB簡介--翻至ojb docs (轉)
- PHP函式庫(other)PHP函式
- Other SGA Initialization Parameters (96)
- 譯|There Are No Reference Types in GoGo
- TypeScript 之 Object TypesTypeScriptObject
- Two Types of Error in JAVAErrorJava
- Understanding Service Types
- Scala的Abstract Types
- Types of SAP Support PackagesPackage
- types of undo segments(ZT)
- Behind RabbitMQ Exchange TypesMQ
- Trusted Types APIRustAPI
- Script
- 請說說`<script>`、`<script async>`和`<script defer>`的區別
- Another 20 Docs and Guides for Front-End DevelopersGUIIDEDeveloper
- read by other session等待事件Session事件
- Python class中的otherPython
- read by other session 測試Session
- 等待事件:read by other session事件Session