Ignore:
Timestamp:
02/16/11 07:57:00 (14 years ago)
Author:
Mathieu Morlighem
Message:

Added mapping of F8 to save and compile in every mode (very useful)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/externalpackages/vim/addons/vimrc

    r6414 r7457  
    9595map num :set number!<CR>
    9696
     97" save & "make" the current file in all modes
     98map <F8> :w <Enter> :make <Enter>
     99map! <F8>  <ESC> :w <Enter> :make <Enter>
     100
    97101"use paste P: re-indent and re-format at the same time
    98102:nnoremap <Esc>P P'[v']=
     
    145149au BufRead,BufNewFile *.tex set formatoptions=cqt "automatic wraping
    146150au BufRead,BufNewFile *.tex set wrapmargin=0      "no margin
     151au BufRead,BufNewFile *.cls setfiletype tex
    147152
    148153" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
     
    187192au BufRead,BufNewFile *.html     iabbr <silent> H2 <h2></h2><Left><Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
    188193au BufRead,BufNewFile *.html     iabbr <silent> H3 <h3></h3><Left><Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
     194au BufRead,BufNewFile *.html     iabbr <silent> CO <code></code><Left><Left><Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
     195au BufRead,BufNewFile *.html     iabbr <silent> PP <p></p><Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
    189196au BufRead,BufNewFile *.m        iabbr <silent> p1  disp('');<Left><Left><Left><C-R>=Eatchar('\s')<CR>
    190197au BufRead,BufNewFile *.m        iab <expr> p0  "disp('-------------- file: ".expand('%')." line: ".line(".")."');"
     
    198205au BufRead,BufNewFile *.tex iab EQ
    199206                        \\begin{equation}
    200                         \<CR>
    201207                        \<CR>\end{equation}<up><C-R>=Eatchar('\s')<CR>
    202208au BufRead,BufNewFile *.tex ab (()) \left( \right)
Note: See TracChangeset for help on using the changeset viewer.