Changeset 12954


Ignore:
Timestamp:
08/09/12 11:58:35 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: added some vim maps

Location:
issm/trunk-jpl/externalpackages/vim/addons
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/externalpackages/vim/addons/vim/syntax/Synchronize.sh

    r12911 r12954  
    1717find ../../../../../src/c/classes -name "*.h" | sed -e "s/\// /g" -e "s/\.h//"| awk '{print  $(NF)}' | awk '{ printf "syn keyword cType " $1 "\n"}'>> temp
    1818cat c.vim | sed "1,/ISSM's objects end/d" >> temp
     19echo "\"ISSM's objects end" >> temp
    1920
    2021mv temp c.vim
  • issm/trunk-jpl/externalpackages/vim/addons/vim/syntax/c.vim

    r12953 r12954  
    408408syn keyword     cType           Vec Mat SeqVec SeqMat
    409409"other ISSM's syntax
    410 syn keyword     cType           mxArray ErrorException QuadtreeBox IssmDouble IssmPDouble
     410syn keyword     cType           mxArray ErrorException QuadtreeBox IssmDouble IssmPDouble Observations
    411411
    412412"ISSM's objects begin
     
    567567syn keyword cType IoModel
    568568syn keyword cType FemModel
     569"ISSM's objects end
  • issm/trunk-jpl/externalpackages/vim/addons/vimrc

    r10985 r12954  
    203203au BufRead,BufNewFile *.c*       iabbr <silent> p1  printf("\n");<Left><Left><Left><Left><Left><C-R>=Eatchar('\s')<CR>
    204204au BufRead,BufNewFile *.c*,*.h   iabbr <silent> ER  _error_("");<Left><Left><Left><C-R>=Eatchar('\s')<CR>
     205au BufRead,BufNewFile *.py       iabbr <silent> ER  raise NameError('')<Left><Left><C-R>=Eatchar('\s')<CR>
     206au BufRead,BufNewFile *.m        iabbr <silent> ER  error('');<Left><Left><Left><C-R>=Eatchar('\s')<CR>
    205207au BufRead,BufNewFile *.c*       ab VV VecView(ug,PETSC_VIEWER_STDOUT_WORLD);
    206208au BufRead,BufNewFile *.c*       ab AS _assert_();
Note: See TracChangeset for help on using the changeset viewer.