1
0
Fork 0
mirror of synced 2024-11-26 18:55:34 -05:00

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.
This commit is contained in:
Salvatore Sittinieri 2016-03-02 14:44:40 +00:00
parent 248dd6dac2
commit 5ddac67667

View file

@ -35,7 +35,7 @@ map <leader>f :MRU<CR>
if has("win16") || has("win32") if has("win16") || has("win32")
" Don't do anything " Don't do anything
else else
let g:yankring_history_dir = '~/.vim_runtime/temp_dirs/' let g:yankring_history_dir = '/tmp/.vim_runtime/temp_dirs/'
endif endif