Last active
August 29, 2015 14:21
-
-
Save pluskid/f2157a2afb0dddebf137 to your computer and use it in GitHub Desktop.
UltiSnips shortcuts for typing TeX symbols
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" shortcuts for TeX symbols | |
autocmd FileType tex inoremap <buffer> <silent> __ __<C-R>=UltiSnips#Anon('_\{${1:${VISUAL}}\}', | |
\ '__', '', 'i')<cr> | |
autocmd FileType tex inoremap <buffer> <silent> ^^ ^^<C-R>=UltiSnips#Anon('^\{${1:${VISUAL}}\}', | |
\ '^^', '', 'i')<cr> | |
autocmd FileType tex inoremap <buffer> <silent> (( ((<C-R>=UltiSnips#Anon('\left(${1:${VISUAL}}\right)', | |
\ '((', '', 'i')<cr> | |
autocmd FileType tex inoremap <buffer> <silent> `a `a<C-R>=UltiSnips#Anon('\alpha', | |
\ '`a', '', 'i')<cr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment