From 5ddac6766722483dcb2dba5834c68278d6d128d9 Mon Sep 17 00:00:00 2001 From: Salvatore Sittinieri Date: Wed, 2 Mar 2016 14:44:40 +0000 Subject: [PATCH] yankring_history_dir in the /tmp folder instead of the user folder Sometime you are editing some files in a terminal session logged as a different user but keeping the environment for the previous user (su -E). Vim will complain that will not be able to write because the yankring_history_dir is read-only (pointing to the previous user). I'd recommend to use the /tmp folder for the yankring_history. --- vimrcs/plugins_config.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrcs/plugins_config.vim b/vimrcs/plugins_config.vim index da48f593..629228a4 100644 --- a/vimrcs/plugins_config.vim +++ b/vimrcs/plugins_config.vim @@ -35,7 +35,7 @@ map f :MRU if has("win16") || has("win32") " Don't do anything else - let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/' + let g:yankring_history_dir = '/tmp/.vim_runtime/temp_dirs/' endif