.themisrc 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. call themis#option('recursive', 1)
  2. let g:Expect = themis#helper('expect')
  3. call themis#helper('command').with(themis#helper('assert')).with({'Expect': g:Expect})
  4. " NOTE: basic specs should pass regardless &selection value except selection
  5. " specific specs
  6. " TODO: Automate testing with other values
  7. set selection=exclusive
  8. language C
  9. set encoding=utf-8 "Sets the character encoding used inside Vim
  10. set termencoding=utf-8
  11. set fileencoding=utf-8
  12. set fileencodings=utf-8,cp932,euc-jp "A list of character encodings
  13. set fileformats=unix,dos,mac "This gives the end-of-line (<EOL>) formats
  14. " Mapping:
  15. map * <Plug>(asterisk-*)
  16. map # <Plug>(asterisk-#)
  17. map g* <Plug>(asterisk-g*)
  18. map g# <Plug>(asterisk-g#)
  19. map z* <Plug>(asterisk-z*)
  20. map gz* <Plug>(asterisk-gz*)
  21. map z# <Plug>(asterisk-z#)
  22. map gz# <Plug>(asterisk-gz#)
  23. " Default:
  24. noremap <Leader>* *
  25. noremap <Leader># #
  26. noremap <Leader>g g
  27. noremap <Leader>g# g#
  28. noremap <Leader>z z
  29. noremap <Leader>gz gz
  30. noremap <Leader>z# z#
  31. noremap <Leader>gz# gz#
  32. " Helper Functions:
  33. function! g:Add_lines(lines)
  34. for line in reverse(a:lines)
  35. put! =line
  36. endfor
  37. endfunction
  38. function! g:Get_pos_char()
  39. return matchstr(getline('.'), '.', col('.') - 1)
  40. endfunction