You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
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!
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)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Apparently the default vim in OS X will exit 1 after editing if you try to
filetype off
before youfiletype on