1) 按下gg到行首 2) 按下qa进行宏录制,a是宏标记名称 3) 按I进入插入模式,输入list.add(" 4) 按ESC进入普通模式,然后按$跳到行尾" 5) 按j进入下一行,然后按^回到行首 6) 再次按下q结束宏录制 7) 输入@a触发宏测试一下录制效果 8) 输入100@a重复宏100次,也就是影响下面的100行#执行结果 list....
"setfileformats=unix,dos,mac nmap<leader>fd:se fileformat=dos<CR>nmap<leader>fu:se fileformat=unix<CR>" use Ctrl+[l|n|p|cc]to list|next|previous|jump to count the result " map<C-x>l<ESC>:cl<CR>" map<C-x>n<ESC>:cn<CR>" map<C-x>p<ESC>:cp<CR>" map<C-x>c<ESC>:cc...
h i_Ctrl+H # 查询插入模式下 Ctrl+H 是干什么的 :h i_<Up> # 查询插入模式下方向键上是干什么的 :h pattern.txt # 正则表达式帮助 :h eval # 脚本编写帮助 :h function-list # 查看 VimScript 的函数列表 :h windows.txt # 窗口使用帮助 :h tabpage.txt # 标签页使用帮助 :h +timers # ...
To simplify this, nvim-treesitter provides commands to automate this process. If the language is already supported by nvim-treesitter, you can install it with:TSInstall <language_to_install>This command supports tab expansion. You can also get a list of all available languages and their ...
同时,YCM可以打开location-list来显示警告和错误的信息:YcmDiags。个人关于ycm的配置如下: Shell " for ycm let g:ycm_error_symbol = '>>' let g:ycm_warning_symbol = '>*' nnoremap <leader>gl :YcmCompleter GoToDeclaration<CR> nnoremap <leader>gf :YcmCompleter GoToDefinition<CR> nnoremap <leader>...
The following command displays a list of completion sources enabled for the current buffer. :VimCompleteCompletors Enable and Disable Autocompletion is enabled by default. At any time, you can enable or disable the plugin using the following commands: :VimCompleteEnable :VimCompleteDisable You can...
{name = "luasnip"}, --{name = "nvim_lua"}, { name = "buffer", options = { get_bufnrs = function() return vim.api.nvim_list_bufs() end } }, --{name = "look"}, {name = "path"} --{name = "cmp_tabnine"}, --{name = "calc"}, --{name = "spell"}, --{name ...
vim-easy-align nvim-spectre(neovim 搜索替换面板) rnvimr telescope nvim-telescope simrat39/symbols-outline auto-session persistence(auto session) vim-visual-multi(多行编辑插件) 使用ctrl-n选择单词 使用ctrl-down/ctrl-up垂直创建光标 使用shift箭头一次选择一个字符 ...
同时,YCM可以打开location-list来显示警告和错误的信息:YcmDiags。个人关于ycm的配置如下: " for ycmletg:ycm_error_symbol='>>'letg:ycm_warning_symbol='>*'nnoremap<leader>gl :YcmCompleter GoToDeclaration<CR>nnoremap<leader>gf :YcmCompleter GoToDefinition<CR>nnoremap<leader>gg :YcmCompleter GoToDefinition...
重启gvim,运行:TlistToggle启用taglist 具体步骤: 创建$HOME/.vim目录 -pc:~$ mkdir .vim 下载并解压到.vim目录中 1. 2. 3. -pc:~$ cd .vim/ -pc:~/.vim$ unzip /home/test/下载/taglist_45.zip Archive: /home/test/下载/taglist_45.zip ...