autoclose_quotes.txt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. let g:delimitMate_autoclose = 1
  2. "'x" "'x'"
  3. "'x\<Esc>u" ""
  4. "''x" "''x"
  5. "'\<BS>x" "x"
  6. "'\<C-G>gx" "''x"
  7. # This will fail for double quote.
  8. "'\"x" "'\"x\"'"
  9. "@'x" "@'x'"
  10. "@#\<Left>'x" "@'x'#"
  11. "'\<S-Tab>x" "''x"
  12. "abc'" "abc'"
  13. "abc\\'x" "abc\\'x"
  14. "u'Привет'" "u'Привет'"
  15. "u'string'" "u'string'"
  16. let g:delimitMate_autoclose = 0
  17. "'x" "'x"
  18. "''x" "'x'"
  19. "'''x" "''x"
  20. "''\<BS>x" "x"
  21. "@''x" "@'x'"
  22. "@#\<Left>''x" "@'x'#"
  23. let g:delimitMate_expand_space = 1
  24. let g:delimitMate_autoclose = 1
  25. "'\<Space>x" "' x'"
  26. let g:delimitMate_expand_inside_quotes = 1
  27. "'\<Space>x" "' x '"
  28. "'\<Space>\<BS>x" "'x'"
  29. "abc\\''\<Space>x" "abc\\' x'"
  30. let g:delimitMate_autoclose = 0
  31. "''\<Space>\<BS>x" "'x'"
  32. let g:delimitMate_autoclose = 1
  33. # Handle backspace gracefully.
  34. set backspace=
  35. "'\<Esc>a\<BS>x" "'x'"
  36. set backspace=2
  37. set cpo=ces$
  38. "'x" "'x'"
  39. # Make sure smart quote works beyond first column.
  40. " 'x" " 'x'"
  41. # smart quote, check fo char on the right.
  42. "a\<space>b\<left>'" "a 'b"
  43. # Make sure we jump over a quote on the right. #89.
  44. "('test'x" "('test'x)"
  45. # Duplicate whole line when inserting quote at bol #105
  46. "}\<Home>'" "''}"
  47. "'\<Del>abc '" "'abc '"
  48. "''abc '" "''abc ''"
  49. # Nesting quotes:
  50. let g:delimitMate_nesting_quotes = split(g:delimitMate_quotes, '\s\+')
  51. "'''x" "'''x'''"
  52. "''''x" "''''x''''"
  53. "''x" "''x"
  54. "'x" "'x'"
  55. unlet g:delimitMate_nesting_quotes
  56. # expand iabbreviations
  57. iabb def ghi
  58. "def'" "ghi'"
  59. let g:delimitMate_smart_quotes = '\w\%#\_.'
  60. "xyz'x" "xyz'x"
  61. "xyz 'x" "xyz 'x'"
  62. let g:delimitMate_smart_quotes = '\s\%#\_.'
  63. "abc'x" "abc'x'"
  64. "abc 'x" "abc 'x"
  65. # let's try the negated form
  66. let g:delimitMate_smart_quotes = '!\w\%#\_.'
  67. "cba'x" "cba'x'"
  68. "cba 'x" "cba 'x"
  69. let g:delimitMate_smart_quotes = '!\s\%#\_.'
  70. "zyx'x" "zyx'x"
  71. "zyx 'x" "zyx 'x'"
  72. unlet g:delimitMate_smart_quotes
  73. "'\<CR>\<BS>" "''"