插入模式下键入<C-r>0(数字0) line one,line twoline three (上一次光标处)line one(新光标处) 在光标处粘贴文本 (1)插入-普通模式 插入-普通模式:在插入模式下能够执行一次普通模式。即在插入-普通模式下,执行完一次普通模式命令后自动回到插入模式。在插入模式下使用ctrl+o切换到插入-普通模式。 小技巧 ...
and starts Insert mode.See Select-mode.If the'showmode'option is on"-- SELECT --"is shown at the bottomofthe window.Insert mode In Insert mode the text you type is inserted into the buffer.See Insert-mode.If the'showmode'option is on"-- INSERT --"is shown at the bottomofthe wind...
let g:multi_cursor_select_all_word_key = '<A-n>'let g:multi_cursor_start_key = 'g<C-n>'let g:multi_cursor_select_all_key = 'g<A-n>'let g:multi_cursor_next_key = '<C-n>'let g:multi_cursor_prev_key = '<C-p>'let g:multi_cursor_skip_key = '<C-x>'let g:multi_...
rg search result (ALT-A to select all, ALT-D to deselect all) :Lines [QUERY] Lines in loaded buffers :BLines [QUERY] Lines in the current buffer :Tags [QUERY] Tags in the project (ctags -R) :BTags [QUERY] Tags in the current buffer :Marks Marks,查看vim的mark,这个有点好用 :Win...
set selectmode=mouse,key "--- "界面设置 "--- "显示行号 set nu! "高亮显示当前行 set cursorline "背景使用黑色 set background=dark "去除vim的GUI版本中的toolbar set guioptions-=T "在编辑过程中,在右下角显示光标位置 set ruler "always show...
:tselect tagname – 打开选择列表 tab键补齐 :tag xyz<tab> – 补齐以xyz开头的tag名,继续按tab键,会显示其他的。 :tag /xyz<tab> – 会用名字中含有xyz的tag名补全。 13.3 cscope cscope -Rbq: 生成cscope.out文件 :cs add /path/to/cscope.out /your/work/dir ...
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")} "状态行显示的内容 set laststatus=1 " 启动显示状态行(1),总是显示状态行(2) set foldenable " 允许折叠 ...
Vim的无插件编辑技巧已经足够惊艳:光标移动快捷键[1]当你对这些快捷键形成肌肉记忆,你就可以远离鼠标,...
:delm! -> 删除全部书签 (delete all marks) :marks -> 显示系统全部书签 (show all bookmarks) 标志(tag) :ta -> 跳转入标志 (jump to tag) :ts -> 显示匹配标志,并且跳转入某个标志 (list matching tags and select one to jump) ...
gg/G Select the first/last item (in normal mode) <CR> Confirm selection <C-x> Go to file selection as a split <C-v> Go to file selection as a vsplit <C-t> Go to a file in a new tab <C-u> Scroll up in preview window <C-d> Scroll down in preview window <C-f> Scroll...