简体   繁体   English

Syntastic无法与MiniBufExplorer vim插件一起使用

[英]Syntastic not working with MiniBufExplorer vim plugin

First off I'm a windows user using VIM and vundle to manage my plugins. 首先,我是使用VIM和vundle管理我的插件的Windows用户。

I have the Syntastic vim plugin ( https://github.com/scrooloose/syntastic ) and it works great highlighting any syntax errors for the first javascript file I open and save. 我有Syntastic vim插件( https://github.com/scrooloose/syntastic ),它突出显示了我打开并保存的第一个javascript文件的语法错误,效果很好。

I also have the minibufexplorer plugin ( https://github.com/sontek/minibufexpl.vim ). 我也有minibufexplorer插件( https://github.com/sontek/minibufexpl.vim )。 Once I open a second file the MiniBufExplorer window appears allowing me to navigate between previously opened files via :b1, :b2, etc. I've noticed when this happens Syntastic stops working. 打开第二个文件后,将显示MiniBufExplorer窗口,使我可以通过:b1,:b2等在以前打开的文件之间导航。我注意到这种情况发生时Syntastic停止工作。

If I remove the minibufexplorer plugin then Syntastic always works. 如果删除minibufexplorer插件,则Syntastic始终有效。 I'd really like to get both working together, does anyone have a solution for this? 我真的很想让两者一起工作,有人对此有解决方案吗? I would gladly use an alternative to minibufexplorer if it works with Syntastic. 如果与Syntastic兼容,我很乐意使用minibufexplorer的替代方法。

I'm using pathogen to organize my installed plugins. 我正在使用病原体来组织安装的插件。 I have syntastic and minibufexplorer and they work well together for me. 我有syntasticminibufexplorer ,他们对我来说很好。

I have done no configuration at all to any of thees plugins. 我没有对任何thees插件进行任何配置。 But to handle bufferswitching in an easy way (also works without minibufexplorer) I use this in my .vimrc : 但是为了以一种简单的方式处理缓冲区切换(即使没有minibufexplorer也可以使用),我在.vimrc使用了它:

map § :bnext^M
map ½ :bprevious^M

Its the key just below the Esc-key. 它的键在Esc键下方。 It makes it very easy to just hit the § key to cycle through all open buffers. 只需按下§键就可以在所有打开的缓冲区中循环,这非常容易。

Here is a good place to start your configuration. 是开始配置的好地方。

Since I'm open to alternatives I will be removing the MiniBufExplorer plugin and using the :ls vim command to view the buffer list when desired. 由于我愿意接受替代方案,因此我将删除MiniBufExplorer插件,并在需要时使用:ls vim命令查看缓冲区列表。 It's not as convenient as using the MiniBufExplorer plugin but I find syntax highlighting more important and am satisfied with this workaround. 它不像使用MiniBufExplorer插件那样方便,但是我发现突出显示语法更重要,并且对此解决方案感到满意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM