gpt4 book ai didi

vim - snipmate 无法在 vim 中工作

转载 作者:行者123 更新时间:2023-12-02 15:46:57 24 4
gpt4 key购买 nike

以下文件是我的 vimrc 文件。我尝试获取 snipmate.vim 文件,我的 vimrc 文件中没有设置粘贴。刚刚在我的 .vim 目录中对 snipmate 进行了 git 克隆,并将该位置添加到运行时路径中。

我使用的是 MAC OSX

$ cat .vimrc 
source ~/.vim/snipmate.vim/plugin/snipMate.vim
nnoremap <Space> za
vnoremap <Space> za
nnoremap zO zCzO
set smartindent
set hlsearch
set ignorecase
set foldenable
set foldmethod=syntax
syn region foldBraces start=/{/ end=/}/ transparent fold
syn region foldJavadoc start=,/\*\*, end=,\*/, transparent fold keepend
set ai
set sm
set incsearch
set runtimepath^=~/.vim/bundle/ctrlp.vim,~/.vim/nerdtree,~/.vim/snipmate.vim
set nocompatible " Because filetype detection doesn't work well in compatible mode
filetype plugin indent on " Turns on filetype detection, filetype plugins, and filetype indenting all of which add nice extra features to whatever language you're using
syntax enable " Turns on filetype detection if not already on, and then applies filetype-specific highlighting.
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.class
set diffopt+=iwhite "Ignore whitespaces in vimdiff"
filetype plugin on

snipmate的树结构

$ tree .vim/snipmate.vim/
.vim/snipmate.vim/
├── README.markdown
├── after
│   └── plugin
│   └── snipMate.vim
├── autoload
│   └── snipMate.vim
├── doc
│   ├── snipMate.txt
│   └── tags
├── ftplugin
│   └── html_snip_helper.vim
├── plugin
│   └── snipMate.vim
├── plugin-info.txt
├── snippets
│   ├── _.snippets
│   ├── autoit.snippets
│   ├── c.snippets
│   ├── cpp.snippets
│   ├── erlang.snippets
│   ├── html.snippets
│   ├── java.snippets
│   ├── javascript.snippets
│   ├── mako.snippets
│   ├── objc.snippets
│   ├── perl.snippets
│   ├── php.snippets
│   ├── python.snippets
│   ├── ruby.snippets
│   ├── sh.snippets
│   ├── snippet.snippets
│   ├── tcl.snippets
│   ├── tex.snippets
│   ├── vim.snippets
│   └── zsh.snippets
└── syntax
└── snippet.vim

8 directories, 29 files

其他插件( ctrl-p 和 nerdtree )可以正常工作,但 snipmate 不能。我做错了什么?

最佳答案

您应该使用pathogen 。它为您完成所有这些运行时路径的工作。

关于vim - snipmate 无法在 vim 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16642366/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com