2014-10-20 I'm currently working with vim a lot. (Not on my own system but on other ones and in not so sane environments.) Vim's s-command can work on newlines, but one needs to know about the quirks: In the syntax s/foo/bar \r and \n have different meanings, depending on context. For foo: \n = newline \r = CR (carriage return = Ctrl-M = ^M) For bar: \r = newline \n = null byte (0x00). [0] I work with Unicode stuff, currently. There is this useful website to get information on Unicode code points. [1] The most basic knowledge on Unicode is taught by Joel. [2] (He's wrong in one point: `ß' is no strange way to draw `ss', but a quite straight forward ligature for `sz', with the old `long-s'.) Iconv(1) can be used to transcode text. It's error messages are sometimes missleading. Not every ``illegal input sequence'' is a problem of the input, but rather a problem of the output. ;-) Quite revealing! [3] To solve this problem, one can add ``//TRANSLIT'' to the target charset to get illegal characters replaced by ``similar'' ones: iconv -f utf-8 -t latin1//TRANSLIT I don't like that in mysql I need to write down passwords in clear text. They get stored in the command history and some guy behinde me can watch me writing ... Hmm. :-( It's nice that the whole user management of mysql is done in mysql itself, but the passwords are a problem. [0] http://stackoverflow.com/questions/71323/how-to-replace-a- character-for-a-newline-in-vim [1] http://http://www.ltg.ed.ac.uk/~richard/utf-8.cgi [2] http://www.joelonsoftware.com/articles/Unicode.html [3] http://article.gmane.org/gmane.emacs.xemacs.beta/36328 http://marmaro.de/lue/ markus schnalke