marvim.vim не загружается через патоген

У меня есть несколько плагинов, которые нормально загружаются через pathogen. Но marvim.vim не загружается. Однако, если я перенесу marvim в ~/.vim/plugin из ~/.vim/bundle, marvim загрузится и будет работать хорошо. Можно ли загрузить marvim через патоген?

Вот мой .vimrc

set shiftwidth=4
set tabstop=4
set expandtab
set autoindent


" The default yellow for Search highlight sucks 
hi Search ctermbg=Grey
hi Visual ctermbg=Grey

" Move Backup Files to ~/.vim/sessions
set backupdir=~/.vim/sessions
set dir=~/.vim/sessions

" Split line. Opposite of join. Join -> J. Split -> S
map S i<CR><ESC>
" Insert \\ at the end of the line
map -I A\\
" Insert \textbf{\small{}} \par 
map -M 0i\textbf{\small{}} \par<ESC>
" Function to strip trailing whitespaces
" Based on http://vimcasts.org/episodes/tidying-whitespace/
function! <SID>StripTrailingWhitespaces()
    " Preparation: save last search, and cursor position.
    let _s=@/
    let l = line(".")
    let c = col(".")
    " Do the business:
    %s/\s\+$//e
    " Clean up: restore previous search history, and cursor position
    let @/=_s
    call cursor(l, c)
endfunction

nnoremap <silent> <F5> :call <SID>StripTrailingWhitespaces()<CR>

"pylint
let g:PyLintDissabledMessages = 'C0103,C0111,C0301,W0141,W0142,W0212,W0221,W0223,W0232,W0401,W0613,W0631,E1101,E1120,R0903,R0904,R0913'
let g:PyLintCWindow = 1

"let g:PyLintDissabledMessages = 'R0914'
" Pathogen load
"filetype off
"call pathogen#infect()
"call pathogen#helptags()
"execute pathogen#infect()

"filetype plugin indent on
"syntax on
set nocp
call pathogen#infect()
syntax on
filetype plugin indent on
call pathogen#infect()

set wrap linebreak nolist
let g:ycm_filetype_blacklist = { 'python': 1, 'yaml': 1 }

" Remove trailing whitespace
autocmd BufWritePre *.py %s/\s\+$//e

Вот вывод :scriptnames

  1: /etc/vimrc
  2: /usr/share/vim/vim80/syntax/syntax.vim
  3: /usr/share/vim/vim80/syntax/synload.vim
  4: /usr/share/vim/vim80/syntax/syncolor.vim
  5: /usr/share/vim/vim80/filetype.vim
  6: /usr/share/vim/vimfiles/ftdetect/nginx.vim
  7: /usr/share/vim/vimfiles/ftdetect/stp.vim
  8: /usr/share/vim/vim80/ftplugin.vim
  9: ~/.vimrc
 10: ~/.vim/autoload/pathogen.vim
 11: /usr/share/vim/vim80/ftoff.vim
 12: ~/.vim/bundle/tern_for_vim/ftdetect/tern.vim
 13: ~/.vim/bundle/vim-javascript/ftdetect/javascript.vim
 14: /usr/share/vim/vim80/syntax/nosyntax.vim
 15: /usr/share/vim/vim80/indent.vim
 16: ~/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
 17: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 18: ~/.vim/bundle/vim-surround/plugin/surround.vim
 19: /usr/share/vim/vimfiles/plugin/cctree.vim
 20: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 21: /usr/share/vim/vim80/plugin/gzip.vim
 22: /usr/share/vim/vim80/plugin/logiPat.vim
 23: /usr/share/vim/vim80/plugin/manpager.vim
 24: /usr/share/vim/vim80/plugin/matchparen.vim
 25: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 26: /usr/share/vim/vim80/plugin/rrhelper.vim
 27: /usr/share/vim/vim80/plugin/spellfile.vim
 28: /usr/share/vim/vim80/plugin/tarPlugin.vim
 29: /usr/share/vim/vim80/plugin/tohtml.vim
 30: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 31: /usr/share/vim/vim80/plugin/zipPlugin.vim
 32: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim

person Sudheer    schedule 14.05.2017    source источник


Ответы (1)


Этот файл может быть получен Vim только в том случае, если он находится в каталоге plugin/ в любом из каталогов, перечисленных в опции 'runtimepath'.

Поскольку вы используете Pathogen, простое добавление marvim.vim в ~/.vim/bundle/ никогда не сработает.

Что вам нужно сделать, так это поместить этот файл в правильный каталог plugin/, а сам в правильный каталог pluginname/ под ~/.vim/bundle/:

~/.vim/bundle/marvim/plugin/marvim.vim
person romainl    schedule 14.05.2017