Bug 1005608 - .viminfo not read
Summary: .viminfo not read
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: vim
Version: 19
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-08 23:32 UTC by GeoffLeach
Modified: 2013-09-11 13:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-11 13:47:50 UTC
Type: Bug


Attachments (Terms of Use)

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.


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