📄 syntax.vim
字号:
" 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -