Reputation: 909
I copied this keymap for latex [1], but I don't understand the <++><Esc>T{i
. When I write ,it
, the \textit{}<++>
appears. First, I don't know what are the <++> and how to deal with them. Then, why this mapping has <Esc>T{i
? What is its purpose?
[1] autocmd FileType tex inoremap ,it \textit{}<++><Esc>T{i
Upvotes: 0
Views: 58
Reputation: 495
<++>
is probably a placeholder from latex-suite. You can jump to the next placeholder with <C-J>
in insert if you have the plugin. Look here.<Esc>
puts you in normal modeT{
moves 'til the previous {
, see :h T
i
puts you back in insert mode.If you don't want to use latex-suite, you could have all your snippets with UltiSnips and vim-snippets with which you can enter ita<Tab>
which gives you the same behaviour (with <c-j>
jump as well).
Upvotes: 2