首先我们发现每次调试结束的时候这个buffer都会被遗留,需要我们手动的进行关闭,除了针对buffer通用的:q或者:bd命令进行关闭,还可以使用:lua require('dap').repl.close()。当然也可以配套使用:lua require('dap').repl.open()来打开一个 repl的窗口,既然每次都会自动新建,那么这里我们就不需要进行新建,主要用于想办...
{address}:表示复制的目标位置,这两个参数都可以缺省,用于表示 Vim 光标所在当前行。例如:5copy. 表示复制 Vim 当前打开的文件的第 5 行到当前行(用 . 表示),即为第 5 行创建一份副本,并放到当前行下方。下标列出了使用 copy 命令的缩写形式 t 进行文件复制的一些实例及用途,用于理解复制命令 copy 的用途。
nvim ~/.config/nvim/after/plugin/bufferline.lua local status, bufferline = pcall(require, "bufferline") if (not status) then return end vim.opt.termguicolors = true bufferline.setup { options = { --numbers = "ordinal" | "buffer_id" | "both" | function({ ordinal, id, lower, ra...
set showmatch " 高亮显示匹配的括号 set scrolloff=3 " 光标移动到buffer的顶部和底部时保持3行距离 set smartindent " 为C程序提供自动缩进 colorscheme evening " 设置主题颜色 au BufRead,BufNewFile * setfiletype txt " 高亮显示普通txt文件(需要txt.vim脚本) "“变量名的自动补全,可以自己手动补全CTRL+N/...
tab/buffer control set tabpagemax=10 cmap Tabe tabe nnoremap <silent>- :tabprevious<CR> nnoremap <silent><Tab> :tabnext<CR> nnoremap <Leader>tp :tabprevious<CR> nnoremap <Leader>tn :tabnext<CR> nnoremap <Leader>- :tabm -1<CR> nnoremap <Leader><Tab> :tabm +1<CR> nnoremap <Loca...
Additionally, setting the buffer local variableb:qs_local_disablewill have the same effect on a specific buffer. letb:qs_local_disable=1 Disable plugin on long lines Turn off this plugin when the length of line is longer thang:qs_max_chars. (default: 1000) ...
Starting a new note: Execute the :Note command to create a new buffer and load the appropriate file type and syntax You can also start a note with Vim commands like :edit, :tabedit and :split by starting the filename with note:, as in :edit note:todo (the part after note: doesn...
api.nvim_create_user_command("Format", "call CocAction('format')", {}) -- " Add `:Fold` command to fold current buffer vim.api.nvim_create_user_command("Fold", "call CocAction('fold', <f-args>)", {nargs = '?'}) -- Add `:OR` command for organize imports of the current...
" 光标移动到buffer的顶部和底部时保持3行距离 set scrolloff=3 "为C程序提供自动缩进 set smartindent " 高亮显示普通txt文件(需要txt.vim脚本) au BufRead,BufNewFile * setfiletype txt "自动补全 :inoremap ( ()<ESC>i :inoremap ) <c-r>=ClosePair(')')<CR> ...
首先我们发现每次调试结束的时候这个buffer 都会被遗留,需要我们手动的进行关闭,除了针对buffer通用的 :q 或者:bd命令进行关闭,还可以使用 :lua require('dap').repl.close()。当然也可以配套使用 :lua require('dap').repl.open()来打开一个 repl的窗口,既然每次都会自动新建,那么这里我们就不需要进行新建,主要...