home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / amiga / vim46src.lha / vim-4.6 / src / ascii.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-03  |  907 b   |  38 lines

  1. /* vi:set ts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved        by Bram Moolenaar
  4.  *
  5.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  6.  * Do ":help credits" in Vim to see a list of people who contributed.
  7.  */
  8.  
  9. /*
  10.  * Definitions of various common control characters
  11.  */
  12.  
  13. #define NUL                     '\000'
  14. #define TAB                     '\011'
  15. #define NL                        '\012'
  16. #define NL_STR                    (char_u *)"\012"
  17. #define CR                        '\015'
  18. #define ESC                     '\033'
  19. #define ESC_STR                 (char_u *)"\033"
  20. #define DEL                     0x7f
  21. #define CSI                     0x9b
  22.  
  23. #define Ctrl(x) ((x) & 0x1f)
  24. #define Meta(x) ((x) | 0x80)
  25.  
  26. /*
  27.  * Character that separates dir names in a path.
  28.  * For MS-DOS, WIN32 and OS/2 we use the backslash.  A slash mostly works
  29.  * fine, but there are places where it doesn't (e.g. in a command name).
  30.  */
  31. #if defined(BACKSLASH_IN_FILENAME)
  32. # define PATHSEP '\\'
  33. # define PATHSEPSTR "\\"
  34. #else
  35. # define PATHSEP '/'
  36. # define PATHSEPSTR "/"
  37. #endif
  38.