VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.52k stars 1.3k forks source link

How to execute vscode's action in vim commandline? #9118

Open godotc opened 4 days ago

godotc commented 4 days ago

Desired to enhance the flexibility of keybinds

nnoremap <silent><nowait> <space>l0  :call VSCodeCall('editor.foldLevel0') <CR>
nnoremap <silent><nowait> <space>l1  :call VSCodeCall('editor.foldLevel1') <CR>
nnoremap <silent><nowait> <space>l2  :call VSCodeCall('editor.foldLevel2') <CR>
nnoremap <silent><nowait> <space>l3  :call VSCodeCall('editor.foldLevel3') <CR>
nnoremap <silent><nowait> <space>l4  :call VSCodeCall('editor.foldLevel4') <CR>
nnoremap <silent><nowait> <space>l5  :call VSCodeCall('editor.foldLevel5') <CR>
nnoremap <silent><nowait> <space>l6  :call VSCodeCall('editor.foldLevel6') <CR>