autocmd Filetype python set omnifunc=pythoncomplete#CompleteTags autocmd Filetype tex set omnifunc=syntaxcomplete#Complete """ 英文拼写检查 """ " 拼写错误被画红线,比缺省设置更美观 " """ set spell spelllang=en_us setlocal spell spelllang=en_us highlight clear SpellBad highlight SpellBad term=...
Starting a new note:Execute the:Notecommand to create a new buffer and load the appropriate file type and syntax You can also start a note with Vim commands like:edit,:tabeditand:splitby starting the filename withnote:, as in:edit note:todo(the part afternote:doesn't have to be the ...
Note that this command can be a bit slow, because the parser for the note taking syntax is written in Vim script (for portability) and has not been optimized for speed (yet). #The:NoteToMarkdowncommand Convert the current note to aMarkdown document. The vim-notes syntax shares a lot o...
expr 表达式代表折叠 syntax 语法高亮来定义折叠 diff 没有变更的文本进行折叠 marker 文中的标示折叠 折叠代码 前提是开启代码折叠,下列按键才起作用。 zc 折叠当前代码 zo 打开当前折叠 zm 关闭所有折叠 zr 打开所有折叠 执行命令 :!command :!bash 创新启动一个 bash 执行命令,而没有退出 vim,执行完命令后 ex...
syntax on "语法高亮 filetype on "检测文件类型 set nocompatible "不要vim模仿vi模式 set hlsearch "输入字符串就显示匹配点 set wildmenu "自动补全命令时候使用菜单式匹配列表 set nohls "查询非常方便,能够快速的查找到答案 set nobackup "去掉编辑提示 ...
filetype on " 载入文件类型插件 filetype plugin on " 为特定文件类型载入相关缩进文件 filetype indent on " 保存全局变量 set viminfo+=! " 带有如下符号的单词不要被换行分割 set iskeyword+=_,$,@,%,#,- " 语法高亮 syntax on " 高亮字符,让其不受100列限制 ...
airline_right_alt_sep = '<' " 设置行号 set number " 打开语法高亮 syntax on if has('gui_running') set background=light else set background=dark endif let g:solarized_termcolors=256 colorscheme solarized set tabstop=4 set softtabstop=4 set shiftwidth=4 set textwidth=79 set expandtab ...
:syntax on: Enable syntax highlight: :set ts=4: Set tab width :set shiftwidth=4: Set shiftwidth (when using command like >>) :set expandtab: Expand tab to space :set laststatus=2: show statusline :set laststatus=0: hide statusline :set guioptions-=m: remove the menu :set guioptions...
(LCTT 译注:这里的syn是指syntax,可用于设置文件所用的编程语言,开启对应的语法高亮,以及执行自动事件 (autocmd)。) 设置文件里的制表符(TAB)的宽度(以空格的数量表示): settabstop=4 设置移位操作>>或<<的缩进长度(以空格的数量表示): setshiftwidth=4 ...
1、vim ~/.vimrc 进入配置文件 如果不知道vimrc文件在哪,可使用 :scriptnames 来查看 set nu #行号 set tabstop=4 #一个tab为4个空格长度 set ai #设置自动缩进 syntax on #高亮 2、基本 空格键 向右移动一格 x 删除后面的字符 X 删除前一个字符 删... ...