This config file is usually located in your home directory: /home/user_name/.exrc
Let's use my actual .exrc file for reference:
Comments: Any line that begins with a double quote (or blank spaces + double quote) is treated as a comment.
Escaping command separators (pipes '|'): The command separator is the pipe ('|'). You can write several commands in the same line separating them with pipes. To include the pipe as part of one or your commands, as is the case with my third and fourth macros, you have to escape it by pressing Ctrl+V twice and then the pipe character. You can only do this using the very vi/nvi.
Mapping key combinations: To assign a macro to a key combination like Ctrl+End, you have to press Ctrl+V once and then the key combination, in this case Ctrl+End.
I've bumped into what seems a very advanced .exrc file here:
http://urbanjost.altervista.org/LIBRARY/public_html/VI/exrc_files/exrc_ADVANCED.html
Let's use my actual .exrc file for reference:
Comments: Any line that begins with a double quote (or blank spaces + double quote) is treated as a comment.
Escaping command separators (pipes '|'): The command separator is the pipe ('|'). You can write several commands in the same line separating them with pipes. To include the pipe as part of one or your commands, as is the case with my third and fourth macros, you have to escape it by pressing Ctrl+V twice and then the pipe character. You can only do this using the very vi/nvi.
Mapping key combinations: To assign a macro to a key combination like Ctrl+End, you have to press Ctrl+V once and then the key combination, in this case Ctrl+End.
I've bumped into what seems a very advanced .exrc file here:
http://urbanjost.altervista.org/LIBRARY/public_html/VI/exrc_files/exrc_ADVANCED.html