第一种——正常/普通/命令模式(Normal mode) 命令模式主要的作用是控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入Insert mode下,或者到 last line mode。 第二种——插入模式(Insert mode) 只有在Insert mode下,才可以做文字输入,按「ESC」键可回到命令行模式。该模式是用的最频繁
一般设置,比如不要 tab 等 autocmd FileType python set tabstop=4 shiftwidth=4 expandtab autocmd FileType python map <F12> :!python %<CR> " 选中状态下 Ctrl+c 复制 "vmap <C-c> "+y "十六进制显示文件 nnoremap <leader>H :%!xxd<CR> "二进制显示文件 nnoremap <leader>B :%!xxd -r<...
在当前行上移动光标:0^$fFtT,;0→ 到行头 ^→ 到本行的第一个非blank字符 $→ 到行尾 g_→ ...
Click Copy Action Id to copy an ID or Stop Tracking to disable the tracking mode. Map an action in ideavimrc In the ideavimrc file, map an action using the map command and the <Action> keyword, for example: map \r <Action>(ReformatCode) Press CtrlShift0O to reload the changes...
When you press <leader>r you can search and replace the selected text:vnoremap <silent> <leader>r :call VisualSelection('replace')<CR>Surround the visual selection in parenthesis/brackets/etc.:vnoremap $1 <esc>`>a)<esc>`<i(<esc> vnoremap $2 <esc>`>a]<esc>`<i[<esc> vnoremap ...
Plug'kana/vim-textobj-function',{'for':['c','cpp','vim','java'] }Plug'sgur/vim-textobj...
x, D, and & are not separate commands either. They are synonyms of dl, d$, and :s\r, respectively. Here is the full list of synonyms.You can read a post about how modes work in Vim and IdeaVim.Have you ever used U after dd? Don't even try....
let g:vimtex_quickfix_mode=0 set conceallevel=1 let g:tex_conceal='abdmg' 最后两行控制的是“隐藏”功能。开启了这个功能,除了你光标所在的那一行之外,文本里夹杂的LaTeX代码就都会隐藏或者替换成其他符号。 比如说在下面动...
快捷键操作 回车键/o(两者作用相同) 打开文件/目录 Ctrl - ] 切换到光标所在目录 a 新建文件 r 重命名文件 x 剪切文件 c 复制文件 p 粘贴文件 d 删除文件 H 是否显示隐藏文件 Tab 预览文件 Ctrk-v 垂直拆分中打开文件 Ctrl-x 水平拆分中打开文件...
CtrlhDoes a fuzzy search in your command mode history Python hotkeys CommandsDescriptions SHIFT+kOpen documentation Control+SpaceAutocomplete ,dGo to the Class/Method definition ,rRename object definition ,nShow where command is usage Ruby hotkeys ...