File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,9 @@ function! CompletionStatus()
200200 return " "
201201endfunc
202202
203- function ! AlignWithMark (... )
204- let cmd = get (a: , 1 )
205- exe " norm " .cmd." \<c-r> =repeat(' ',col(\" 'm\" )-col('.'))\<CR>\<ESC> "
206- call repeat#set (" :call AlignWithMark('" .cmd." ')\<CR> " ,-1 )
207- return " "
203+ function ! AlignWithMark ()
204+ call repeat#set (" i\<c-r> =AlignWithMark()\<CR>\<ESC> " ,-1 )
205+ return " \<c-r> =repeat(' ',col(\" 'm\" )-col('.'))\<CR>\<ESC> "
208206endfunction
209207
210208" ### Remappings ##################################
@@ -230,8 +228,8 @@ nnoremap <silent> gC :call ChangeReplace()<CR>
230228inoremap <silent> <Tab> <c-r> =CleverTab()<CR>
231229inoremap <silent> <s-Tab> <c-r> =OmniTab()<CR>
232230
233- nnoremap <silent> gA :call AlignWithMark("i" )<CR>
234- vnoremap <silent> gA :call AlignWithMark("s" )<CR>
231+ nnoremap <silent> gA i <c-r> = AlignWithMark()<CR><ESC >
232+ vnoremap <silent> gA I <c-r> = AlignWithMark()<CR><ESC >
235233
236234" --- Testing -------------------------------------
237235nnoremap <silent> gw :w<CR>
You can’t perform that action at this time.
0 commit comments