Re: default.vim getting sourced even when vimrc is present
On Tue, Nov 8, 2016 at 8:34 AM, Ken Takata wrote: > > Hi Karthick, > > 2016/11/7 Mon 22:24:03 UTC+9 Karthick wrote: > > Hello all, > > > > > > I just installed the 80-069 version of the MS-Windows Vim installer. I see > > the scrolloff option is being set to "5" due to defaults.vim getting > > sourced. > > (snip) > > > In my case, $VIM/_vimrc file *is* present, still defaults.vim is getting > > sourced. > > > > > > Maybe even more strangely, defaults.vim is getting sourced even if I do a, > > > > :let skip_defaults_vim=1 > > In the last line of my $VIM/_vimrc file > > Don't you source vimrc_example.vim from your _vimrc file? > If so it might happen, because vimrc_example.vim sources defaults.vim. > In that case, setting skip_defaults_vim in the last line has no meaning, > because it is already sourced. Thanks - that was the problem. I ran scriptnames as Bram suggested and it showed _vimrc followed by vimrc_example.vim and then defaults.vim. I moved from Vim 7.4 to Vim 8.0 and then soon to the 80-069 version. I see now from documentation that defaults.vim was introduced in Vim 8.0, which explains why I didn't face this problem earlier. Just to clarify, most of the defaults work fine for me, except the value of scrolloff. I have reverted it back to zero in my vimrc now. -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: default.vim getting sourced even when vimrc is present
Hi Karthick, 2016/11/7 Mon 22:24:03 UTC+9 Karthick wrote: > Hello all, > > > I just installed the 80-069 version of the MS-Windows Vim installer. I see > the scrolloff option is being set to "5" due to defaults.vim getting sourced. (snip) > In my case, $VIM/_vimrc file *is* present, still defaults.vim is getting > sourced. > > > Maybe even more strangely, defaults.vim is getting sourced even if I do a, > > :let skip_defaults_vim=1 > In the last line of my $VIM/_vimrc file Don't you source vimrc_example.vim from your _vimrc file? If so it might happen, because vimrc_example.vim sources defaults.vim. In that case, setting skip_defaults_vim in the last line has no meaning, because it is already sourced. Regards, Ken Takata -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: default.vim getting sourced even when vimrc is present
Karthick Gururaj wrote: > I just installed the 80-069 version of the MS-Windows Vim installer. I see > the scrolloff option is being set to "5" due to defaults.vim getting > sourced. > > :verbose set scrolloff? > Shows, >scrolloff=5 > Last set from C:\Program Files (x86)\Vim\vim80\defaults.vim [...] > In my case, $VIM/_vimrc file *is* present, still defaults.vim is getting > sourced. > > Maybe even more strangely, defaults.vim is getting sourced even if I do a, > :let skip_defaults_vim=1 > In the last line of my $VIM/_vimrc file Can you check the output of ":scriptnames" and see what comes before defaults.vim? Looking at the code, if that $VIM/_vimrc file is found it should not load defaults.vim. -- It's totally unfair to suggest - as many have - that engineers are socially inept. Engineers simply have different objectives when it comes to social interaction. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net \\\ ///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org/// \\\help me help AIDS victims -- http://ICCF-Holland.org/// -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
default.vim getting sourced even when vimrc is present
Hello all, I just installed the 80-069 version of the MS-Windows Vim installer. I see the scrolloff option is being set to "5" due to defaults.vim getting sourced. :verbose set scrolloff? Shows, scrolloff=5 Last set from C:\Program Files (x86)\Vim\vim80\defaults.vim :version VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 6 2016 17:20:44) MS-Windows 32-bit GUI version with OLE support Included patches: 1-69 Compiled by mool@tororo Huge version with GUI. Features included (+) or not (-): +acl+eval +mouse +syntax +arabic +ex_extra +mouseshape +tag_binary +autocmd+extra_search +multi_byte_ime/dyn +tag_old_static +balloon_eval +farsi +multi_lang -tag_any_white +browse +file_in_path -mzscheme +tcl/dyn ++builtin_terms +find_in_path +netbeans_intg -termguicolors +byte_offset+float +num64 -tgetent +channel+folding+ole-termresponse +cindent-footer +packages +textobjects +clientserver +gettext/dyn+path_extra +timers +clipboard -hangul_input +perl/dyn +title +cmdline_compl +iconv/dyn +persistent_undo+toolbar +cmdline_hist +insert_expand -postscript +user_commands +cmdline_info +job+printer+vertsplit +comments +jumplist +profile+virtualedit +conceal+keymap +python/dyn +visual +cryptv +lambda +python3/dyn+visualextra +cscope +langmap+quickfix +viminfo +cursorbind +libcall+reltime+vreplace +cursorshape+linebreak +rightleft +wildignore +dialog_con_gui +lispindent +ruby/dyn +wildmenu +diff +listcmds +scrollbind +windows +digraphs +localmap +signs +writebackup +directx-lua+smartindent-xfontset -dnd+menu +startuptime-xim -ebcdic +mksession +statusline +xpm_w32 +emacs_tags +modify_fname -sun_workshop -xterm_save system vimrc file: "$VIM\vimrc" user vimrc file: "$HOME\_vimrc" 2nd user vimrc file: "$HOME\vimfiles\vimrc" 3rd user vimrc file: "$VIM\_vimrc" user exrc file: "$HOME\_exrc" 2nd user exrc file: "$VIM\_exrc" system gvimrc file: "$VIM\gvimrc" user gvimrc file: "$HOME\_gvimrc" 2nd user gvimrc file: "$HOME\vimfiles\gvimrc" 3rd user gvimrc file: "$VIM\_gvimrc" defaults file: "$VIMRUNTIME\defaults.vim" system menu file: "$VIMRUNTIME\menu.vim" Compilation: cl -c /W3 /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DFEAT_CSCOPE -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_XPM_W32 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /Fo.\ObjGXOLYHTRi386/ /Ox /GL -DNDEBUG /Zl /MT -DFEAT_OLE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_GUI_W32 -DFEAT_DIRECTX -DDYNAMIC_DIRECTX -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL -DDYNAMIC_TCL_DLL=\"tcl86.dll\" -DDYNAMIC_TCL_VER=\"8.6\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python35.dll\" -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl524.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_VER=22 -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby220.dll\" -DFEAT_HUGE /Fd.\ObjGXOLYHTRi386/ /Zi Linking: link /RELEASE /nologo /subsystem:windows /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib comdlg32.lib ole32.lib uuid.lib /machine:i386 gdi32.lib version.lib winspool.lib comctl32.lib advapi32.lib shell32.lib /machine:i386 /nodefaultlib libcmt.lib oleaut32.lib user32.lib /nodefaultlib:python27.lib /nodefaultlib:python35.lib "E:\tcl\lib\tclstub86.lib" WSock32.lib xpm\x86\lib\libXpm.lib /PDB:gvim.pdb -debug In my case, $VIM/_vimrc file *is* present, still defaults.vim is getting sourced. Maybe even more strangely, defaults.vim is getting sourced even if I do a, :let skip_defaults_vim=1 In the last line of my $VIM/_vimrc file - Karthick -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.