gpt4 book ai didi

vim - 在 nvim 中 set mouse = a for 是什么?

转载 作者:行者123 更新时间:2023-12-04 14:44:31 27 4
gpt4 key购买 nike

我不确定我能不能问这个问题,但是我找不到关于 mouse = a 是什么的信息,我只是发现它不能再用“ctrl + c”和“ctrl + v”复制或粘贴,但是我设法像往常一样做,我想知道 set "mouse=a" 的用途是什么, 如果它对我有用与否,或者在哪种情况下它对我有用,因为我发现的只是那个错误,我什至在 vim 页面上都找不到它,如果你能给我一个页面就好了我在哪里可以知道我的 init.vim 的每个部分如下所示,非常感谢您的理解。
我澄清一下,我刚刚在 Windows 10 上安装了 neovim,我完全是一个菜鸟

set mouse=a
set numberwidth=1
set clipboard=unnamed
syntax enable
set showcmd
set ruler
set cursorline
set encoding=utf-8
set showmatch
set signcolumn=yes
set noexpandtab
set tabstop=4 shiftwidth=4

filetype plugin indent on

set list

set relativenumber
so ~/.vim/plugins.vim
so ~/.vim/plugin-config.vim
so ~/.vim/maps.vim

colorscheme gruvbox
let g:gruvbox_contrast_dark = "hard"
"highlight Normal ctermbg=NONE
set laststatus=2
set noshowmode

" Javascript
autocmd BufRead *.js set filetype=javascript.jsx
autocmd BufRead *.jsx set filetype=javascript.jsx
augroup filetype javascript syntax=javascript

"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter

最佳答案

:set mouse=a 'a' 表示所有 vim 模式:视觉 , 正常 , 插入 , 命令行 .
这是vim的帮助:

'mouse'                 string  (default "", "a" for GUI, MS-DOS and Win32,
set to "a" or "nvi" in defaults.vim)
global
Enable the use of the mouse. Works for most terminals (xterm, MS-DOS,
Win32 win32-mouse, QNX pterm, *BSD console with sysmouse and Linux
console with gpm). For using the mouse in the GUI, see gui-mouse.
The mouse can be enabled for different modes:
n Normal mode and Terminal modes
v Visual mode
i Insert mode
c Command-line mode
h all previous modes when editing a help file
a all previous modes
r for hit-enter and more-prompt prompt
Normally you would enable the mouse in all five modes with:
:set mouse=a
If your terminal can't overrule the mouse events going to the
application, use:
:set mouse=nvi
The you can press ":", select text for the system, and press Esc to go
back to Vim using the mouse events.
In defaults.vim "nvi" is used if the 'term' option is not matching
"xterm".

When the mouse is not enabled, the GUI will still use the mouse for
modeless selection. This doesn't move the text cursor.

关于vim - 在 nvim 中 set mouse = a for 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65350712/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com