Vim way to explore https:https://cdn.v2ex.com/navatar/077e/29b1/249_normal.png?m=1592121370 https:https://cdn.v2ex.com/navatar/077e/29b1/249_large.png?m=1592121370 2025-09-29T08:35:23Z Copyright © 2010-2018, V2EX vscodevim 中英文切换异常 tag:www.v2ex.com,2025-09-29:/t/1162676 2025-09-29T08:25:08Z 2025-09-29T08:35:23Z pp3182429 member/pp3182429 问题:

  1. 在 normal 模式,输入中文会直接切换到 insert 模式,并且会插入有分隔号的拼音,将原有的内容替换掉。

  2. 在 insert 模式下,输入中文的标点符号会连续出现两个标点符号。

这个老哥的解法真的有用!

设置( command + ,) -> 搜索 'editor.experimentalEditContextEnabled' -> 关闭勾选

https://blog.csdn.net/loyangel/article/details/148811251

issue: https://github.com/VSCodeVim/Vim/issues/9678

]]> 写了一个 Neovim 国际化插件 i18n.nvim tag:www.v2ex.com,2025-09-11:/t/1158454 2025-09-11T01:31:57Z 2025-09-11T01:31:57Z yelog member/yelog 如果有用 neovim 开发有国际化的项目,可以尝试一下。主要有实现了如下功能点:

https://github.com/yelog/i18n.nvim

]]>
Lazyvim grep 搜索,弹出来的右侧窗口怎么设置内容自动换行? tag:www.v2ex.com,2025-08-24:/t/1154586 2025-08-24T09:43:35Z 2025-08-24T16:30:27Z emisora member/emisora 问题描述

使用 lazyvim 的过程中,想搜索文件中的关键字,并快速查看完整内容,不想进入到文件中。但是预览的窗口是不自动换行的,这样预览的内容就看不全了。到底在哪里设置,才能让预览的内容自动换行呢?

具体路径:

  1. 打开 lazyvim
  2. 按 space ,按/,进入 grep(Root dir)
  3. 弹出来的窗口左侧是文件名,右侧是个文件的预览窗口。

请问这个预览窗口的内容如何设置自动换行呢?

其他关于配置路径问题

还有,lazyvim 的配置一直没搞清楚,是两个地方都可以配置么? 位置 1: ~/.config/nvim/lua/plugins/xxx.lua 这里是不是可以添加新插件并配置? 位置 2:~/.local/share/nvim/lazy/LazyVim/lua/lazyvim/plugins/extras/xxx.lua 是不是下载的插件配置文件都在这里。

