Friday, February 20, 2015

Re: Editing tar file under osx

Subbu wrote:
> Hello Everyone!
>
> I have this strange problem editing tar file with vim. vim can edit and update tar under Linux. But it might have some problem with osx. I could reproduce this problem on simple tar file(like - tar has one text file). Does anyone has problem using vim with tar file with osx (os x yosemite) ? Any help really appreciated.
> Bellow is the error I am getting.
>
> ***error*** (tar#Write) sorry, unable to update /Users/user/mytar.tar with hello
>
> Output from :message is :
>
> "tarfile::hello" [Not edited] --No lines in buffer--
>
> Here is a debug log for this problem :
>
> "hello"
> "hello" [New] 1L, 6C written
> Calling shell to execute: "(tar --delete -f '/Users/user/mytar.tar' 'hello') >/var/folders/kr/4d2rsqs95bs1lv81d8jkkfwh0000gn/T/vbhpNWR/13 2>&1"
> ***error*** (tar#Write) sorry, unable to update /Users/user/mytar.tar with hello
> chdir(..)
> /private/var/folders/kr/4d2rsqs95bs1lv81d8jkkfwh0000gn/T/vbhpNWR/12
> Calling shell to execute: "(/bin/rm -rf -- '_ZIPVIM_') >/var/folders/kr/4d2rsqs95bs1lv81d8jkkfwh0000gn/T/vbhpNWR/14 2>&1"
>
Hello:

Please try v30b of plugin/tar.vim, which you can get from my website:
http://www.drchip.org/astronaut/vim/index.html#TAR . This version won't
actually solve your problem, but it might make it possible to do so.

I suspect that the tar command used: tar --delete -f ...
doesn't work on your mac. So I've made an option (a global variable,
really): g:tar_delfile, that by default is "--delete -f". If you can
find a mac equivalent, you can put let g:tar_delfile="..." in your
.vimrc. Please let me know if you find something that works. What it
does is delete a file from the tar archive.

You already have the g:tar_writeoptions variable, which by default has
the value "uf", and causes tar to be updated with a given file. You may
need to find a mac-ish substitute for that, too.

Regards,
Chip Campbell

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: