使用Vim Mode 中文写作,第一个遇到的瓶颈问题就是中英文输入法切换,在切换到 insert 模式自动切换到中文输入法,回到 normal 模式自动切换到英文输入法。目前,已经有一个插件obsidian-vim-im-switch-plugin实现了该功能,需要搭配fcitx-remote-for-osx这个命令行工具使用。我直接修改了源文件 main.m,替换默认输入法配置...
g~ - switch case up to motion gu - 小写操作修饰符 gU - 大写操作修饰符 cc - 将光标所在的行删除, 然后进入插入模式 C - 将光标处到行尾删除, 然后进入插入模式 c$ - 将光标处到行尾删除, 然后进入插入模式 ciw - 将光标所在的单词删除, 然后进入插入模式 cw or ce - 从光标位置开始, 修改单词...
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<CR>" Python 文件的一般设置...
3、插入、删除和撤销:i、A、x、u键、ctrl+r 在command模式下:按下i键可以进入insert模式,在光标后插入文字,输入完成按esc键(A键,光标移动到本行末输入);按下x键可以删除光标所在位置的字符;按下u键可以撤销操作,回到上一步。ctrl+r撤销掉撤销命令。 按下esc...
三种模式切换与关系:命令模式:使用vim打开文件的时候,就进到命令模式。vim filename :打开或新建文件...
Are you in insert mode (a mode for entering text)? 您是否处于插入模式(输入文本的模式)? Then hitting o would put the letter o on the screen. 然后点击o会将字母o放在屏幕上。 But as soon as you switch into a different mode, the letter o will change its function to adding a new line ...
switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help):p#查看现有分区表 Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes ...
命令模式和插入模式(Command Mode and Insert Mode) You need to switchviinto the appropriate mode for what you’re trying to accomplish. 您需要将vi切换到要完成的任务的适当模式。 Command mode is the default mode whenvilaunches. Unless you know better, you’ll start trying to type. If you happ...
" // The switch of the Source Explorer nmap <F12> :SrcExplToggle<CR> "// Set the height of Source Explorer windowletg:SrcExpl_winHeight =16" // Set 100 ms for refreshing the Source Explorer let g:SrcExpl_refreshTime = 500 "// Set "Enter" key to jump into the exact definition conte...
lesson1:move cursor and insert text on operator and motion: operator number(times) motion(basic motion) lesson2:delete texts and undo lesson3:change texts lesson4:search and replace text/status/match lesson5: read and write files selecting text to write(with v mode) ...