首页 \ 问答 \ Vim插件Align无法正常工作。(Vim plugin Align fails to work. Can it be installed without vimball?)

Vim插件Align无法正常工作。(Vim plugin Align fails to work. Can it be installed without vimball?)

我很高兴在家用电脑上安装了vim Align插件,但在工作中的Red Hat服务器上,安装不起作用。 工作中的服务器有一个非常古老的副本(2006)vimball,谷歌我不知道它不支持更新的vimball,包括Align。 我无法让系统组(IT部门)升级vimball,所以我想也许我可以简单地将各种文件复制到〜/ .vim / plugin中。 我从我的家庭系统AlignMapsPlugin.vim AlignPlugin.vim cecutil.vim复制了3个文件,但当我尝试在vim中使用Align时,我收到以下错误消息

E117:未知功能:对齐#Align

我知道它正在看插件,因为当我删除插件时,错误信息是不同的(它说“不是编辑器命令对齐”)。

这有解决方法吗? 我喜欢“Align”,并且肯定会喜欢在工作和家中使用它。


I've happily installed the vim Align plugin on my home computer, but on the Red Hat servers at work, the installation doesn't work. The servers at work have a very old copy (2006) of vimball, which from Googling I know doesn't support more recent vimballs, including Align. I can't get the systems group (IT department) to upgrade vimball, so I thought perhaps I could simply copy the various files into ~/.vim/plugin by hand. I copied the 3 files from my home system AlignMapsPlugin.vim AlignPlugin.vim cecutil.vim, but when I attempt to use Align from within vim I get the following error message

E117: Unknown function: Align#Align

I know that it's seeing the plugin, because when I remove the plugin the error message is different (it says "Not an editor command Align").

Is there a workaround for this? I love "Align" and would sure like to use it at work as well as at home.


原文:https://stackoverflow.com/questions/9937075
更新时间:2022-01-19 11:01

最满意答案

通过执行以下操作,您可以在同一个CosmosDB帐户中同时使用MongoDB API和DocumentDB / Sql API(这可能也适用于使用Gremlin和Table API的CosmosDB帐户设置,但我还没有尝试过)。

首先,使用MongoDB API创建一个新的CosmosDB帐户。 一旦配置了新的CosmosDB帐户,您将无法像使用已配置DocumentDB / Sql API的CosmosDB帐户那样查找“密钥”刀片。

要获得将客户端连接到DocumentDB / Sql api所需的密钥,请运行以下Azure CLI命令

az cosmosdb list-keys --name "<your cosmosdb account name>" --resource-group "<name of resource group your cosmosdb lives in>"

现在,您可以在您使用的任何客户端API(.Net,Python等)中使用这些键中的一个,并对CosmosDB执行DocumentDB / Sql查询,即使它仅配置为使用MongoDB API。

如果您的客户端API需要“连接字符串”而不是一个键,则编辑普通连接字符串以将此键包含在字符串的“AccountKey”部分中。


You can use both the MongoDB API and the DocumentDB/Sql API in the same CosmosDB account by doing the following (this likely also works for CosmosDB accounts setup with Gremlin and Table APIs, but I haven't yet tried them yet.):

First, create a new CosmosDB account using the MongoDB API. Once this new CosmosDB account is provisioned, you won't be able to find the "Keys" blade as you can with a CosmosDB account that has been configured with the DocumentDB/Sql API.

To get the Keys which you need to connect your client to the DocumentDB/Sql api, run the following Azure CLI Command:

az cosmosdb list-keys --name "<your cosmosdb account name>" --resource-group "<name of resource group your cosmosdb lives in>"

Now, you can use one of these keys in whatever client API (.Net, Python, etc.) that you are using, and do DocumentDB/Sql queries against your CosmosDB even though it was only configured to use the MongoDB api.

If your client API requires a "Connection String" instead of just a key, then edit the normal connection string to include this key in the "AccountKey" section of the string.

相关问答

更多

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。