Closed ghost closed 10 years ago
Maybe, I found solution for me.
imap <silent> <expr> <S-Tab> pumvisible() ? "\<c-p>" : "<C-r>=<SID>exitBlock()<CR>" function! s:exitBlock() let [l, m] = (searchpos('[)}\]]', 'cn')) let po = cursor(l,m+1) return "" endfunction
| = current cursor postion _ = expected position after jumping
Vim's '}' key is jump to blank line after paragraph. So, to insert ';' above '_' positon, must put 'esc', '}', 'k', 'A', ';' . Or arrow keys and ';'.
I wrote tricky function 'ExitParagraph' and map it to
(I overrided delimitMate's to to jump closing pair)
How about extending 'jumpany' to exit paragraph? ex. 'multilineJumpAny'? It's very convenient to write codes.
my .vimrc : ....
...