1.1 vim配置(.vimrc配置) 1.下载vim(略)。让vi命令也可以使用vim的配置,需要修改 vi /etc/bashrc 增加如下一行内容 alias 1. ( alias美 [ˈeɪliəs]别名) 2.在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本.所以,一般情况下把.vimrc文件创建在当前用户的根...
,屏幕左下角出现REPLACE字样~ 光标所在处的字符进行大小写互换 #数字 + r 可能会产生一些物理反应。先输入【数字】再输入 r,最后输入新字符,说明从当前光标的位置开始,替换【数字】个新字符。 修改替换案例: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 第一行,先将光标移动到字符 A 处,按下 r 键...
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) retriving and merging files lesson6:set options lesson 7:using help commad and .vimrc file use help manual vimtutor textbook: ...
(类似office中在工作区双击鼠标定位) set mouse=a " 鼠标可用 set selection=exclusive set selectmode=mouse,key set shortmess=atI " 启动的时候不显示那个援助索马里儿童的提示 set report=0 " 通过使用: commands命令,告诉我们文件的哪一行被改变过 set noerrorbells " 不让vim发出讨厌的滴滴声 set fillchar...
光标移动快捷键[1]当你对这些快捷键形成肌肉记忆,你就可以远离鼠标,双手不离键盘在文本中自由行走。在...
{ behavior = cmp.ConfirmBehavior.Replace, select = false }, ['<Tab>'] = function(fallback) if cmp.visible() then cmp.select_next_item() elseif luasnip.expand_or_jumpable() then vim.fn.feedkeys(vim.api.nvim_replace_termcodes('<Plug>luasnip-expand-or-jump', true, true, true), ...
Type rx to replace the character at the cursor with x . 键入rx 以替换光标处的字符 Move the cursor to the first line below marked --->. 移动光标到以--->标记的行。 Move the cursor so that it is on top of the first error. 移动光标到第一个错误。 Type r and then the character whic...
af- visual mode command which selects increasingly large blocks of text. For example, if you had "blah (foo [bar 'ba|z'])" then it would select 'baz' first. If you pressedafagain, it'd then select [bar 'baz'], and if you did it a third time it would select "(foo [bar '...
vim-expand-region: Allows you to visually select increasingly larger regions of text using the same key combination vim-fugitive: A Git wrapper so awesome, it should be illegal vim-indent-object: Defines a new text object representing lines of code at the same indent level. Useful for python...
Text editors. They aren't something that most users put a lot of thought into. However, not all text editors are alike, and with more time at the terminal, y...