Diff for vimconfig/vim/ftplugin/tex.vim between version 1.9 and 1.10
| version 1.9, 2002/02/17 03:24:58 |
version 1.10, 2002/02/18 19:51:07 |
| Line 220 if !exists("no_plugin_maps") && !exists( |
|
| Line 220 if !exists("no_plugin_maps") && !exists( |
|
| endif |
endif |
| " }}} end mappings |
" }}} end mappings |
| |
|
| |
let g:smartBS_tex = '\(' . |
| |
\ "\\\\[\"^'=v]{\\S}" . '\|' . |
| |
\ "\\\\[\"^'=]\\S" . '\|' . |
| |
\ '\\v \S' . '\|' . |
| |
\ "\\\\[\"^'=v]{\\\\[iI]}" . '\|' . |
| |
\ '\\v \\[iI]' . '\|' . |
| |
\ '\\q \S' . '\|' . |
| |
\ '\\-' . |
| |
\ '\)' . "$" |
| |
|
| " This function comes from Benji Fisher <benji@e-math.AMS.org> |
" This function comes from Benji Fisher <benji@e-math.AMS.org> |
| " http://vim.sourceforge.net/scripts/download.php?src_id=409 |
" http://vim.sourceforge.net/scripts/download.php?src_id=409 |
| |
" (modified) |
| fun! s:SmartBS() |
fun! s:SmartBS() |
| let init = strpart(getline("."), 0, col(".")-1) |
let init = strpart(getline("."), 0, col(".")-1) |
| let len = strlen(matchstr(init, '\(' . |
let len = strlen(matchstr(init, g:smartBS_tex)) - 1 |
| \ '\\[^\"]{\S}' . '\|' . |
|
| \ '\\[^\"]{\\[iI]}' . '\|' . |
|
| \ '\\q \S' . '\|' . |
|
| \ '\\[^\"]\S' . '\|' . |
|
| \ '\\-' . '\|' . |
|
| \ '\\v \S' . |
|
| \ '\)' . "$")) - 1 |
|
| if len > 0 |
if len > 0 |
| execute "normal!" . len . "X" |
execute "normal!" . len . "X" |
| endif |
endif |
Platon Group <platon@platon.org> http://platon.org/
|
|