(force to previous buffer, same as :next!) :last -> 编辑最后一个文件 (last buffer) :first -> 编辑最前面的文件 (first buffer) :set autowrite -> 设定自动保存,当你编辑下一个文件的时候,目前正在编辑的文件如果改动,将会自动保存 (automatic write the buffer when you switch to next buffer) :...
:buffer N 跳转到"N"缓冲区N为缓冲区编号,系统自动编号,用ls可查看 :argdo 对缓冲区列表内的所有缓冲区执行一条Ex命令:argdo write 保存参数列表中的全部文件 :bufdo :ls列出的所有缓冲区上执行一条Ex命令 :wall 保存参数列表中的全部文件与wnext的区别,wnext为先运行write命令,再运行next命令 :bd 删除缓冲...
<leader>/<A-Left>(<D-Left>)/<A-,>(<D-,>) 🄽 - go to previous buffer on the left(Notice some terminal/GUI could eatAlt+,Alt+.orCommand+,Command+.). <leader>bd🄽 - close current buffer and go to a nearest buffer without closing vim window. F10/SHIFT...
,z- go to previous buffer (:bp) ,x- go to next buffer (:bn) Cmd-jandCmd-kto move up and down roughly by functions (Altin Linux) Ctrl-o- Old cursor position - this is a standard mapping but very useful, so included here
|g<| g< display previous command output (can be used to debug script)[Vim: Move window left/right? - Stack Overflow](https://stackoverflow.com/a/4561676/5046735) # Enhance ## line wrap |g^| g^ 1 when 'wrap' off go to leftmost non-white ...
To disable a map use: map <Plug> <Plug>Markdown_MoveToParentHeader Commands The following requires:filetype plugin on. :HeaderDecrease: Decrease level of all headers in buffer:h2toh1,h3toh2, etc. If range is given, only operate in the range. ...
"set scrolloff=3 " 光标移动到buffer的顶部和底部时保持3行距离 set novisualbell " 不要闪烁(不明白) set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")} "状态行显示的内容 ...
edit编辑文件,后面跟上文件路径就可以打开一个新的buffer来编辑文件 编辑文件扩展命令 :edit{relative-path-to-file} 执行这个命令后如果不存在文件那么就会新建一个再打开,这个命令的简写是:e 保存文件和关闭文件命令 :write简写是:w,用于保存文件 :quit简写是:q,用于关闭文件 ...
set bufhidden=hide " 当buffer被丢弃的时候隐藏它 colorscheme evening " 设定配色方案 set number " 显示行号 set cursorline " 突出显示当前行 set ruler " 打开状态栏标尺 set shiftwidth=4 " 设定 << 和 >> 命令移动时的宽度为 4 set softtabstop=4 " 使得按退格键时可以一次删掉 4 个空格 ...
call GoFmt()编辑根据 MattyW 的回答,我想起了另一个选择:au FileType go au BufWritePre <buffer...