| version 1.1, 2002/01/04 10:37:41 |
version 1.2, 2002/01/15 02:33:29 |
|
|
| if exists("b:did_ftplugin") |
if exists("b:did_ftplugin") |
| finish |
finish |
| endif |
endif |
| let b:did_ftplugin = 1 |
" Variable b:did_ftplugin is not yet set, because I will load |
| |
" also $VIMRUNTIME/ftplugin/tex.vim file. |
| |
"let b:did_ftplugin = 1 |
| |
|
| |
let loaded_matchit = 1 |
| |
|
| setlocal textwidth=72 |
setlocal textwidth=72 |
| setlocal formatoptions=croqt |
setlocal formatoptions=croqt |
| Line 19 setlocal iskeyword="a-z,A-Z,48-57,_,-,>, |
|
| Line 23 setlocal iskeyword="a-z,A-Z,48-57,_,-,>, |
|
| " Add mappings, unless the user didn't want this. |
" Add mappings, unless the user didn't want this. |
| if !exists("no_plugin_maps") && !exists("no_tex_maps") |
if !exists("no_plugin_maps") && !exists("no_tex_maps") |
| " Ctrl-F reformat paragraph |
" Ctrl-F reformat paragraph |
| if !hasmapto('<Plug>MailFormat') |
if !hasmapto('<Plug>TexFormat') |
| imap <buffer> <C-F> <Plug>MailFormat |
imap <buffer> <C-F> <Plug>TexFormat |
| map <buffer> <C-F> <Plug>MailFormat |
map <buffer> <C-F> <Plug>TexFormat |
| endif |
endif |
| inoremap <buffer> <Plug>MailFormat <Esc>gqapi |
inoremap <buffer> <Plug>TexFormat <Esc>gqapi |
| noremap <buffer> <Plug>MailFormat gqap |
noremap <buffer> <Plug>TexFormat gqap |
| vnoremap <buffer> <Plug>MailFormat gq |
vnoremap <buffer> <Plug>TexFormat gq |
| |
|
| imap <buffer> =a \'{a} |
imap <buffer> =a \'{a} |
| imap <buffer> +a \v{a} |
imap <buffer> +a \v{a} |