vimrc 简单配置说明

283 阅读1分钟

代表Escape键; 代表Enter键; same as 关于键盘符号的详细说明,请使用:h key-notation命令查看帮助信息。

摘录; <S-...> shift-key shift <S-

<C-...> control-key control ctrl <C-

<M-...> alt-key or meta-key meta alt <M-

<A-...> same as <M-...> <A-

Control- left mouse click

nmap是Normal模式, vmap是Visual模式, cmap是CommandLine模式, imap是Insert模式,omap是Operator模式 多个模式 map是 Normal + Visual + Operator 模式 map!是Insert + CommandLine模式 所以 map + map! 就是所有模式下

比如: // Ctrl+j组合键,在插入模式下返回命令模式 imap // Ctrl+k组合键,在插入模式下,光标后退一格 imap A

filetype on 打开 vim 对基于文件类型的支持 执行上上面的命令的时可以加上 plugin indent,这同时打开基于文件类型的插件和缩进 就是: filetype plugin indent on ---- 基于文件类型的支持,及其插件和缩进

tagbar 使用VimPlug管理器安装 在你的.vimrc下添加: Plug 'majutsushi/tagbar' -----------单引号里面的内容来自于github … 然后在Vim中运行以下命令: :source % :PlugInstall

github.com/preservim/t…

How to build and install To build with Autotools (Autoconf, Automake, and Libtool) on GNU/Linux, OSX, or Windows 10 WSL,

sudo apt-get install autoconf automake libtool 也可以分别安装

$ git clone https://github.com/universal-ctags/ctags.git
$ cd ctags
$ ./autogen.sh
$ ./configure --prefix=/usr/local  /where/you/want # defaults to /usr/local
$ make
$ make install # may require extra privileges depending on where to install

nmap :TagbarToggle -----按下F8就可以显示代码结构了 let g:tagbar_ctags_bin = 'ctags'
let g:tagbar_width = 60

  1. vim插件之incsearch mounui.com/314.html