.vimrc: Comment out `SetViminfoEncoding`
authorOleg Broytman <phd@phdru.name>
Wed, 22 May 2019 08:39:21 +0000 (11:39 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 22 May 2019 08:39:21 +0000 (11:39 +0300)
Undo cf1fcbf3b80158230383b27776ca768899b3a52b.

It prevents copy/paste via `.viminfo` between terminals
with different encodings.

.vimrc

diff --git a/.vimrc b/.vimrc
index c4e396c..ab92bd4 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -795,15 +795,15 @@ command! UName Uname
 endif
 " ----------
 
-if has("iconv")
-function! SetViminfoEncoding()
-   " Set universal encoding for .viminfo
-   if &encoding != 'utf-8'
-      set encoding=utf-8
-   endif
-endfunction
-autocmd VimLeavePre * call SetViminfoEncoding()
-endif
+if has("iconv")
+function! SetViminfoEncoding()
+   " Set universal encoding for .viminfo
+   if &encoding != 'utf-8'
+      set encoding=utf-8
+   endif
+endfunction
+autocmd VimLeavePre * call SetViminfoEncoding()
+endif
 
 " This has to go to the very end of ~/.vimrc to allow reading the .vimrc
 set secure        " safer working with script files in the current directory