Tuesday, October 15, 2013

Re: vim cannot open a specific file and spits out garbage

On Monday, October 14, 2013 5:46:35 AM UTC-5, Federico Calboli wrote:
> Hi All,
>
> I am using vim on mac OS 10.8.5, vim --version returns:
>
> VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 20 2012 13:16:02)
> Compiled by root@apple.com
> Normal version without GUI. Features included (+) or not (-):
> -arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
> -clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
> -conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
> -dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
> +find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
> +insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
> +listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape
> -mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse
> +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg -osfiletype
> +path_extra -perl +persistent_undo +postscript +printer -profile +python/dyn
> -python3 +quickfix +reltime -rightleft +ruby/dyn +scrollbind +signs
> +smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
> +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
> -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
> +vreplace +wildignore +wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp
> -xterm_clipboard -xterm_save
> system vimrc file: "$VIM/vimrc"
> user vimrc file: "$HOME/.vimrc"
> user exrc file: "$HOME/.exrc"
> fall-back for $VIM: "/usr/share/vim"
> Compilation: gcc -c -I. -D_FORTIFY_SOURCE=0 -Iproto -DHAVE_CONFIG_H -arch i386 -arch x86_64 -g -Os -pipe
> Linking: gcc -arch i386 -arch x86_64 -o vim -lncurses
>
> I am trying to use vim to edit a file (~/.Rprofile).
>
> The content of ~/.Rprofile is:
>
> Sys.setenv(PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin")
>
> (the file is also attached).
>
> If I type vim .Rprofile I get the following garbage:
>
> ".Rprofile" 1L, 107CTraceback (most recent call last):
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 548, in <module>
> main()
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 530, in main
> known_paths = addusersitepackages(known_paths)
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 266, in addusersitepackages
> user_site = getusersitepackages()
> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 241, in getusersitepackages
> user_base = getuserbase()

This "garbage" is a an error in the python code in one of your plugins.

Try disabling them one by one (or if you have a lot, half at a time) to find the culprit. Then contact the plugin maintainer.

--
--
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/groups/opt_out.

No comments: