Changeset 5105


Ignore:
Timestamp:
08/09/10 16:58:22 (15 years ago)
Author:
Mathieu Morlighem
Message:

some fixes for Latex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/vim/vim.AddOns/issm.vimrc

    r4230 r5105  
    158158au BufRead,BufNewFile *.tex set wrapmargin=0      "no margin
    159159
     160" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
     161" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
     162" The following changes the default filetype back to 'tex':
     163let g:tex_flavor='latex'
     164
    160165" ----------------------------------------------------------------------}}}
    161166"  InsertTabWrapper{{{1
     
    200205au BufRead,BufNewFile *.c* iab <expr> p0  "printf(\"-------------- file: ".expand('%')." line: %i\\n\",__LINE__);"
    201206au BufRead,BufNewFile *.c* iab <expr> pp0 "PetscSynchronizedPrintf(MPI_COMM_WORLD,\"-------------- file: ".expand('%')." line: %i\\n\",__LINE__);\nPetscSynchronizedFlush(MPI_COMM_WORLD);"
     207"tex
     208au BufRead,BufNewFile *.tex iab EQ
     209                        \\begin{equation}
     210                        \<CR>
     211                        \<CR>\end{equation}<up><C-R>=Eatchar('\s')<CR>
     212au BufRead,BufNewFile *.tex ab (()) \left( \right)
    202213"}}}
Note: See TracChangeset for help on using the changeset viewer.