.mlerc 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/bin/bash
  2. echo '-x/Users/kev/.config/mle.lua'
  3. echo '-w1' # soft word wrap
  4. echo '-c80' # mark col 80
  5. echo '-b1' # highlight bracket pairs
  6. echo '-i1' # auto indent
  7. echo '-t2' # tab width to 2
  8. echo '-Ssyn_makefile,(/?Makefile|\.mk)$,4,0' # syn_makefile
  9. echo '-s^\t+,,515,0'
  10. echo '-s^[^:\s]+(?=:),,260,0'
  11. echo '-s^[^=\s]+(?==),,261,0'
  12. echo '-Ssyn_mlerc,\.?mlerc$,4,1' # syn_mlerc
  13. echo '-s^;.*,,7,0'
  14. echo '-Ssyn_markdown,\.md$,4,1' # syn_markdown
  15. echo '-s^#.*,,256,0'
  16. echo '-s^>.*,,4,0'
  17. echo '-s^\s*(\*|\d+.),,6,0'
  18. echo '-s^(\t| {4})(?=\S),,515,0'
  19. echo '-Ssyn_terraform,\.tf$,2,1' # syn_terraform
  20. echo '-s^(module|output|provider|resource|variable|locals|terraform|data),,1285,0'
  21. echo '-s[\[\]{}=],,258,0'
  22. echo '-s(\d+|true|false),261,0'
  23. echo '-s".*?",,4,0'
  24. echo '-s{.*},,4,0'
  25. echo '-s#.*$,,0,0'
  26. echo '-Ssyn_generic,(\.jsx)$,2,0' # syn_generic
  27. echo '-Kmle_as,,1' # custom mode
  28. echo '-kcmd_move_up,C-p,'
  29. echo '-kcmd_move_down,C-n,'
  30. echo '-kcmd_move_right,C-f,'
  31. echo '-kcmd_move_left,C-b,'
  32. echo '-kcmd_delete_after,C-d,'
  33. #echo '-kcmd_insert_newline_below,C-m,'
  34. echo '-kcmd_insert_newline_above,C-o,'
  35. echo '-kcmd_delete_word_before,M-backspace,'
  36. echo '-kcmd_save,C-x C-s,'
  37. echo '-kcmd_quit,C-x C-c,'
  38. echo '-kcmd_open_file,C-x C-f,'
  39. echo '-kcmd_isearch,C-s,'
  40. echo '-kcmd_move_beginning,home,'
  41. echo '-kcmd_move_end,end,'
  42. echo '-kcmd_move_beginning,M-<,'
  43. echo '-kcmd_move_end,M->,'
  44. echo '-kcmd_uncut,C-y,'
  45. echo '-kcmd_cut,C-w,'
  46. echo '-kcmd_copy,M-w,'
  47. echo '-kcmd_undo,C-/,'
  48. echo '-kcmd_undo,C-u,'
  49. echo '-kcmd_redo,C-r,'
  50. echo '-kcmd_toggle_anchor,C-space,'
  51. echo '-kcmd_toggle_anchor,M-space,'
  52. echo '-kcmd_fsearch,C-x p f,'
  53. echo '-kcmd_browse,C-x p b,'
  54. echo '-kcmd_blist,C-x B,'
  55. echo '-kcmd_close,M-k,'
  56. echo '-kcmd_suspend,C-z,'
  57. echo '-kcmd_move_until_forward,M-/ **,'
  58. echo '-kcmd_move_until_back,M-? **,'
  59. echo '-kcmd_cut_by,C-k,eol'
  60. echo '-kcmd_cut_by,M-d,word_forward'
  61. echo '-kcmd_cut_by,M-backspace,word_back'
  62. echo '-kcmd_perl,C-x P,'
  63. echo '-kcmd_split_vertical,C-x 3,'
  64. echo '-kcmd_split_horizontal,C-x 2,'
  65. echo '-kcmd_delete_forward_to_char,M-; **,'
  66. echo '-kcmd_delete_back_to_char,M-: **,'
  67. echo '-kcmd_move_bracket_toggle,M-[,'
  68. echo '-kcmd_replace,M-%,'
  69. command -v tableize &>/dev/null && echo '-kcmd_shell,M-x t,tableize 2>/dev/null'
  70. echo '-nmle_as'