vim-localvimrc icon indicating copy to clipboard operation
vim-localvimrc copied to clipboard

Errors on Mac OS 10.12.5

Open coin8086 opened this issue 8 years ago • 2 comments

When doing ":so %" I encountered the following errors:

Vimball Archive
extracted <README.md>: 383 lines
Error detected while processing function vimball#Vimball:
line  146:
"~/.vim/README.md" E212: Can't open file for writing
wrote /Users/robert/.vim/README.md
extracted <RELEASE.md>: 16 lines
"~/.vim/RELEASE.md" E212: Can't open file for writing
wrote /Users/robert/.vim/RELEASE.md
extracted <doc/localvimrc.txt>: 490 lines
line  113:
E739: Cannot create directory: /Users/robert/.vim/doc
line  146:
"~/.vim/doc/localvimrc.txt" E212: Can't open file for writing
wrote /Users/robert/.vim/doc/localvimrc.txt
extracted <plugin/localvimrc.vim>: 782 lines
line  113:
E739: Cannot create directory: /Users/robert/.vim/plugin
line  146:
"~/.vim/plugin/localvimrc.vim" E212: Can't open file for writing
wrote /Users/robert/.vim/plugin/localvimrc.vim
line  174:
E150: Not a directory: /Users/robert/.vim/doc
did helptags
Press ENTER or type command to continue

I'm using version 2.5.0 by https://vim.sourceforge.io/scripts/download_script.php?src_id=25017 And my VIM version is 7.4.8056. I do have a .vim directory under /Users/robert, but it's empty.

coin8086 avatar Sep 15 '17 11:09 coin8086

This seems to be a problem with the vimball plugin used for installation and/or your setting of runtimepath. Vimball uses the first writable directory in runtimepath to place the plugin files. It seems in your case /Users/robert/.vim/ is first element in runtimepath, is a directory, is reported to be writeable but in fact is not. Could you please check your runtimepath (:echo &runtimepath) and whats the status of the first element.

Additionally you can open localvimrc.vmb in vim and start installation manually (:UseVimball /your/plugin/directory).

embear avatar Sep 15 '17 11:09 embear

@embear Thanks for your information. I checked my runtimepath as you said and got this:

/Users/robert/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/Users/robert/.vim/after

I'm not a VIM expert so it would be nice to have it installed automatically.

coin8086 avatar Sep 22 '17 08:09 coin8086