News for hackers. Stuff that matters.
Re:ASCII Delimited Text – Not CSV or TAB delimited text by npongratz on Wednesday March 26, 2014 @02:36PM (#7475379)
Vim will let you type the record separator, but you may have to precede it with Ctrl-V. In other words, type the Ctrl-V Ctrl-^ key sequence.

At least, that worked for me. Interesting that the unit separator does not have the same requirement to precede it with Ctrl-V.

More info in the vim docs:

http://vimdoc.sourceforge.net/htmldoc/insert.html#ins-specia...

Re:ASCII Delimited Text – Not CSV or TAB delimited text by groovy2shoes on Wednesday March 26, 2014 @04:46PM (#7476518)
Yes, Ctrl-V in {insert,command} mode lets you input literal control characters, as well as numeric codes (31 for unit separator, 30 for record separator). If you're using vim on Windows, however, note that the default vimrc loads mswin.vim which changes Ctrl-V to paste. In that case, you can simply remove mswin.vim from your vimrc or use Ctrl-Q instead. (See :h i_Ctrl-V).

You can also use Ctrl-K to enter RFC1345 digraphs, in which case unit separator is 'Ctrl-K US' and record separator is 'Ctrl-K RS'. (See :h Ctrl-K).

Emacs has similar features, as well as a nifty TeX input mode: http://stackoverflow.com/q/6269618