Skip to content

Commit

Permalink
🔧 Make ffu Vim key mapping also change the character encoding to `u…
Browse files Browse the repository at this point in the history
…tf-8`
  • Loading branch information
alrra committed Nov 15, 2024
1 parent d94b868 commit 3428d05
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,10 @@ map <leader>gd :SignifyToggle<cr>
" [,ffu] Convert file to use Unix line endings.
" See also: https://vim.fandom.com/wiki/File_format

map <leader>ffu :edit ++fileformat=dos <bar> :setlocal fileformat=unix <bar> :write!<cr><cr>
map <leader>ffu :edit ++fileformat=dos
\ <bar> :setlocal fileformat=unix
\ <bar> :write! ++encoding=utf-8 <cr><cr>
\ <bar> :edit! <cr><cr>
" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Expand Down

0 comments on commit 3428d05

Please sign in to comment.