Skip to content

Commit 2ee47fb

Browse files
committed
Map ctrl-e to oemph instead of emph
1 parent c1eb005 commit 2ee47fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ftplugin/tex.vim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ inoremap <buffer> ¤ %
2222
2323
" Ctrl+e for italics
2424
"TODO: <C-i> overrides <Tab> in insert mode, fix that (?)
25-
inoremap <buffer> <C-e> \emph{}<Esc>i
25+
"inoremap <buffer> <C-e> \emph{}<Esc>i
26+
inoremap <buffer> <C-e> \oemph{}<Esc>i
2627
"TODO: use onoremap? how does it work?
27-
vnoremap <buffer> <C-e> <Esc>`>a}<Esc>`<i\emph{<Esc>lviB
28+
"vnoremap <buffer> <C-e> <Esc>`>a}<Esc>`<i\emph{<Esc>lviB
29+
vnoremap <buffer> <C-e> <Esc>`>a}<Esc>`<i\oemph{<Esc>lviB
2830
" slightly more concise, but breaks if there's a newline in the selection.
2931
"vnoremap <buffer> <C-i> s\emph{ <Esc>vpa}<Esc>gv
3032

0 commit comments

Comments
 (0)