Changeset 5548
- Timestamp:
- 08/24/10 14:41:25 (15 years ago)
- Location:
- issm/trunk/externalpackages/vim/vim.AddOns
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/externalpackages/vim/vim.AddOns/README
r4230 r5548 1 1 To use ISSM's settings for vim: 2 2 3 1. Add the settings from issm.vimrc to your .vimrc file3 1. Add the settings from vimrc to your .vimrc file 4 4 5 2. Add softlinks from issm.vim to your .vim directory5 2. Add softlinks from vim to your .vim directory -
issm/trunk/externalpackages/vim/vim.AddOns/vim/syntax/c.vim
r5344 r5548 415 415 "Bamg objects 416 416 syn keyword cType BamgGeom BamgMesh BamgOpts CrackedEdge Curve Direction DoubleAndInt Edge GeometricalEdge GeometricalSubDomain GeometricalVertex Geometry IntEdge 417 syn keyword cType ListofIntersectionTriangles MatVVP2x2BamgVertex Metric P2 P2xP2 QuadTree SetOfEdges4 SubDomain Triangle AdjacentTriangle Mesh VertexOnEdge VertexOnGeom VertexOnVertex417 syn keyword cType ListofIntersectionTriangles EigenMetric BamgVertex Metric P2 P2xP2 QuadTree SetOfEdges4 SubDomain Triangle AdjacentTriangle Mesh VertexOnEdge VertexOnGeom VertexOnVertex 418 418 "Petsc 419 419 syn keyword cType Vec Mat -
issm/trunk/externalpackages/vim/vim.AddOns/vimrc
r5488 r5548 1 1 2 " 2 " General setup{{{1 3 3 " ---------------------------------------------------------------------- 4 4 " Use Vim settings, rather then Vi settings (much better!). … … 17 17 " display curent mode 18 18 set showmode 19 " 19 "----------------------------------------------------------------------}}} 20 20 " Text-Formatting, Identing, Tabbing{{{1 21 21 " ---------------------------------------------------------------------- … … 30 30 " a <tab> in an indent inserts 'shiftwidth' spaces (not tabstop) 31 31 set smarttab 32 33 32 " always set autoindenting on 34 33 set autoindent … … 39 38 set foldmethod=marker 40 39 set foldtext=IssmFoldText() 41 42 40 " -----------------------------------------------------------}}} 43 " file, backup, path{{{141 " Backups {{{1 44 42 " ----------------------------------------------------------- 45 43 " updatecount number of characters typed to cause a swap file update (0->disable) … … 77 75 set su=.h,.bak,~,.o,.info,.swp,.obj 78 76 " ----------------------------------------------------------------------}}} 79 " colors and theme {{{177 " Colors and theme {{{1 80 78 " ---------------------------------------------------------------------- 81 79 " use 256 colors … … 89 87 " ----------------------------------------------------------------------}}} 90 88 91 " Mappings{{{1 92 " ---------------------------------------------------------------------- 93 89 " Mappings{{{1 90 " ---------------------------------------------------------------------- 94 91 "stop highlightings when spce is pressed 95 92 nnoremap <silent> <Space> :silent noh<Bar>echo<CR> … … 104 101 " Don't use Ex mode, use Q for formatting 105 102 map Q gq 106 107 " Make p in Visual mode replace the selected text with the "" register. 108 vnoremap p <Esc>:let current_reg = @"<CR>gvs<C-R>=current_reg<CR><Esc> 109 110 " This is an alternative that also works in block mode, but the deleted 111 " text is lost and it only works for putting the current register. 112 "vnoremap p "_dp 113 " ----------------------------------------------------------------------}}} 114 " Autocommands {{{1 103 " ----------------------------------------------------------------------}}} 104 " Autocommands {{{1 115 105 " ---------------------------------------------------------------------- 116 106 " Only do this part when compiled with support for autocommands. … … 142 132 "" associate *.par with matlab filetype 143 133 au BufRead,BufNewFile *.par setfiletype matlab 144 145 134 " ----------------------------------------------------------------------}}} 146 135 " C special{{{1 … … 150 139 " and here some nice options for cindenting 151 140 set cinoptions={.5s,+.5s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s 152 153 141 " ----------------------------------------------------------------------}}} 154 142 " TEX special{{{1 … … 162 150 " The following changes the default filetype back to 'tex': 163 151 let g:tex_flavor='latex' 164 165 " ----------------------------------------------------------------------}}} 166 " InsertTabWrapper{{{1 152 " ----------------------------------------------------------------------}}} 153 " InsertTabWrapper{{{1 167 154 " ---------------------------------------------------------------------- 168 155 function! InsertTabWrapper(direction) … … 187 174 " ----------------------------------------------------------------------}}} 188 175 189 " 176 " Abbreviations {{{1 190 177 " ---------------------------------------------------------------------- 191 178 func Eatchar(pat)
Note:
See TracChangeset
for help on using the changeset viewer.