home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / ae.zip / ae.ini < prev    next >
Text File  |  1998-09-07  |  9KB  |  254 lines

  1. ;
  2. ; Andys Editor configuration file
  3. ; Andys personal preferences
  4. ;
  5. ;...srequired:0:
  6. ; These are required so that Tab and Enter work as expected.
  7. ; Having ^J defined like ^M helps in UNIX environments.
  8.  
  9. key_bind "^I"        "character_tab"
  10. key_bind "^M"        "line_split"
  11. key_bind "^J"        "line_split"
  12. ;...e
  13. ;...snavigation:0:
  14. ; General navigation via WordStar cursor diamond and arrow-pad
  15.  
  16. key_bind "^D"        "character_right"
  17. key_bind "^S"        "character_left"
  18. key_bind "^F"        "word_right"
  19. key_bind "^A"        "word_left"
  20. key_bind "^E"        "line_up"
  21. key_bind "^X"        "line_down"
  22. key_bind "^R"        "page_up"
  23. key_bind "^C"        "page_down"
  24. key_bind "^W"        "page_scroll_down"
  25. key_bind "^Z"        "page_scroll_up"
  26.  
  27. key_bind "Left"        "character_left"
  28. key_bind "Right"    "character_right"
  29. key_bind "Up"        "line_up"
  30. key_bind "Down"        "line_down"
  31. key_bind "PgUp"        "page_up"
  32. key_bind "PgDn"        "page_down"
  33. key_bind "^PgUp"    "line_up line_up line_up line_up line_up"
  34. key_bind "^PgDn"    "line_down line_down line_down line_down line_down"
  35.  
  36. ; I like the following
  37. key_bind "^Left"    "line_start"
  38. key_bind "^Right"    "line_end"
  39. key_bind "Home"        "fold_start"
  40. key_bind "End"        "fold_end"
  41. key_bind "^Home"    "tag_goto no"
  42. key_bind "^End"        "tag_goto yes"
  43. ; Most people prefer these
  44. ; key_bind "^Left"    "word_left"
  45. ; key_bind "^Right"    "word_right"
  46. ; key_bind "Home"    "line_start"
  47. ; key_bind "End"    "line_end"
  48. ; key_bind "^Home"    "fold_start"
  49. ; key_bind "^End"    "fold_end"
  50. ;...e
  51. ;...sbasic editing:0:
  52. key_bind "^G"        "character_delete_right"
  53. key_bind "^H"        "character_delete_left"
  54. key_bind "^N"        "character_delete_eol"
  55. key_bind "^Q"        "character_type ?"
  56.  
  57. ; I like Ins to insert a new line
  58. key_bind "Ins"        "line_insert \"\""
  59. ; Most people prefer to toggle between insert and overtype modes
  60. ; key_bind "Ins"    "setup_insert"
  61.  
  62. key_bind "Del"        "character_delete_right"
  63.  
  64. ; Delete should delete to its left
  65. key_bind "Del127"    "character_delete_left"
  66. ; But you could set it to insert ASCII 127
  67. ; key_bind "Del127"    "character_type 127"
  68. ;...e
  69. ;...sblock commands:0:
  70. key_bind "^O"        "block_mark_1"
  71. key_bind "^P"        "block_mark_2"
  72.  
  73. key_prefix "^K"
  74. key_bind "^K ^S"    "block_mark_1"
  75. key_bind "^K ^E"    "block_mark_2"
  76. key_bind "^K ^H"    "block_unmark"
  77. key_bind "^K ^F"    "block_fold \"\" no 0"
  78. key_bind "^K ^U"    "block_unfold"
  79. key_bind "^K ^C"    "block_yank other_undelete"
  80. key_bind "^K ^V"    "block_delete other_undelete"
  81. key_bind "^K ^D"    "block_delete"
  82. key_bind "^K ^Y"    "block_yank"
  83. key_bind "^K ^T"    "block_entab"
  84. key_bind "^K ^L"    "block_detab"
  85. key_bind "^K ^R"    "block_read ?"
  86. key_bind "^K ^W"    "block_write ? no"
  87. key_bind "^K ^X"    "block_filter ?"
  88.  
  89. key_bind "@H"        "block_unmark"
  90. key_bind "@C"        "block_yank other_undelete"
  91. key_bind "@M"        "block_delete other_undelete"
  92. key_bind "@D"        "block_delete"
  93. key_bind "@Y"        "block_yank"
  94. key_bind "@R"        "block_entab"
  95. key_bind "@L"        "block_detab"
  96. key_bind "@F"        "block_fold \"\" no 0"
  97. key_bind "@U"        "block_unfold"
  98. ;...e
  99. ;...sline commands:0:
  100. key_bind "^Y"        "line_delete"
  101.  
  102. key_prefix "^L"
  103. key_bind "^L ^C"    "line_insert \"\""
  104. key_bind "^L ^F"    "line_insert... \"\" no 0"
  105. key_bind "^L ^V"    "line_insert::: \"\" no 0"
  106. key_bind "^L ^D"    "line_delete"
  107. key_bind "^L ^Y"    "line_yank"
  108. key_bind "^L ^S"    "line_start"
  109. key_bind "^L ^E"    "line_end"
  110. key_bind "^L ^I"    "fold_in"
  111. key_bind "^L ^O"    "fold_out"
  112. key_bind "^L ^X"    "line_exec"
  113. key_bind "^L ^T"    "tag_line"
  114. key_bind "^L ^P"    "tag_goto no"
  115. key_bind "^L ^N"    "tag_goto yes"
  116. key_bind "^L ^G"    "line_goto ?"
  117.  
  118. key_bind "@G"        "line_goto ?"
  119. ;...e
  120. ;...sbuffer commands:0:
  121. key_prefix "^B"
  122. key_bind "^B ^C"    "buffer_create ? yes yes"
  123. key_bind "^B ^D"    "buffer_delete ?"
  124. key_bind "^B ^S"    "buffer_select ?"
  125. key_bind "^B ^R"    "buffer_read ?"
  126. key_bind "^B ^W"    "buffer_write ? no"
  127. key_bind "^B ^N"    "buffer_rename ? ?"
  128.  
  129. key_bind "@B"        "buffer_select ?"
  130. key_bind "@W"        "buffer_write ? no"
  131. ;...e
  132. ;...sfolding:0:
  133. key_bind "F1"        "fold_open yes"
  134. key_bind "F2"        "fold_open no"
  135. key_bind "F3"        "fold_in"
  136. key_bind "F4"        "fold_out"
  137. key_bind "F5"        "line_insert... \"\" no 0"
  138. key_bind "F6"        "line_insert::: \"\" no 0"
  139. ;...e
  140. ;...ssearching:0:
  141. key_bind "F7"        "search_bracket"
  142. key_bind "F8"        "search_replace ? ? yes yes always if_open ? ? no"
  143. key_bind "F9"        "search_for ? yes yes always if_open ? 1 no"
  144. key_bind "F10"        "search_again"
  145. ;...e
  146. ;...scut\45\and\45\paste:0:
  147. ; Provide a simple multiple clipboard cut-and-paste mechanism by
  148. ; using temporary files.
  149.  
  150. ; On a PC platform, use something like these
  151. $P
  152. key_bind "^F1"        "block_read \"c:/tmp/ae1.cut\""
  153. key_bind "^F2"        "block_read \"c:/tmp/ae2.cut\""
  154. key_bind "^F3"        "block_read \"c:/tmp/ae3.cut\""
  155. key_bind "^F4"        "block_read \"c:/tmp/ae4.cut\""
  156. key_bind "~F1"        "block_write \"c:/tmp/ae1.cut\" no"
  157. key_bind "~F2"        "block_write \"c:/tmp/ae2.cut\" no"
  158. key_bind "~F3"        "block_write \"c:/tmp/ae3.cut\" no"
  159. key_bind "~F4"        "block_write \"c:/tmp/ae4.cut\" no"
  160. $U
  161. ; On a type of UNIX, use something like these
  162. key_bind "^F1"        "block_read \"/tmp/ae1.cut\""
  163. key_bind "^F2"        "block_read \"/tmp/ae2.cut\""
  164. key_bind "^F3"        "block_read \"/tmp/ae3.cut\""
  165. key_bind "^F4"        "block_read \"/tmp/ae4.cut\""
  166. key_bind "~F1"        "block_write \"/tmp/ae1.cut\" no"
  167. key_bind "~F2"        "block_write \"/tmp/ae2.cut\" no"
  168. key_bind "~F3"        "block_write \"/tmp/ae3.cut\" no"
  169. key_bind "~F4"        "block_write \"/tmp/ae4.cut\" no"
  170. $*
  171. ;...e
  172. ;...scolours:0:
  173. ; Black=0, Blue=1, Green=2, Cyan=3, Red=4, Magenta=5, Yellow=6, White=7.
  174. ; Basic colour is Foreground + 16 * Background.
  175. ; On DOS and OS/2, add 8 for bright, 128 for flashing.
  176. ; On Win32, add 8 bright foreground, 128 for bright background.
  177. ; On UNIX, add 256 for underline, 512 for standout, 768 for alternate -
  178. ; UNIX uses colours if possible, else use underline, standout and alternate.
  179. ; Luckily numbers may be given in hex.
  180.  
  181. ; Default:
  182. key_bind "@F1"        "other_colours &007 &00e &24e &217 &21e &070"
  183. ; Paper-white:
  184. key_bind "@F2"        "other_colours &270 &271 &017 &030 &031 &257"
  185. ; Blue and white look:
  186. key_bind "@F3"        "other_colours &017 &01e &131 &147 &14e &070"
  187. ; Mono for laptop:
  188. key_bind "@F4"        "other_colours &007 &007 &370 &370 &370 &007"
  189. ; Ians style:
  190. key_bind "@F5"        "other_colours &007 &00e &21b &247 &24e &031"
  191.  
  192. ; Sometimes I prefer the second scheme above as the default
  193. ;other_colours &270 &271 &017 &030 &031 &257
  194. ;...e
  195. ;...sscreen modes:0:
  196. ; Just a few commonly supported sizes
  197.  
  198. $P
  199. key_bind "@F6"        "other_mode 80 25"
  200. key_bind "@F7"        "other_mode 80 34"
  201. key_bind "@F8"        "other_mode 80 43"
  202. key_bind "@F9"        "other_mode 80 50"
  203. key_bind "@F10"        "other_mode 80 60"
  204. key_bind "@F11"        "other_mode 132 25"
  205. key_bind "@F12"        "other_mode 132 44"
  206. $*
  207. ;...e
  208. ;...smisc:0:
  209. key_bind "^^"        "other_exit yes"
  210. key_bind "^]"        "other_exit yes"
  211. key_bind "^U"        "other_undelete"
  212. key_bind "^T"        "other_put"
  213. key_bind "^V"        "setup_insert"
  214.  
  215. key_bind "@P"        "setup_autoindent"
  216. key_bind "@J"        "setup_visible"
  217. key_bind "@T"        "tag_line"
  218. key_bind "@E"        "tag_error line_down"
  219. key_bind "@X"        "other_exit yes"
  220. key_bind "@S"        "other_shell ?"
  221. key_bind "@A"        "other_abort ?"
  222. key_bind "@Q"        "other_squeeze"
  223. ;...e
  224. ;...slanguages:0:
  225. language_create "top" "/*..." "*/" ".*\\.top" no yes yes 0 "_"
  226. language_create "ae" ";..." "" "(.:)?ae.*\\.ini|(.*[/:])?\\.ae.*rc" no no yes 0 "_"
  227. language_create "be" "/*..." "*/" "(.:)?be.*\\.ini|(.*[/:])?\\.be.*rc" no yes yes 0 "_"
  228. language_create "c" "/*..." "*/" ".*\\.(c|h|y|C|H|cpp|hpp|cxx|hxx|sqc)" no yes yes 0 "_."
  229. language_create "resource" "/*..." "*/" ".*\\.(rc|dlg)" no yes yes 0 "_"
  230. language_create "module" ";..." "" ".*\\.def" no yes yes 0 "_."
  231. language_create "make" "#..." "" "(.*[/:])?[Mm]akefile(\\..*)?|.*\\.ma?k" no yes yes 0 "_"
  232. language_create "assembler" ";..." "" ".*\\.(s|i|asm|inc|mac|as)" no no yes 0 "_"
  233. language_create "pascal" "{..." "}" ".*\\.pas" no yes yes 2 "_."
  234. language_create "modula2" "(*..." "*)" ".*\\.mod" no yes yes 2 "_."
  235. language_create "ada" "--..." "" ".*\\.ada" no yes yes 2 "_."
  236. language_create "lisp" ";..." "" ".*\\.lsp" no yes yes 2 "_:"
  237. language_create "batch" "rem..." "" ".*\\.(bat|cmd)" no no yes 0 ""
  238. language_create "config" "REM ..." "" "(.*[/:])?config\.sys" no no yes 0 ";"
  239. language_create "shell" "#..." "" ".*\\.(sh|csh)" no no yes 0 ""
  240. language_create "script" ".*..." "" ".*\\.(scr|imb|ipf)" no yes yes 5 "_"
  241. language_create "html" "<!--..." "-->" ".*\\.(htm|html|sht|shtml)" no yes yes 2 "_"
  242. language_create "java" "//..." "" ".*\\.java?" no yes yes 0 "_."
  243. language_create "nroff" ".\\\"..." "" ".*\\.n" no no yes 5 "_"
  244. language_create "latex" "%..." "" ".*\\.tex" no no yes 5 "_"
  245. language_create "guide" "'..." "" ".*\\.(ngs|ngl)" no no yes 5 ""
  246. language_create "sql" "--..." "" ".*\\.sql" no yes yes 0 "_"
  247. language_create "i82750" "/*..." "*/" ".*\\.vsm" no yes yes 0 "_"
  248. language_create "semi" ";..." "" "" no yes yes 0 "_"
  249. language_create "gofer" "--..." "" ".*\\.gs?" no yes yes 2 "_"
  250. language_create "rt" ";..." "" ".*\\.rt" no yes yes 0 "_."
  251. language_create "weave" "/*..." "*/" ".*\\.(wc|wh)" no yes yes 0 "_."
  252. language_create "vhdl" "--...." "" ".*\\.vhdl?" no yes yes 0 "_."
  253. ;...e
  254.