Bug 1005608 - .viminfo not read
.viminfo not read
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: vim (Show other bugs)
19
x86_64 Linux
unspecified Severity medium
: ---
: ---
Assigned To: Karsten Hopp
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-08 19:32 EDT by GeoffLeach
Modified: 2013-09-11 09:47 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-09-11 09:47:50 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description GeoffLeach 2013-09-08 19:32:34 EDT
Description of problem: the command 'set viminfo=...' in ~/.vimrc not read


Version-Release number of selected component (if applicable):
1.4 4.fc19

How reproducible:always


Steps to Reproduce:
1.add set viminfo=... to ~/.vimrc
2.add a mark
3.save and re-edit.

Actual results:
 '<mark> not effective

Expected results:
goto <mark>

Additional info:
works in gvim
Comment 1 GeoffLeach 2013-09-08 19:34:15 EDT
(In reply to GeoffLeach from comment #0)
> Description of problem: the command 'set viminfo=...' in ~/.vimrc not read
> 
> 
> Version-Release number of selected component (if applicable):
> 1.4 4.fc19
> 
> How reproducible:always
> 
> 
> Steps to Reproduce:
> 1.add set viminfo=... to ~/.vimrc
> 2.add a mark
> 3.save and re-edit.
> 
> Actual results:
>  '<mark> not effective
> 
> Expected results:
> goto <mark>
> 
> Additional info:
> works in gvim

vim-enhanced 7.4.0 2.fc19 -- sorry 'bout that
Comment 2 Karsten Hopp 2013-09-11 05:22:04 EDT
Are you really using viminfo=... or is ... a placeholder ? You should have gotten an error as a '.' isn't allowed here.

Are you sure you're using vim and not vi ? I'd guess that you're doing this as root and run 'vi ~/.vimrc' which gets you '/bin/vi ~/.vimrc'. As a normal user this would run '/usr/bin/vim ~/.vimrc' instead.

Try running 'vim ~/.vimrc', that'll work (well, you'll get the error message about '.' not being allowed for the viminfo setting)
Comment 3 GeoffLeach 2013-09-11 09:47:50 EDT
Sorry, my bad. FWIW, here's the exact text from ~/.vimrc
set viminfo='1000,f1,/100,%,n~/.viminfo

Yes, I was running 'vi' and not 'vim'. Running 'vim' it works as advertised. Sorry for the confusion.

Note You need to log in before you can comment on or make changes to this bug.