mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:20:05 +08:00
Fix: map VBG*SelectedText actions in correct mode (#2851)
* Fix: map VBG*SelectedText actions in correct mode These actions suppose that the user has previously selected a text. Therefore, they won't be in normal mode when using these mappings. * Fix: specify the correct encoding of this file see https://github.com/syngan/vim-vimlint/issues/81#issuecomment-221818040
This commit is contained in:
parent
28081b1e07
commit
d773bbeb20
@ -5,6 +5,7 @@
|
|||||||
" URL: https://spacevim.org
|
" URL: https://spacevim.org
|
||||||
" License: GPLv3
|
" License: GPLv3
|
||||||
"=============================================================================
|
"=============================================================================
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
function! SpaceVim#layers#debug#plugins() abort
|
function! SpaceVim#layers#debug#plugins() abort
|
||||||
let plugins = []
|
let plugins = []
|
||||||
@ -25,9 +26,9 @@ function! SpaceVim#layers#debug#config() abort
|
|||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', 'O'], 'VBGstepOut', 'step out of current function', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['d', 'O'], 'VBGstepOut', 'step out of current function', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', 'k'], 'VBGkill', 'Terminates the debugger', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['d', 'k'], 'VBGkill', 'Terminates the debugger', 1)
|
||||||
let g:_spacevim_mappings_space.d.e = {'name' : '+Evaluate/Execute'}
|
let g:_spacevim_mappings_space.d.e = {'name' : '+Evaluate/Execute'}
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', 'e', 's'], 'VBGevalSelectedText', 'Evaluate and print the selected text', 1)
|
call SpaceVim#mapping#space#def('vnoremap', ['d', 'e', 's'], 'VBGevalSelectedText', 'Evaluate and print the selected text', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', 'e', 'e'], 'VBGevalWordUnderCursor', 'Evaluate the <cword> under the cursor', 1)
|
call SpaceVim#mapping#space#def('nnoremap', ['d', 'e', 'e'], 'VBGevalWordUnderCursor', 'Evaluate the <cword> under the cursor', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', 'e', 'S'], 'VBGexecuteSelectedText', 'Execute the selected text', 1)
|
call SpaceVim#mapping#space#def('vnoremap', ['d', 'e', 'S'], 'VBGexecuteSelectedText', 'Execute the selected text', 1)
|
||||||
call SpaceVim#mapping#space#def('nnoremap', ['d', '.'], 'call call('
|
call SpaceVim#mapping#space#def('nnoremap', ['d', '.'], 'call call('
|
||||||
\ . string(s:_function('s:debug_transient_state')) . ', [])',
|
\ . string(s:_function('s:debug_transient_state')) . ', [])',
|
||||||
\ 'debug transient state', 1)
|
\ 'debug transient state', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user