Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filetype on in readme with OS X note. #53

Closed
wants to merge 1 commit into from

Conversation

matschaffer
Copy link

Apparently the default vim in OS X will exit 1 after editing if you try to filetype off before you filetype on

Apparently the default vim in OS X will exit 1 after editing if you try to `filetype off` before you `filetype on`.
@gmarik
Copy link
Contributor

gmarik commented Jun 6, 2011

Can't reproduce this issue.
Could you please provide more details?!

@matschaffer
Copy link
Author

Yep, here's a terminal session that illustrates the problem. I got the idea for the fix from this blog post. But it doesn't talk about the root of the problem. Perhaps it has something to do with the '-osfiletype' build option in my stock vim, but I haven't experimented with rebuilding my own vim to find out.

07:24 mat@schaffer: ~
❷ > cat > justoff
filetype off
^D
07:24 mat@schaffer: ~
❷ > cat > onoff
filetype on
filetype off
^D
07:25 mat@schaffer: ~
❷ > vim -u justoff testfile.txt # can be new file, :wq after opening

07:25 mat@schaffer: ~ [1]
❷ > echo $?
1

07:25 mat@schaffer: ~
❷ > vim -u onoff testfile.txt # :wq after opening

07:25 mat@schaffer: ~
❷ > echo $?
0

07:25 mat@schaffer: ~
❷ > vim --version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 31 2010 13:33:49)
Included patches: 1-108
Compiled by stripes@il0204d-dhcp43.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 
+cryptv +cscope +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 
+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 +postscript 
+printer -profile -python +quickfix +reltime -rightleft -ruby +scrollbind 
-signs +smartindent -sniff +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 armv7 -arch i386 -arch x86_64 -g -Os -pipe -mdynamic-no-pic        
Linking: gcc   -arch armv7 -arch i386 -arch x86_64             -o vim       -lm  -lncurses    

@gmarik
Copy link
Contributor

gmarik commented Jun 7, 2011

Oh, I see now...
Not sure whether this should be part of sample .vimrc though...
How about putting it into Wiki?
My concern is that sample .vimrc is growing and getting bigger and bigger making Quick Start section more and more "Not As Quick Start".

Let me know what you think...
Thanks for taking time to make detailed report, very much appreciated!

@matschaffer
Copy link
Author

Moving the bundle list out would make it shorter ;)

But I hear you. I'm thinking maybe a "OS X Users" note under the
example vimrc. Link that to the wiki.

Another thought would be an installer script (curl | bash, rvm style)

-Mat

On Jun 7, 2011, at 1:12 AM, gmarik
reply@reply.github.com
wrote:

Oh, I see now...
Not sure whether this should be part of sample .vimrc though...
How about putting it into Wiki?
My concern is that sample .vimrc is growing and getting bigger and bigger making Quick Start section more and more "Not As Quick Start".

Let me know what you think...
Thanks for taking time to make detailed report, very much appreciated!

Reply to this email directly or view it on GitHub:
#53 (comment)

@gmarik
Copy link
Contributor

gmarik commented Jun 9, 2011

This was moved to Wiki.
Also the installer issue created #59
Closing this!
Thank you!

@gmarik gmarik closed this Jun 9, 2011
@gmarik gmarik mentioned this pull request Jun 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants