LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vim error "leere fenc um sie zu erzwingen" (german chars) (https://www.linuxquestions.org/questions/linux-software-2/vim-error-leere-fenc-um-sie-zu-erzwingen-german-chars-4175533728/)

Xeratul 02-11-2015 11:57 AM

vim error "leere fenc um sie zu erzwingen" (german chars)
 
Hello,

I am trying to send an email from mutt, with a message having german chars.

I got a problem since I cannot send a proper formating of äöü chars.

I tried this:
http://vim.wikia.com/wiki/OEM_to_ANSI_conversion
to convert to cp437
but it did not work.
I get: vim error "leere fenc um sie zu erzwingen" (german chars)


I would like to ask you how to do so.

I use vim to compose (vim set as editor into .muttrc)

Looking forward to hearing you

gnashley 02-12-2015 01:40 AM

I would just 'chicken out' and use the alternate spellings 'ae', 'oe' and 'ue'.

TobiSGD 02-18-2015 09:33 AM

I just tested that with sending a mail that only contains German umlauts to one of my accounts, using Mutt with GVim for editing, no problems occurred.
It may help to post your Mutt and Vim configuration (please edit out all confidential information before doing so).

TobiSGD 02-18-2015 09:34 AM

Moved: This thread is more suitable in <Linux - Software> and has been moved accordingly to help your thread/question get the exposure it deserves.

Xeratul 03-01-2015 10:35 AM

Quote:

Originally Posted by TobiSGD (Post 5319450)
I just tested that with sending a mail that only contains German umlauts to one of my accounts, using Mutt with GVim for editing, no problems occurred.
It may help to post your Mutt and Vim configuration (please edit out all confidential information before doing so).


it depends how you format the txt file....

It is testable with :
Code:

cat file.txt | mutt -s test -- username@gmail.com
For german, I must tell vim to do:

Code:

function! Latin()
 :set spelllang=de
 :set spell
 :setlocal fenc=latin1
endfunc
map gl :call Latin()<CR>

than save it with ":wq"

Once it is done, then, the umlaut problems are solved when I send it with mutt.


Could you explain me why?


thank you


All times are GMT -5. The time now is 05:51 PM.