禁用乳胶隐藏在NVIM Easymotion突出显示

发布于 2025-01-25 06:07:27 字数 2843 浏览 2 评论 0原文

当将NVIM与Vim-Asymotion一起使用时,它掩盖了许多乳胶命令,同时显示所有Easymotion符号,即它将Unicode符号显示为我无法键入的运动符号。它仅在搜索过程中以这种方式显示。在常规键入期间,没有隐藏。

我已经将seallevel设置为0。

我可以以某种方式关闭此功能吗?

这是一个最小的例子: init.vim

set conceallevel=0
" Plugins - Vundle
call plug#begin('~/.config/nvim/bundle')
            "easy motion
            Plug 'easymotion/vim-easymotion'
                let g:EasyMotion_do_mapping = 0 " Disable default mappings

                " Jump to anywhere you want with minimal keystrokes, with just one key binding.
                " `s{char}{label}`
                nmap s <Plug>(easymotion-overwin-f)
                " or
                " `s{char}{char}{label}`
                " Need one more keystroke, but on average, it may be more comfortable.
                nmap s <Plug>(easymotion-overwin-f2)

                " Turn on case-insensitive feature
                let g:EasyMotion_smartcase = 1

                " JK motions: Line motions
                map <Leader>j <Plug>(easymotion-j)
                map <Leader>k <Plug>(easymotion-k)

和一个要编辑的乳胶文件,

\documentclass{article}
                                                                                                
\begin{document}
                                                                                                
This is some test equation
                                                                                                
\[ A \subseteq B \wedge B \subseteq C\implies A \subseteq C, \]
                                                                                                
where $A,B$,and $C$ are sets.
                                                                                                
                                                                                                
\end{document}

该文件在编辑时看起来还不错。但是,如果例如,我想跳到第一个\ subseteq,然后按第一个's'然后按't,e'被按下,我会在突出显示

\documentclass{article}
                                                                                                
\begin{document}
                                                                                                
This is some gest equation
                                                                                                
 A ⊆d B ∧ B ⊆s C\implies A ⊆a C, 
                                                                                                
where A,B,and C are sets.    
                                                                                                
                                                                                                
\end{document}

所有数学符号且所有内容都会变化的地方显示,因为符号会发生变化不需要为它们提供的乳胶代码和乳胶代码那么多的空间,而且数学符号甚至与显示快捷方式完全重叠。

When using nvim with vim-easymotion it conceals a lot of LaTeX commands while showing all the easymotion symbols, i.e. it shows unicode symbols as motion symbols which I just can not type. It only shows this in this way during the search. During regular typing there is no concealing.

I already have the conseallevel set to 0.

Can I somehow turn this feature off?

Here is a minimal example:
init.vim

set conceallevel=0
" Plugins - Vundle
call plug#begin('~/.config/nvim/bundle')
            "easy motion
            Plug 'easymotion/vim-easymotion'
                let g:EasyMotion_do_mapping = 0 " Disable default mappings

                " Jump to anywhere you want with minimal keystrokes, with just one key binding.
                " `s{char}{label}`
                nmap s <Plug>(easymotion-overwin-f)
                " or
                " `s{char}{char}{label}`
                " Need one more keystroke, but on average, it may be more comfortable.
                nmap s <Plug>(easymotion-overwin-f2)

                " Turn on case-insensitive feature
                let g:EasyMotion_smartcase = 1

                " JK motions: Line motions
                map <Leader>j <Plug>(easymotion-j)
                map <Leader>k <Plug>(easymotion-k)

And a LaTeX file to edit

\documentclass{article}
                                                                                                
\begin{document}
                                                                                                
This is some test equation
                                                                                                
\[ A \subseteq B \wedge B \subseteq C\implies A \subseteq C, \]
                                                                                                
where $A,B$,and $C$ are sets.
                                                                                                
                                                                                                
\end{document}

which looks just fine while editing. But if e.g. I want to jump to the first \subseteq by pressing first 's' and then 't,e' is pressed I get displayed

\documentclass{article}
                                                                                                
\begin{document}
                                                                                                
This is some gest equation
                                                                                                
 A ⊆d B ∧ B ⊆s C\implies A ⊆a C, 
                                                                                                
where A,B,and C are sets.    
                                                                                                
                                                                                                
\end{document}

where all math symbols are highlighted and everything shifts, since the symbols do not need as much space as the LaTeX code for them and often the math symbols even completely overlap with their displayed shortcuts.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文