1、命令行模式Command-line操作技巧 :w 保存 save :w!强制保存 :q没有进行任何修改,退出 quit :q!修改了,不保存,强制退出 :wq 保存并退出 :wq!强制保存并退出 :x 保存退出 :e! 复原,恢复到文件打开后,没有进行修改时的状态。 修改了很多,不想保存,想复原,按:e! 在正常模式下,按下大写的ZZ,也可以保...
If you’re happy with the changes you’ve made to your file, you can exit and save the changes using the:wq(write and quit) command. Make sure you are entirely satisfied that you want your screen edits written to the file before you proceed. 如果对文件所做的更改感到满意,则可以使用:wq...
Visual mode command v_ :help v_u Insert mode command i_ :help i_<Esc> Command-line command : :help :quit Command-line editing c_ :help c_<Del> Vim command argument - :help -r Option ' :help 'textwidth' 查看错误信息 (nothing) :help E37 2.命令 编辑命令: a 添加字符 A 从行尾...
'vim'is the command tostartthe Vim editor,'tutor'is the name of the file you wish to edit. Use a file that may be changed. 3. Insert and delete text as you learnedinthe previous lessons. 4. Save the file with changes andexitVim with: :wq <ENTER> 5. If you have quit vimtutorin...
划重点::w,:write,:saveas这样的 vim 命令,其实是对应到定义好的 c 回调函数:ex_write。ex_write函数是数据写入的核心函数。再比如,:quit对应ex_quit,用于退出的回调。 换句话说,vim 里面支持的类似:w,的命令,其实在初始化的时候就确定了。人为的交互只是输入字符串,vim 进程从终端读到字符串之后,找到对应...
vim和emacs是linux环境下的文本编辑利器,关于vim和emacs谁更优秀的话题从来没有断过,我在这里就不再评判了,vim是linux下的默认编辑器,学好了vim将会一生受用,我之前学vim是在网上找的一些资料,读博客之类的,使用了几年vim始终感觉没有什么大的进步,后来在vim官网看到vim书籍推荐,其中一本就是《vim实用技巧》,后来...
Insert and delete text as you learned in the previous lessons. 按照你在前几节你所学到的插入、删除文本。 Save the file with changes and exit Vim with: :wq 保存对文件的修改,并退出vim: :wq If you have quit vimtutor in step 1 restart the vimtutor and move down to the following summary...
s:read_template_into_buffer(template) " has to be a function to avoid the extra space fzf#run insers otherwise execute '0r ~/.config/nvim/sample_vimspector_json/'.a:template endfunction command! -bang -nargs=* LoadVimSpectorJsonTemplate call fzf#run({ \ 'source': 'ls -1 ~/.config...
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by " other plugin before putting this into your config. inoremap <silent><expr> <TAB> \ coc#pum#visible() ? coc#pum#next(1) : \ CheckBackspace() ? "\<Tab>" : \ coc#refresh() inoremap <expr><S-TAB...
ZZ/ZQSave and Quit/Quit. Key/CommandsFunction ESC/Ctrl-[Enter the normal mode. Move commandMost move commands in the normal mode are available. y/d/x/cCopy/Cut/Cut/Cut and insert (d=x) Y/D/X/CMove to the end of the line, then Copy/Cut/Cut/Cut and the insert mode (D=X) ...