11.2 Place-Holder Customization

11.2.1 g:Imap_UsePlaceHolders
11.2.2 g:Imap_PlaceHolderStart & g:Imap_PlaceHolderEnd
11.2.3 g:Imap_DeleteEmptyPlaceHolders
11.2.4 g:Imap_StickyPlaceHolders
11.2.5 g:Imap_GoToSelectMode

Latex-Suite uses place-holders to minimize using the movement keys while typing. The following settings affect how place-holders are used.

Note

These setting need to be set in your ~/.vimrc, not $VIM/ftplugin/tex.vim because these settings affect the behavior of imaps.vim, which is a global plugin, not a file-type plugin.

11.2.1 g:Imap_UsePlaceHolders

TypeBoolean
Default Value1

Setting this to zero completely disables using place-holders.

11.2.2 g:Imap_PlaceHolderStart & g:Imap_PlaceHolderEnd

SettingTypeValue
Imap_PlaceHolderStartString'<+'
Imap_PlaceHolderEndString'+>'

These settings affect the strings displayed at the beginning and end of the place-holder string. Set these strings to a value different than a commonly occurring sequence of characters.

TIP

If you use the latin1 encoding and do not type in french, then you can set these strings to the \xab and \xbb characters (the french quotation marks).

11.2.3 g:Imap_DeleteEmptyPlaceHolders

TypeBoolean
Default Value1

When set to one, non-descriptive or empty place-holders are deleted on pressing <Ctrl-J>.

11.2.4 g:Imap_StickyPlaceHolders

TypeBoolean
Default Value1

When set to 1, in visual mode, <Ctrl-J> takes you to the next placeholder without deleting the current placeholder.

11.2.5 g:Imap_GoToSelectMode

TypeBoolean
Default Value1

When set to 1, <Ctrl-J> will switch to select mode after selecting the placeholder. Otherwise, it will switch to visual mode.