Commit b6da169943c470be31dfae117f883613620ed8dd
Fix A mapping
Got broken due to the use of nnoremap.
The auxiliary ZA mapping seems to be a workaround use of nmap, so now
everything is fine.
Author: xaizek
Author date (UTC): 2020-02-17 22:48
Committer name: xaizek
Committer date (UTC): 2020-02-17 22:48
Parent(s): 982996f63cdc472102a46edbd142daaa2f425f02
Signing key: 99DC5E4DB05F6BE2
Tree: 010e4fd7f8edf739faf7cd3596094872b9e714c2
File autoload/libedit/adva.vim changed (mode: 100644) (index 070243e..809a41f) |
1 |
|
nnoremap ZA A |
|
2 |
|
|
|
3 |
1 |
" A that considers indentation level |
" A that considers indentation level |
4 |
2 |
function! libedit#adva#AdvancedA() |
function! libedit#adva#AdvancedA() |
5 |
3 |
let l:prev_indent = indent(line('.') - 1) |
let l:prev_indent = indent(line('.') - 1) |
|
... |
... |
function! libedit#adva#AdvancedA() |
15 |
13 |
elseif l:is_empty |
elseif l:is_empty |
16 |
14 |
return 'I' |
return 'I' |
17 |
15 |
else |
else |
18 |
|
return 'ZA' |
|
|
16 |
|
return 'A' |
19 |
17 |
endif |
endif |
20 |
18 |
endfunction |
endfunction |