문제

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?

도움이 되었습니까?

해결책

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'

다른 팁

You can also change the file's name with yankring_history_file. For example, if you want it to be a hidden file in your home directory, leave yankring_history_dir as-is, and add this to your .vimrc:

let g:yankring_history_file = '.yankring_history'
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top