From 3428d05b51128278dd98fc5d433e9868822e06c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Mari=C8=99?= Date: Thu, 14 Nov 2024 17:35:55 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20`ffu`=20Vim=20key=20mappi?= =?UTF-8?q?ng=20also=20change=20the=20character=20encoding=20to=20`utf-8`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vim/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vim/vimrc b/src/vim/vimrc index 6b30a3509..0cf703d61 100644 --- a/src/vim/vimrc +++ b/src/vim/vimrc @@ -755,7 +755,10 @@ map gd :SignifyToggle " [,ffu] Convert file to use Unix line endings. " See also: https://vim.fandom.com/wiki/File_format -map ffu :edit ++fileformat=dos :setlocal fileformat=unix :write! +map ffu :edit ++fileformat=dos + \ :setlocal fileformat=unix + \ :write! ++encoding=utf-8 + \ :edit! " - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -