diff options
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/after/ftplugin/tex/mappings.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/.vim/after/ftplugin/tex/mappings.vim b/vim/.vim/after/ftplugin/tex/mappings.vim index a69f752..8ada80e 100644 --- a/vim/.vim/after/ftplugin/tex/mappings.vim +++ b/vim/.vim/after/ftplugin/tex/mappings.vim @@ -5,8 +5,12 @@ " iabbrev <buffer> [[ \left[ " iabbrev <buffer> ]] \right] iabbrev <buffer> :: \colon -inoremap <buffer> ^^ ^{}<Left> -inoremap <buffer> __ _{}<Left> + +" inoremap <buffer> ^^ ^{}<Left> +" inoremap <buffer> __ _{}<Left> + +inoremap <silent> __ __<c-r>=UltiSnips#Anon('_{$1}$0', '__', '', 'i')<cr> +inoremap <silent> ^^ ^^<c-r>=UltiSnips#Anon('^{$1}$0', '^^', '', 'i')<cr> iabbrev <buffer> ga \alpha iabbrev <buffer> gb \beta |