我正在尝试将vim设置为Perl的IDE。我使用的是通用的,基于文本的vim,而不是gvim。
根据其他人的建议,我在上安装了“vim”插件,使用vim管理器。至少我认为它已经安装好了,但是我没有注意到文件的处理方式有什么不同。
首先,我在Debian的包管理器中安装了vim-addon管理器。然后,我将以下代码放入我的.vimrc文件并重新加载:
" put this line first in ~/.vimrc
set nocompatible | filetype indent plugin on | syn on
fun! SetupVAM()
let c = get(g
我已经在Vim和<c-x><c-f>中安装了Vim和<c-x><c-f>,以便文件完成工作正常。此外,我得到了适当的代码完成。
但是刚刚注意到,尝试访问字典似乎失败了,当使用:<c-x><c-d>。我只显示了以下内容:
-- Definition completion (^D^N^P) Pattern not found
Vim版本
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Apr 21 2014 14:54:22)
MacOS X (unix) version
有什么想法吗
我想诚实和简短,虽然我不懂英语,我是委内瑞拉人,我正在一点一点地学习语言(我希望你能理解我的翻译),我从网络开发开始。我使用的是ubuntu操作系统(lubuntu),我一直在配置Neovim代码编辑器,但是其中一个插件出现了错误,错误如下:
Error executing vim.schedule lua callback: ...lugged/completion-nvim/lua/completion/signature_help.lua:18: attempt to index fie
ld 'resolved_capabilities' (a nil value)
当我在Vim上编辑一个TeX文件时,插入模式下的回拨(TeX)工作方式很奇怪。我希望当我键入`a Vim显示`a时,当我键入`b时它会显示`b,等等。但是,实际上,当我键入`a时,它只显示a,当我键入`b时,它只显示b。此外,例如,当我键入`j时,它会显示`j,正如我所期望的那样。在反勾后面的一些字母将以反勾(如我所料)显示,而其他没有回勾(奇怪的行为)。下面的列表显示哪些字母跟随反勾号,哪些字母替换了反勾。
下面是
// `j becomes `j
j o v B C H I J K M
N O R T V Z 1 2 3 4
5 7 9 ! @ # $ % ^ &
- _ + |
我将文件类型的comments选项设置为b:*。如果我打开这样的文件,我可以用set comments?验证这一点。现在,我显式地将formatoptions设置为使用r在新行上重复注释。毕竟,调用set formatoptions?以求和方式返回j1tcqln。如果打开一个新行o并编写类似于* This is a comment命中的<CR,那么我希望在新行上得到一个* --好吧,因为r选项,但不是。
检查+comments特性是否与:echo has('comments')一起可用是肯定的,并返回1。
这里有什么问题?
编辑:
这是我的ftplugin/markdow
每次我打开大括号时都要这样做。 ? 缩进的vim配置: "" Fix backspace indent
set backspace=indent,eol,start
"" Tabs. May be overridden by autocmd rules
set autoindent
set smartindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab 该怎么办呢?
当我使用vim从命令行打开Vim时,我的_vimrc文件运行时没有出现错误。当git commit打开vim作为它的编辑器时,会发生以下错误:
C:\dev\settings>git commit
hint: Waiting for your editor to close the file...
Error detected while processing /c/Users/me/_vimrc:
line 1:
在插入模式下,当我按下键:选项+8或9时,我的vim将进入正常模式,这分别对应于我的mac上的or。要编写代码,这真的很烦人,因为我非常需要括号。我怎么才能把这个移除?谢谢。
我附在我的.vimrc文件下面。
我已将inoremap中的esc键更改为"jk“,将地图领导键更改为";”。
更新:我的终端很活跃,而且我没有这个问题。只是在维姆。
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detectio
我将vim (Vi IMproved 8.1)作为文本编辑器新安装在我的MacOS 10.14.5上。每次运行vim时,都会收到以下错误消息:
Warning: Failed to set locale category LC_NUMERIC to en_CH.
Warning: Failed to set locale category LC_TIME to en_CH.
Warning: Failed to set locale category LC_COLLATE to en_CH.
Warning: Failed to set locale category LC_MONETARY
local M = {}
-- TODO: backfill this to template
M.setup = function()
local signs = {
{ name = "DiagnosticSignError", text = "" },
{ name = "DiagnosticSignWarn", text = "" },
{ name = "DiagnosticSignHint", text = "" },
{ name =