一直没有弄清楚这两个位置之间的关系。有没有大佬可以帮忙解释下,感谢!

]]>
只会:q?关于 Vim 退出方式,不会还有人知道的比我还多吧? tag:www.v2ex.com,2025-08-06:/t/1150515 2025-08-06T17:21:57Z 2025-08-07T11:42:16Z BinCats member/BinCats :q!
:wq
:x
ZZ
ZQ
:qa
:qa!
:wqa
:xa
:cqa
:!kill -9 %
:!pkill -f vim
:!reboot ]]>
求问 VS Code 中使用 Vim 插件, Normal 模式下 Tab 被接管了(Insert 模式下可以),没办法接受 AI 的代码提示,有无解决方法? tag:www.v2ex.com,2025-07-11:/t/1144635 2025-07-11T10:12:29Z 2025-07-12T02:06:28Z byp member/byp
  • 我加了这个配置,但是没有用 image.png

  • 我不想将补全按钮修改为 Tab 外的按键

  • ]]>
    不知道为什么存在的 vim 快捷键 tag:www.v2ex.com,2025-06-12:/t/1138271 2025-06-12T21:38:42Z 2025-06-13T01:56:12Z cj323 member/cj323 normal 模式输出 10gs

    你会发现十秒内 vim 会卡住,打什么都没用,也不能退出。甚至 ctrl-z 都不行。

    黑人?

    ]]>
    有无公司要求开发用 Vim 编辑器? tag:www.v2ex.com,2025-05-21:/t/1133268 2025-05-21T06:49:16Z 2025-05-26T15:41:50Z codigger member/codigger 你们有遇到这样的情况吗? ]]> coc.nvim 近期的主要更新 tag:www.v2ex.com,2025-04-07:/t/1123808 2025-04-07T11:39:36Z 2025-04-07T16:08:46Z chemzqm member/chemzqm
  • 支持 win32unix 方式编译的 vim ,包括 msys2 、git bash 、wsl 等
  • 支持 UltiSnips 定义的各种 action 和 format 选项, 包含 snip 对象上的属性方法,snippets 行为与 UltiSnips 一致,测试了 vim-snippets 的 snippets 目前应该都能正常使用
  • 使用 vim9 脚本大幅提升了 vim9 上语义高亮的效率
  • 使用 listener_add() 增量更新 vim9 缓冲区的变动
  • ]]>
    vim 执行外部 shell 命令时卡顿,求解决方式 tag:www.v2ex.com,2024-11-13:/t/1089197 2024-11-13T05:51:44Z 2024-11-13T10:41:58Z chuyin01 member/chuyin01 vim version 7.4

    外部 shell 是 cshell, 里面有很多公司工作环境配置。所以每次执行外部命令的时候 vim 都会加载一遍 cshell 的环境配置,然后导致卡顿

    换 bash 是可以解决这个问题的,但公司环境都写在 cshell 里面。

    有什么别的方式解决吗?

    ]]>
    十分尴尬,被导师推荐去使用 JetBrains tag:www.v2ex.com,2024-11-07:/t/1087551 2024-11-07T13:16:29Z 2024-09-30T18:28:06Z capgrey member/capgrey 入职起,我的编辑器:Neovim with Lazyvim
    就是配置好了 lazyvim.org 的 neovim 。

    各个好用的插件都有,包括 Github Copilot(chat)、Neotest 、Flash 等等,操作起来也行云流水(不记得的命令就去搜索,"强化学习")。

    然后当时要找一个 commit, 我就调出 lazygit 找,我导师就说:“这个还行,不过你也可以用重量级的 IDE“。

    我一听就不妙了,知道他想说什么,但我没说。然后他也不提那个 IDE 的名字,说,“就那个 JetBrains 家的“。

    我尴尬死了。。。为什么觉得我没用过 Goland😂

    我个人认为,对于静态语言,一个好的 IDE
    能快速跳转变量/类型的定义
    能快速找引用
    能快速 Debug
    能快速找文件
    能快速光标定位
    ......
    就好了 ]]>
    Nvim 输入法的自动切换 tag:www.v2ex.com,2024-11-05:/t/1086712 2024-11-05T02:28:30Z 2024-11-04T23:28:30Z superhxl member/superhxl 系统:win11 Neovim:Nvim 0.10.1 ,使用图形界面 Nvim-qt 居多 主要用途:Python ,Markdown ,latex

    配置文件是在 jdhao 大佬的配置文件基础上修改的,主要是去掉了一些自己不用的插件。在使用过程中有有几个问题,请各位大佬、V 友解惑。

    1 、安装了 im-select 进行输入法自动切换,大多是情况退出插入模式可以切换为英文,回到插入模式回复为之前的输入法状态。 但是,如果:w 保存,则保持为英文输入,似乎是重置了。系统安装了 autosave 插件,不会引起输入法更改,但过一段时间似乎就会切换为英文。百思不得其解?

    目前用的输入法是 Weasel ,微软输入法也用过,同样的问题。

    1. Vimtex 设置了 build——dir ,但无效。生成的 pdf 文件还是在当前文件夹下。

    以上问题请教各位 V 友。

    ]]>
    写了一个 flash.nvim on ideavim 的插件 vim-flash, 有兴趣的可以试试 tag:www.v2ex.com,2024-09-06:/t/1070637 2024-09-06T01:39:08Z 2024-09-06T04:41:39Z yelog member/yelog
    在 Normal Mode 下的效果
    https://cdn.jsdelivr.net/gh/yelog/assets/images/202409052324760.gif

    在 Visual Mode 下的效果
    https://cdn.jsdelivr.net/gh/yelog/assets/images/202409052328220.gif ]]>
    请教 Debian 12.6 的 vi 和 vim.tiny 指向同一文件却执行效果不同疑问 tag:www.v2ex.com,2024-08-31:/t/1069246 2024-08-31T09:34:36Z 2024-08-31T23:24:12Z xlinux member/xlinux 执行 vi 和执行 vim.tiny 为什么是两种不同的模式? 这两个不是指向的是同一个文件 /usr/bin/vim.tiny 吗? 不同的表现在于:

    以下是系统的一些信息:

    root@debian:~# whereis vi vi: /usr/bin/vi /usr/share/man/man1/vi.1.gz root@debian:~# whereis vim.tiny vim.tiny: /usr/bin/vim.tiny 
    root@debian:~# ls -la /usr/bin/ | grep vi -rwxr-xr-x 1 root root 14560 Sep 16 2023 dbus-update-activation-environment lrwxrwxrwx 1 root root 23 May 4 2023 rview -> /etc/alternatives/rview -rwxr-xr-x 1 root root 18808 Jun 16 05:44 systemd-detect-virt lrwxrwxrwx 1 root root 20 May 4 2023 vi -> /etc/alternatives/vi lrwxrwxrwx 1 root root 22 May 4 2023 view -> /etc/alternatives/view -rwxr-xr-x 1 root root 1629584 May 4 2023 vim.tiny 
    root@debian:~# ls -la /etc/alternatives/ | grep vi lrwxrwxrwx 1 root root 17 May 4 2023 ex -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 ex.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 ex.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz lrwxrwxrwx 1 root root 17 May 4 2023 rview -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 17 May 4 2023 vi -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 vi.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 17 May 4 2023 view -> /usr/bin/vim.tiny lrwxrwxrwx 1 root root 28 May 4 2023 view.1.gz -> /usr/share/man/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.da.1.gz -> /usr/share/man/da/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.de.1.gz -> /usr/share/man/de/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 view.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.fr.1.gz -> /usr/share/man/fr/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.it.1.gz -> /usr/share/man/it/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.ja.1.gz -> /usr/share/man/ja/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.pl.1.gz -> /usr/share/man/pl/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.ru.1.gz -> /usr/share/man/ru/man1/vim.1.gz lrwxrwxrwx 1 root root 31 May 4 2023 vi.tr.1.gz -> /usr/share/man/tr/man1/vim.1.gz 
    root@debian:~# ls -la /etc/vim total 16 drwxr-xr-x 2 root root 4096 Aug 31 05:17 . drwxr-xr-x 69 root root 4096 Aug 30 23:37 .. -rw-r--r-- 1 root root 2553 May 4 2023 vimrc -rw-r--r-- 1 root root 662 May 4 2023 vimrc.tiny 
    root@debian:~# cat /etc/vim/vimrc " $VIMRUNTIME refers to the versioned system directory where Vim stores its " system runtime files -- /usr/share/vim/vim<version>. " " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc. " This happens after /etc/vim/vimrc(.local) are loaded, so it will override " any settings in these files. " " If you don't want that to happen, uncomment the below line to prevent " defaults.vim from being loaded. " let g:skip_defaults_vim = 1 " " If you would rather _use_ default.vim's settings, but have the system or " user vimrc override its settings, then uncomment the line below. " source $VIMRUNTIME/defaults.vim " All Debian-specific settings are defined in $VIMRUNTIME/debian.vim and " sourced by the call to :runtime you can find below. If you wish to change " any of those settings, you should do it in this file or " /etc/vim/vimrc.local, since debian.vim will be overwritten everytime an " upgrade of the vim packages is performed. It is recommended to make changes " after sourcing debian.vim so your settings take precedence. runtime! debian.vim " Uncomment the next line to make Vim more Vi-compatible " NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes " numerous options, so any other options should be set AFTER changing " 'compatible'. "set compatible " Vim5 and later versions support syntax highlighting. Uncommenting the next " line enables syntax highlighting by default. "syntax on " If using a dark background within the editing area and syntax highlighting " turn on this option as well "set background=dark " Uncomment the following to have Vim jump to the last position when " reopening a file "au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif " Uncomment the following to have Vim load indentation rules and plugins " according to the detected filetype. "filetype plugin indent on " The following are commented out as they cause vim to behave a lot " differently from regular Vi. They are highly recommended though. "set showcmd " Show (partial) command in status line. "set showmatch " Show matching brackets. "set ignorecase " Do case insensitive matching "set smartcase " Do smart case matching "set incsearch " Incremental search "set autowrite " Automatically save before commands like :next and :make "set hidden " Hide buffers when they are abandoned "set mouse=a " Enable mouse usage (all modes) " Source a global configuration file if available if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif 
    root@debian:~# cat /etc/vim//vimrc.tiny " Vim configuration file, in effect when invoked as "vi". The aim of this " configuration file is to provide a Vim environment as compatible with the " original vi as possible. Note that ~/.vimrc configuration files as other " configuration files in the runtimepath are still sourced. " When Vim is invoked differently ("vim", "view", "evim", ...) this file is " _not_ sourced; /etc/vim/vimrc and/or /etc/vim/gvimrc are. " Debian system-wide default configuration Vim set runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim90,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after set compatible " vim: set ft=vim: 
    ]]>
    nvim 无法粘贴到转存到系统剪切板 tag:www.v2ex.com,2024-08-29:/t/1068741 2024-08-29T06:57:14Z 2024-08-29T10:31:05Z BlackSnow member/BlackSnow ubuntu + nvim 使用的是 tmux 集成的 clipboard tool

    最近好像不知道误触乐了 tmux 的配置还是怎么样,不能从文件内向外复制内容了。应该也跟 SSHD 配置没有关系,都是使用默认设置。

    贴一下 tmux 配置和+寄存器的设置 config tmuxconfig

    ]]>
    The ObjectSense Programming Language : An object-oriented reincarnation of VimL tag:www.v2ex.com,2024-08-20:/t/1066514 2024-08-20T09:58:38Z 2024-08-20T09:55:38Z codigger member/codigger ObjectSense is a superset of VimL8, and has all the main features of a modern object-oriented language, such as data encapsulation, polymorphism, inheritance, etc. On top of the language implementation, rose - a module manager is provided, which is also built into the language runtime. It's very developer friendly, especially for those who already have a working knowledge of VimL8 can effortlessly expand their skills to code in ObjectSense.

    As a bonus feature, polyglot programming is easily doable in ObjectSense. Currently vim8 and vim9 are supported, with minimal work the list can grow longer to include other languages, such as, python, ruby, lua, etc. However, as far as the operating system is concerned, only Linux and MacOS are supported at the moment. There is a user-defined command, UT, for doing unit tests of the current class. It's very convenient for accessing class data in unit tests. No need for finding workaround to the language barrier when accessing such data in white box testing. Every component can be properly tested! Pure and simple! By following a few simple conventions and thanks to the built-in modular mechanism in the language runtime, ObjectSense programs are very scalable and development work can be distributed comfortably among team members.

    In a more programming linguistic point of view, ObjectSense is of imperative paradigm on the surface, but carries functional programming abilities. In the language runtime, each object has its own data and functions, there's nothing shared. An object is entirely in its own universe just like functional programming. Because the lack of time, we haven't explored such property of the language much. Hopefully, the community can shed new lights on such nice combination.

    This is a strong demonstration of what VimL8 is capable of. ObjectSense takes less than 5000 lines of code for the core of the language implementation. Although it's a superset of an existing language, it's very hard to imagine using such little code for implementing a non-trivial programming language. VimL8 has a lot of unrealised potentials, people really shouldn't jump off the bandwagon too quickly.

    The best argument for vim9 is performance. We have found a way kind of 'compile' or speedup the load time for ObjectSense. In practice, we could really compile such code into binary and wire it with the language runtime, and without asking developers to learn a completely new language, i.e., being 100% compatible with existing VimL8 syntax and have the acclaimed performance at the same time. However, in our scenario ObjectSense performance issues have been tackled by the semi-compile approach, so no effort was directed to do the real compiling work which could bloat the code base exponentially.

    ]]>
    nvim 复制改键 tag:www.v2ex.com,2024-08-19:/t/1066036 2024-08-19T02:31:32Z 2024-08-19T02:53:39Z BlackSnow member/BlackSnow 我现在使用的 nvim ,改键的文件 keymap.lua 希望能设置的快捷键盘是"+y (复制到"+寄存器) 变成 空格+y(<leader>+y)

    我的 lua 文件是这样设置的,nvim 的 keymap 文档还是看不太懂 keymap.set("i","<leader>y",""+y")

    请问应该怎么修改

    ]]>
    使用 Vim 的时候遇到了一点问题 tag:www.v2ex.com,2024-08-16:/t/1065511 2024-08-16T06:18:20Z 2024-08-16T23:21:41Z xiaozhu317 member/xiaozhu317 https://i.imgur.com/NrtkwmW.gif

    如上图,我首先使用了 yiw yank 了 color 单词,然后我想把后面的单词都粘贴为 color ,可是我每次在 Visual 模式下粘贴,都会使用上次被覆盖的单词,层层递进一样???

    我整个系统全是这样的情况,idea-vim ,vscode-vim 都是这样的情况。

    我在之前的使用过程,没有这样的情况啊? 是我自己的电脑有问题吗?

    ]]>
    vim 无法设置无名寄存器作为系统剪切板 tag:www.v2ex.com,2024-08-14:/t/1064829 2024-08-14T02:37:50Z 2024-08-14T09:55:04Z BlackSnow member/BlackSnow 我在 Windows 10 的终端上使用 SSH 远程连接到一台运行 Ubuntu 24 操作系统的机器,并且使用 Vim ( VIM - Vi IMproved 9.1 (2024 年 1 月 2 日,编译于 2024 年 5 月 3 日 02:45:42))。

    我的 Vim 已经设成支持剪贴板特性features同时配置文件也设为"clipboard = unnamed".vimrc setting

    我也尝试了这个链接上的可能方案How to copy selected lines to clipboard in vim。我所能想到的遗漏的地方是:X11 与 Windows 的兼容性,因为我的 Mac 仅仅上述的配置就成功了。

    另外,我的 ssh 配置了 X11 转发SSH CONFIG

    ]]>
    awesome-nvim-conf:中文用户 nvim 配置仓库 tag:www.v2ex.com,2024-08-07:/t/1063288 2024-08-07T09:54:05Z 2024-08-07T12:59:48Z jdhao member/jdhao 创建了一个仓库 awesome-nvim-conf 用来收集 nvim 中文用户的配置,欢迎贡献🎉

    ]]>
    请问有办法将 nvim 当成临时草稿本使用吗? tag:www.v2ex.com,2024-08-07:/t/1063176 2024-08-07T04:31:44Z 2024-08-08T01:56:32Z jqtmviyu member/jqtmviyu 就是 sublime 那种随时打开一个 tab, 粘贴完代码, 直接关闭, 不提示保存和重命名, 下次打开恢复状态

    ]]>
    NeoVim 可以实现远程开发么? tag:www.v2ex.com,2024-08-06:/t/1062970 2024-08-06T08:16:07Z 2024-08-06T13:36:40Z capgrey member/capgrey https://www.lazyvim.org/ ]]> Leaderf git: 在 vim 中优雅高效的使用 git tag:www.v2ex.com,2024-08-05:/t/1062740 2024-08-05T13:24:25Z 2024-08-05T13:24:25Z Yggdroot member/Yggdroot

    https://zhuanlan.zhihu.com/p/712264892

    ]]>
    想找一个好用的 vim 剪切板的快捷键 tag:www.v2ex.com,2024-07-27:/t/1060548 2024-07-27T09:19:34Z 2024-07-28T01:21:54Z MHPSY member/MHPSY 再用 vim 的时候总是会用 c 、x 、d 命令删除,有的时候不想让它们占据剪贴板有的时候想,想看一下大家是怎么处理这个问题的。

    ]]>
    关于 vim 中一次复制粘贴的询问 tag:www.v2ex.com,2024-07-27:/t/1060537 2024-07-27T08:04:33Z 2024-07-28T10:39:01Z jlz52z member/jlz52z 如下面的代码,我想要把struct ListNode这个结构体给复制粘贴到下面,应该怎样操作

    /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode() : val(0), next(nullptr) {} * ListNode(int x) : val(x), next(nullptr) {} * ListNode(int x, ListNode *next) : val(x), next(next) {} * }; */ 
    ]]>
    配置 nvim-lsp 自动补全有点复杂 tag:www.v2ex.com,2024-06-19:/t/1050968 2024-06-19T12:20:32Z 2024-06-27T05:42:50Z xbox360 member/xbox360 本来用的是 coc.nvim,最近花了点时间把自动补全等等功能改为 nvim-cmp,nvim-lspconfig,lsp-zero.nvim,mason.nvim,mason-lspconfig.nvim 这些插件

    然后参考(抄袭)别人的配置,但考虑到后期维护这些插件的 lua 配置文件,我还是退回用 coc.nvim,不折腾了

    ]]>
    今天我去 neovim 官网找图标的时候, 顺手点了一点 donate 的 btc 地址 tag:www.v2ex.com,2024-06-13:/t/1049382 2024-06-13T17:09:40Z 2024-06-14T13:22:26Z fanhed member/fanhed 余额: 10.80194453

    感谢奉献的大佬, 这下 neovim 后续维护稳得一批了

    按照 neovim 现在这个势头更新下去, vim 应该是逐渐被边缘化了呢, vim 活跃度完全比不了 neovim

    ]]>
    轮子更新: NeoVim 主题模板 tag:www.v2ex.com,2024-05-30:/t/1045283 2024-05-30T02:35:20Z 2024-05-30T03:35:20Z Neur2n member/Neur2n 一万年前写了个主题模板,主要功能是每次使用:colorscheme neucs的时候,会随机加载一个调色板,但是感觉没什么意思。

    现在用 lua 写了个新的(结果就是 Vim 不能用了),更新了随机算法——除了每次使用:colorscheme neudom会随机加载一个调色板,还会对颜色进行 shuffle ,所以同一个调色板也会出现不同的高亮效果。

    相关文件:

    ]]>
    用了一段时间 neovim,感觉良好 tag:www.v2ex.com,2024-05-26:/t/1044109 2024-05-26T12:48:25Z 2024-05-31T11:38:35Z milkpuff member/milkpuff 偶然看到有人的 vim 可以非常漂亮,非常丝滑,本人喜欢折腾,所以想尝试一下。

    对于新手,幸好有 lazyvim 之类的一键配置,自动安装了三四十个插件,否则配置起来是相当要命的。尽管如此,它的配置还是有些复杂,需要阅读文档。

    我用来开发 python 和前端,补全使用 lsp ,常用的功能上都能满足;
    操作主要集中在主键盘区域,右手不用挪去按方向键和 home/end/del 键和鼠标了;
    一些选择、删除、复制快捷键也用的很舒服,vio,dib,yif,等相当多的快捷键,which-key 插件都有提示,使用无障碍;
    使用 neovide 可以获得丝滑的动画效果;
    远程开发可以直接在 ssh 无缝使用

    要说效率有没有提高,我认为没有,只是使用乐趣增加了一些,就是个玩儿。

    另外我使用 Arch Linux + hyprland 桌面,不知在 windows 上体验如何。 ]]>
    鼠标选中文字,输入字符时能直接覆盖掉选中的文字 tag:www.v2ex.com,2024-03-28:/t/1027927 2024-03-28T14:39:19Z 2024-04-04T15:35:48Z llzoo member/llzoo 有时候 debug 时发现了问题所在,想选中文字直接修改,但是每次都得再打开插入模式

    ]]>
    lunarvim 如何修改提示的位置 tag:www.v2ex.com,2024-03-21:/t/1025748 2024-03-21T06:53:59Z 2024-03-21T19:28:58Z zficode member/zficode 如下图, 我在手机的 termux 配置了 lunarvim, 由于屏幕宽度不够, 现在它的代码提示被遮挡了,如何设置代码提示到代码行的下面呢?

    https://p.sda1.dev/16/ce37213388238a0c1c59d22c82139924/image.png

    ]]>
    vim 有没有插件像 nvim 那样每个 buffer 右上角都有关闭按钮 tag:www.v2ex.com,2024-02-10:/t/1015269 2024-02-10T13:36:48Z 2024-02-12T13:29:26Z yfixx member/yfixx vim 的字体配色是怎么设置的? tag:www.v2ex.com,2024-02-05:/t/1014487 2024-02-05T11:56:39Z 2024-01-26T12:40:33Z Sprdance member/Sprdance macOS 的 vim 打开文件,字体都是黑色的

    WSL Ubuntu 的 vim 打开文件,是按格式配色的

    请问下怎么让 macOS 的 vim 也有颜色呢?

    vimonmacos vimonubuntu

    ]]>
    VSCode vim 插件在 o 换行后,退出插入模式会丢失所有缩进的问题 tag:www.v2ex.com,2024-01-17:/t/1009251 2024-01-17T01:51:42Z 2024-03-31T16:40:22Z Retas member/Retas 如题,VSCode vim 插件在 o 换行后,退出插入模式会丢失所有缩进,ctrl + o 进入临时的普通模式也会出现缩进丢失。 主要场景,o 换行后退出编辑模式然后 p 粘贴一个单词,没有缩进有点膈应

    ]]>
    各位用 vim 键位的, 是怎么解决 esc 频繁按键的问题的呢? tag:www.v2ex.com,2024-01-13:/t/1008294 2024-01-13T03:19:50Z 2024-01-22T20:52:13Z bthulu member/bthulu 这个键位离手指离得实在太远了, 按起来很不方便. 但是 vim 键位方案里, 这个键的使用频率又高的可怕. 是我用的不对, 还是我的键盘不对? 听说有什么 VIM 专用键盘, ESC 键就在普通键盘的 TAB 键那里?

    ]]>
    有用 nvim 写 protobuf 的吗,大家用哪个 lsp ? tag:www.v2ex.com,2023-12-25:/t/1003317 2023-12-25T09:40:13Z 2024-01-16T02:39:24Z LonnyWong member/LonnyWong 我用 nvim 打开 proto 文件,默认 lsp 是 clangd ,但它当成 C/C++ 来解释了,一堆错误。

    好像 Google 内部有,但是不开源? https://www.reddit.com/r/neovim/comments/v9yzv6/protobuf_lsp_setup/

    大家都用哪个 lsp 写 protobuf ?

    ]]>
    用 vim/nvim 写 Python 用什么插件? tag:www.v2ex.com,2023-12-07:/t/998262 2023-12-07T01:56:55Z 2023-12-24T02:07:06Z shuiguomayi member/shuiguomayi 各位,用 vim/nvim 写 python 用什么插件? 比如,

    ]]>
    安利一下我的键盘修改按键,解决小拇指按 shift 的困境 tag:www.v2ex.com,2023-11-03:/t/988127 2023-11-03T01:56:34Z 2023-11-12T03:27:50Z iceAD member/iceAD 布局

    via

    缘由

    你可能会说,我没有支持 via 的键盘,那,,,,就当我说的是废话吧。 仅提供一个思路

    ]]>
    VIM & Python tag:www.v2ex.com,2023-10-13:/t/981801 2023-10-13T10:36:57Z 2023-10-13T17:03:06Z justdoit123 member/justdoit123
    但是到了 python 里,我很好奇各位都是怎么快速选择一个函数体的?或者快速选择整个 class ? ]]>
    Vim 上远程开发有什么方案? tag:www.v2ex.com,2023-10-13:/t/981763 2023-10-13T09:09:04Z 2023-10-19T01:11:13Z Kumo31 member/Kumo31 平常都是直接 ssh 到开发机上 nvim 写代码。前段时间机房搬迁后,到开发机的延迟高了不少,编辑时虽然算不上卡,但明显能感觉到操作延迟。一开始使用 (N)vim 就是为了「爽」,现在体验却大大降低了。v 友们是怎么用 vim 远程开发的

    比较理想的是像 VSCode Remote 那样的体验,操作、渲染在本地实现,只在后台异步同步,同时 LSP 也是使用服务端的

    简单尝试过 sshfs ,虽然操作(移动光标)是流畅了,但问题更多。不说 LSP/Terminal ,单文件系统的速度就慢的不行,完全没法用

    也看过社区中的相关讨论: https://github.com/neovim/neovim/issues/21635 , 没得到什么结论

    为什么不直接在本地开发?

    为什么直接使用 VSCode + Vim 插件?

    ]]>
    除了使用方向键 vim insert mode 下如何快速前进一个字符? tag:www.v2ex.com,2023-10-13:/t/981735 2023-10-13T08:06:22Z 2023-10-19T06:51:17Z ethusdt member/ethusdt 各位 vimer ,你们在 insert mode 输入时候是怎么快速前进一个字符的?

    如果退出 insert mode ,按 A 可以做到,但感觉好麻烦。

    如果是在别的地方,使用 Emacs 的快捷键 ctrl+e 可以到末尾,或者 ctrl+f 前进一个字符都是很方便的。

    ]]>
    wincap.vim 让你的 gvim 标题栏应用 buffer 的背景色 tag:www.v2ex.com,2023-09-11:/t/972867 2023-09-11T14:54:33Z 2023-09-11T19:35:46Z kawaiidora member/kawaiidora https://github.com/stillwwater/wincap.vim

    手机发帖,想看效果就劳烦各位点进去看了。

    作者说仅限 Win11 ,不知道 10 上能否实现。

    楼主自己是把 gvim 的菜单栏工具栏滚动条都干掉,加上这个插件就有很协调的效果了。判断当前系统是否为 Win11 好像只能靠内嵌 python 来做 ]]>
    (补图) vim tab 和 buffers 问题 tag:www.v2ex.com,2023-09-05:/t/971165 2023-09-05T09:51:37Z 2023-09-05T09:48:37Z yShpppppppp member/yShpppppppp 如图 1 ,有两个 tab ,第一个 tab 里面有一个 buffer ,第二个里面有多个,如何能展开 tab 达到图 2 的效果,同时能变回图 1 的效果。简单的 tabsonly 不是我期待的结果 2tabs buffers

    怎么图还出不来啊!!!! 这么写有问题么? ![buffers](//imgur.com/a/KDwPMrL)

    ]]>
    vim tab 和 buffers 问题 tag:www.v2ex.com,2023-09-05:/t/971156 2023-09-05T09:16:48Z 2023-09-05T09:13:48Z yShpppppppp member/yShpppppppp 如图 1 ,有两个 tab ,第一个 tab 里面有一个 buffer ,第二个里面有多个,如何能展开 tab 达到图 2 的效果,同时能变回图 1 的效果。简单的 tabsonly 不是我期待的结果 2tabs buffers

    ]]>
    插件管理器从 Packer.nvim 切换到 Lazy.nvim 了,很好很强大 tag:www.v2ex.com,2023-09-04:/t/970928 2023-09-04T22:48:02Z 2023-12-02T09:32:33Z jdhao member/jdhao Packer.nvim 现在也不维护了,正好切换到 Lazy.nvim 试试,启动时间直接从 250ms 左右降低到 50ms 左右,Lazy.nvim 对 Packer 全面碾压。

    这里 记录自己迁移过程和一些问题。

    ]]>
    window 环境怎么解决 vim 热键冲突的问题 tag:www.v2ex.com,2023-08-23:/t/967516 2023-08-23T00:04:38Z 2023-08-23T07:07:29Z justicelove member/justicelove 大家都是怎么用 Vim 的? tag:www.v2ex.com,2023-08-22:/t/967504 2023-08-22T17:15:33Z 2023-08-23T14:22:35Z zuotun member/zuotun 经常看到有人说用 Vim 写代码的, 但一直没见过具体是怎么写的.

    因为需要折腾服务器需要用倒是会用, 但仅限于 SSH 终端中简单编辑文件.

    很好奇大家用 Vim 写代码是怎么写的(是编辑器插件还是? 代码提示和高亮?), 以及想入门有什么教程可以参考吗?

    ]]>
    使用 vim 的时候中英文切换的问题 tag:www.v2ex.com,2023-08-22:/t/967501 2023-08-22T16:27:07Z 2023-10-28T06:55:59Z Amox member/Amox 但是在把 jk 映射成 esc 的情况下,输入 jk 会弹出输入法,这种方式也就失效了
    请问各位是怎么解决这种情况下中英文切换的问题? ]]>
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86