cohama / lexima.vim

Auto close parentheses and repeat by dot dot dot...
995 stars 46 forks source link

how to do specify all file types in lexima custom rules? #116

Closed alexzanderr closed 2 years ago

alexzanderr commented 2 years ago
" Please add below in your vimrc
call lexima#add_rule({'char': '$', 'input_after': '$', 'filetype': 'latex'})
call lexima#add_rule({'char': '$', 'at': '\%#\$', 'leave': 1, 'filetype': 'latex'})
call lexima#add_rule({'char': '<BS>', 'at': '\$\%#\$', 'delete': 1, 'filetype': 'latex'})

i saw these beautiful settings which are GREAT! they saved my workflow!

but how do i specify all filetypes? just star *?

cohama commented 2 years ago

Please omit filetype.

" Please add below in your vimrc
call lexima#add_rule({'char': '$', 'input_after': '$'})
call lexima#add_rule({'char': '$', 'at': '\%#\$', 'leave': 1})
call lexima#add_rule({'char': '<BS>', 'at': '\$\%#\$', 'delete': 1})
alexzanderr commented 2 years ago

thank you.