Skip to content

Commit

Permalink
Fix <M-i> or <ALT-I> mapping and documentation
Browse files Browse the repository at this point in the history
- The <M-i> mapping was not defined, because it was checked for the existence
  of the key sequence of <Plug>Tex_InsertItem, but the defined key sequence is
  <Plug>Tex_InsertItemOnThisLine
- Update documenation to mention the actual key sequence


git-svn-id: https://vim-latex.svn.sourceforge.net/svnroot/vim-latex/trunk@1101 a797aaa2-510f-0410-87df-a343b97812ff
  • Loading branch information
tmaas committed Jan 28, 2010
1 parent f1ffbe9 commit 00fefef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions vimfiles/doc/latex-suite.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2338,12 +2338,12 @@ remap keys.
*Plug_Tex_MathBF* *ls_a_en*
*Plug_Tex_MathCal* *ls_a_eo*
*Plug_Tex_LeftRight* *ls_a_ep*
*Plug_Tex_InsertItem* *ls_a_eq*
Plug Mapping Default Key~
<Plug>Tex_MathBF <Alt-B>
<Plug>Tex_MathCal <Alt-C>
<Plug>Tex_LeftRight <Alt-L>
<Plug>Tex_InsertItem <Alt-I>
*Plug_Tex_InsertItemOnThisLine* *ls_a_eq*
Plug Mapping Default Key~
<Plug>Tex_MathBF <Alt-B>
<Plug>Tex_MathCal <Alt-C>
<Plug>Tex_LeftRight <Alt-L>
<Plug>Tex_InsertItemOnThisLine <Alt-I>

--------------------------------------------------------------------------------
Latex Suite Commands *ls_10_2* *ls_a_cy*
Expand Down
4 changes: 2 additions & 2 deletions vimfiles/doc/latex-suite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2974,7 +2974,7 @@ endif</programlisting>
<anchor id="Plug_Tex_MathBF" />
<anchor id="Plug_Tex_MathCal" />
<anchor id="Plug_Tex_LeftRight" />
<anchor id="Plug_Tex_InsertItem" />
<anchor id="Plug_Tex_InsertItemOnThisLine" />
<informaltable frame="all">
<tgroup cols="2">
<thead>
Expand All @@ -2997,7 +2997,7 @@ endif</programlisting>
<entry><literal>&lt;Alt-L&gt;</literal></entry>
</row>
<row>
<entry><literal>&lt;Plug&gt;Tex_InsertItem</literal></entry>
<entry><literal>&lt;Plug&gt;Tex_InsertItemOnThisLine</literal></entry>
<entry><literal>&lt;Alt-I&gt;</literal></entry>
</row>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion vimfiles/ftplugin/latex-suite/envmacros.vim
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ inoremap <script> <silent> <Plug>Tex_InsertItemOnThisLine <C-r>=Tex_InsertItem()
inoremap <script> <silent> <Plug>Tex_InsertItemOnNextLine <ESC>o<C-R>=Tex_InsertItem()<CR>
function! Tex_SetItemMaps()
if !hasmapto("<Plug>Tex_InsertItem", "i")
if !hasmapto("<Plug>Tex_InsertItemOnThisLine", "i")
imap <buffer> <M-i> <Plug>Tex_InsertItemOnThisLine
endif
if !hasmapto("<Plug>Tex_InsertItemOnNextLine", "i")
Expand Down

0 comments on commit 00fefef

Please sign in to comment.