set noic
set autoindent
set wrapmargin=0
set tabstop=4
set shiftwidth=4
set nomesg
map #5 o$.......2.......3.......4.......5.......6.......7.......8.......9.......0.......
map #6 !}fmt -w 80
 
map #7 o$........1.........2.........3.........4.........5.........6.........7..
map #9 i/*50a-
map #10 2i 50a-a*/
ab bc /*
ab ec */
ab IOMS IMOS
ab TF THISFUNCTION
ab PS PetscSynchronizedPrintf(MPI_COMM_WORLD,"");
PetscSynchronizedFlush(MPI_COMM_WORLD);
ab As /*Assign output pointers:*/
ab Fe /*Free ressources:*/
ab p1 printf("ok1\n");
ab p2 printf("ok2\n");
ab p3 printf("ok3\n");
ab p4 printf("ok4\n");
ab p5 printf("ok5\n");
ab p6 printf("ok6\n");
ab p7 printf("ok7\n");
ab p8 printf("ok8\n");
ab p9 printf("ok9\n");

ab cit \textit{temp} [2001] \cite{temp2001}
ab xf xfree((void**)&);<left><left>

:function! ReverseBackground() 
:   let Mysyn=&syntax 
:   if &bg=="light" 
:       se bg=dark 
:       highlight Normal guibg=black guifg=white 
:   else 
:       se bg=light 
:       highlight Normal guibg=white guifg=black 
:   endif   
:   syn on   
:   exe "set syntax=" . Mysyn 
:   echo "now syntax is "&syntax 
:endfunction 
:command! Invbg call ReverseBackground() 
:noremap <F11> :Invbg<CR>


"  Abbreviations {{{1
" ----------------------------------------------------------------------
au BufRead,BufNewFile *.c* iab <expr> des  "printf(\"file: ".expand('%')." line: %i\\n\",__LINE__);"
au BufRead,BufNewFile *.c* iab <expr> dep "PetscSynchronizedPrintf(MPI_COMM_WORLD,\"file: ".expand('%:p')." line: ".line(".")."\\n\");\nPetscSynchronizedFlush(MPI_COMM_WORLD);"
"}}}
