Sorry, I tried to water down the issue to the point that I failed to
demonstrate the issue. The issue is:
*** It doesn't load the viminfo at all when I use use -u ***
I don't think any of my own .vimrc/.viminfo files are the issue. I tried to
prove this, below:
-----------------------------------------
myhost:~$echo > ~/.vimrc
myhost:~$cat ~/.viminfo
# This viminfo file was generated by Vim 7.4.
# You may edit it if you're careful!
# Value of 'encoding' when this file was written
*encoding=utf-8
# hlsearch on (H) or off (h):
~h
# Command Line History (newest to oldest):
:q
:history
# Search String History (newest to oldest):
# Expression History (newest to oldest):
# Input Line History (newest to oldest):
# Input Line History (newest to oldest):
# Registers:
# File marks:
# Jumplist (newest first):
# History of marks within files (newest to oldest):
myhost:~$vim -i ~/.viminfo
:history
# cmd history
2 q
> 3 history
myhost:~$vim -u ~/.vimrc -i ~/.viminfo
:history
'history' option is zero
------------------------------------------
As you can see, if I select my default .viminfo as the viminfo to load, it
works--as long as I didn't use -u. My .vimrc is empty, as I showed by creating
it from scratch above. But if I load it via -u, suddenly my history isn't
loaded from the viminfo.
The only difference between the two cases is I used "-u ~/.vimrc" in the case
where it fails, and I didn't in the case where it succeeds.
What am I missing?
I don't have any global vimrc etc., that I can see. But if I did, should -u
~/.vimrc change any of that vs. the default option to load ~/.vimrc?
This test was done with the following vim:
----------------------------------------
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 1 2014 17:05:47)
Included patches: 1-316
Compiled by <[email protected]>
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
-clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand +perl/dyn +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent +python3/dyn +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con +lua/dyn +rightleft +windows
+diff +menu +ruby/dyn +writebackup
+digraphs +mksession +scrollbind -X11
-dnd +modify_fname +signs -xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff -xsmp
+eval +mouse_dec +startuptime -xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/etc"
f-b for $VIMRUNTIME: "/usr/share/vim/vim74"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -I/usr/include/ncursesw
-ggdb -O2 -pipe -Wimplicit-function-declaration
-fdebug-prefix-map=/usr/src/ports/vim/vim-7.4.316-1.i686/build=/usr/src/debug/vim-7.4.316-1
-fdebug-prefix-map=/usr/src/ports/vim/vim-7.4.316-1.i686/src/vim74=/usr/src/debug/vim-7.4.316-1
-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -L/usr/local/lib -Wl,--as-needed -o vim.exe -lm
-lelf -lncursesw -liconv -lintl -Wl,--enable-auto-import
-Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector
-L/usr/local/lib -L/usr/lib/perl5/5.14/i686-cygwin-threads-64int/CORE -lperl
-ldl -lcrypt
---------------------------------------
--
--
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.