Bug 1005608

Summary: .viminfo not read
Product: [Fedora] Fedora Reporter: GeoffLeach <geoffleach.gl>
Component: vimAssignee: Karsten Hopp <karsten>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 19CC: geoffleach.gl, karsten
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-11 13:47:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description GeoffLeach 2013-09-08 23:32:34 UTC
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 23:34:15 UTC
(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 09:22:04 UTC
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 13:47:50 UTC
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.