File vimrc changed (mode: 100644) (index 9d1cf46..1ef09bf) |
... |
... |
function! s:ExpandBracket() |
202 |
202 |
return ',' |
return ',' |
203 |
203 |
endfunction |
endfunction |
204 |
204 |
|
|
|
205 |
|
inoremap <silent> : <c-r>=<SID>ExpandBracketWithSemicolon()<cr> |
|
206 |
|
function! s:ExpandBracketWithSemicolon() |
|
207 |
|
let l:line = getline('.') |
|
208 |
|
let l:col = col('.') - 2 |
|
209 |
|
if '{' == l:line[l:col] |
|
210 |
|
return "\<bs>{\<esc>o};\<esc>\"_O" |
|
211 |
|
endif |
|
212 |
|
return ':' |
|
213 |
|
endfunction |
|
214 |
|
|
205 |
215 |
" ------------------------------------------------------------------------------ |
" ------------------------------------------------------------------------------ |
206 |
216 |
|
|
207 |
217 |
" use unix-style eol by default |
" use unix-style eol by default |