mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 06:10:05 +08:00
Merge pull request #724 from jetm/dev
Make explicit a number of lines is required
This commit is contained in:
commit
4703989921
@ -81,8 +81,8 @@ function! SpaceVim#mapping#space#init() abort
|
||||
|
||||
nnoremap <silent> <Plug>CommentToLine :call <SID>comment_to_line(0)<Cr>
|
||||
nnoremap <silent> <Plug>CommentToLineInvert :call <SID>comment_to_line(1)<Cr>
|
||||
call SpaceVim#mapping#space#def('nmap', ['c', 't'], '<Plug>CommentToLine', 'comment to line', 0, 1)
|
||||
call SpaceVim#mapping#space#def('nmap', ['c', 'T'], '<Plug>CommentToLineInvert', 'toggle comment to line', 0, 1)
|
||||
call SpaceVim#mapping#space#def('nmap', ['c', 't'], '<Plug>CommentToLine', 'comment until the line', 0, 1)
|
||||
call SpaceVim#mapping#space#def('nmap', ['c', 'T'], '<Plug>CommentToLineInvert', 'toggle comment until the line', 0, 1)
|
||||
|
||||
nnoremap <silent> <Plug>CommentOperator :set opfunc=<SID>commentOperator<Cr>g@
|
||||
let g:_spacevim_mappings_space[';'] = ['call feedkeys("\<Plug>CommentOperator")', 'comment operator']
|
||||
@ -336,7 +336,7 @@ function! s:commentOperator(type, ...)
|
||||
endfunction
|
||||
|
||||
function! s:comment_to_line(invert) abort
|
||||
let input = input('line number :')
|
||||
let input = input('line number: ')
|
||||
if empty(input)
|
||||
return
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user