syntax.vim
来自「MSYS在windows下模拟了一个类unix的终端」· VIM 代码 · 共 35 行
VIM
35 行
" Vim syntax support file" Maintainer: Bram Moolenaar <Bram@vim.org>" Last Change: 1998 Dec 6" This file is used for ":syntax on"." It installs the autocommands and starts highlighting for all buffers.if has("syntax")" If Syntax highlighting appears to be on already, turn it off first, so that" any leftovers are cleared.if exists("syntax_on") || exists("syntax_manual") so <sfile>:p:h/nosyntax.vimendif" Load the Syntax autocommands and set the default methods for highlighting.so <sfile>:p:h/synload.vim" Load the FileType autocommands, in case that hasn't been done yet.filetype on" Set up the connection between FileType and Syntax autocommands." This makes the syntax automatically set when the file type is detected.augroup syntaxau! FileType * exe "set syntax=" . expand("<amatch>")augroup END" Execute the syntax autocommands for the each buffer.doautoall filetype BufReadendif " has("syntax")" vim: ts=8 sts=0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?