我试图自定义 gvim 一点。我看到Edit菜单下有一个选项可以更改Settings Window。它打开了,但随后出现以下错误。
E382 不能写,'buftype' 选项被设置。
我如何写我改变的选项?网上我看到有人说我需要的选项添加到vimrc文件无论是在~/.vimrc或/etc/vimrc或/etc/gvimrc。我认为我可以直接通过 gvim 编辑器来完成,而不是通过向我的~/.vimrc文件添加选项。
在我看来,这是一个严重的 RTFM 案例。前几行解释了如何编辑它。
" Each "set" line shows the current value of an option (on the left).
" Hit <CR> on a "set" line to execute it.
" A boolean option will be toggled.
" For other options you can edit the value.
" Hit <CR> on a help line to open a help window on this option.
" Hit <CR> on an index line to jump there.
" Hit <Space> on a "set" line to refresh it.
Run Code Online (Sandbox Code Playgroud)
然后我按下Enter,我的设置立即生效
on line 155
lines number of lines in the display
set lines=50
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12678 次 |
| 最近记录: |