Search code examples
vimvim-pluginyank

Change location of vim yankring history file


The yankring plugin for Vim creates a file in my home directory called yankring_history_v2.txt. How do I tell the plugin to store this file in another location?


Solution

  • Yankring looks for a variable called yankring_history_dir to know where to store this file. Add the following line to your .vimrc:

    let g:yankring_history_dir = 'path/to/history/dir'