File vimrc changed (mode: 100644) (index 896df35..b95b94f) |
... |
... |
nnoremap <silent> cp :let g:substitutemotion_reg = v:register |
185 |
185 |
\ <bar> set opfunc=libedit#subm#SubstituteMotion<CR>g@ |
\ <bar> set opfunc=libedit#subm#SubstituteMotion<CR>g@ |
186 |
186 |
|
|
187 |
187 |
" ------------------------------------------------------------------------------ |
" ------------------------------------------------------------------------------ |
188 |
|
" expand double { ("{{") as {<cr>} |
|
|
188 |
|
" expand "{," as "{\n}" |
189 |
189 |
|
|
190 |
|
inoremap <silent> { <c-r>=<SID>ExpandBracket()<cr> |
|
|
190 |
|
inoremap <silent> , <c-r>=<SID>ExpandBracket()<cr> |
191 |
191 |
function! s:ExpandBracket() |
function! s:ExpandBracket() |
192 |
192 |
let l:line = getline('.') |
let l:line = getline('.') |
193 |
193 |
let l:col = col('.') - 2 |
let l:col = col('.') - 2 |
|
... |
... |
function! s:ExpandBracket() |
199 |
199 |
return "\<cr>\<esc>o}\<esc>k^" |
return "\<cr>\<esc>o}\<esc>k^" |
200 |
200 |
endif |
endif |
201 |
201 |
endif |
endif |
202 |
|
return '{' |
|
|
202 |
|
return ',' |
203 |
203 |
endfunction |
endfunction |
204 |
204 |
|
|
205 |
205 |
" ------------------------------------------------------------------------------ |
" ------------------------------------------------------------------------------ |