Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [viminfo]

If you exit `vim` and later start it again, you would normally lose a lot of information. The `viminfo` file can be used to remember that information, which enables you to continue where you left off.

1
vote
1answer
39 views

E138: Can't write viminfo file $HOME/.viminfo! root $HOME not set in vim

When I :q vim on my debian root account (not even writing), it always displays an error message: E138: Can't write viminfo file $HOME/.viminfo! .viminfo didn't exist, so I created it and checked ...
1
vote
1answer
68 views

How to remove entries from v:oldfiles list in neovim

I renamed a big folder that contains a lot of files I recently edited. After changing the name, my neovim's v:oldfiles list contains the old names that is no longer accessible. How can I clean the ...
1
vote
1answer
38 views

Can capitalized marks be saved in session INSTEAD of viminfo?

Marks are saved in .viminfo I would like to have separate marks saved per session. Is there an easy setting to make this switch? I know I could write some vimscript to save my session marks ...
1
vote
1answer
24 views

Exclude file pattern from keeping it in viminfo history?

I am comforable with using history of edited files that is kept in viminfo, the one that sets the limit in the first setting of set viminfo='100,... variable. After I've started using mutt as email ...
0
votes
0answers
45 views

Make viminfo file marks [0-9] only have 1 mark per file?

I plan to use the ~/.viminfo file marks (the ones that record the ten most recent lines and files) with fuzzy searching via grep so I don't have to type vim /full/path/that/is/very/nested/to/certain/...
0
votes
0answers
99 views

viminfo moving problem

According to this FAQ I have put set viminfo+=n~/.vim/viminfo in my ~/.vim/vimrc & removed ~/.viminfo but it does nothing! Why? (It should create a new viminfo on that dir) :set viminfo? output ...
1
vote
1answer
414 views

Moving .viminfo file to .vim dir

According to this FAQ for moving .viminfo file to .vim dir we should add viminfo+=n~/.vim/viminfo to vimrc file but when I put this line in my vimrc, every time I open vim, it will return this: E492: ...
2
votes
1answer
57 views

How to get pathname of viminfo file after vim started

If vim started with vim -i ~/tmp/.viminfo, how can I extract that pathname after vim started? Since upon exiting vim, history, mark, buf-list, etc will automatically write to that file, thus it must ...
2
votes
1answer
506 views

Vim does not save any usage history (E886: Can't rename viminfo file)

I just installed Vim and gVim, version 8.0.1026 under Windows 16 64bits. Everything works well, except that the program(s) can't save any historical information about my usage (e.g. recent files, ...
1
vote
2answers
88 views

Viminfo truncates named registers. Setting to increase limit?

I save quite a few lines into a named register "iy100l. I can then paste from that register just fine, "ip. I close and reopen Vim then try to paste from that register again "ip but it's truncated to ...
1
vote
1answer
11k views

What are the .viminfo and .netrwhist files?

I was wondering what's the purpose of .viminfo and .netrwhist files?
6
votes
1answer
100 views

Ignore word spelling on a per-file/buffer basis

I can add a word to the local dictionary or spellfile with zg. I can use zG to add a word to the internal spellfile, but this still affects all loaded files. How can I add spelling exceptions on a ...
5
votes
1answer
447 views

Can't move `viminfo` file - &viminfo reverts upon loading vim

I'm trying to change the location of the viminfo file. Why does the value of &viminfo revert after it is set in vimrc? TL;DR: In my vimrc I have: set nocompatible exec "set viminfo+=n".expand($...