1

のようなものを取得する方法はありますか

vnoremap <F3> :call Surround("prfx_", "_psfx")<Enter>
function! Surround(prefix, postfix)
    " get the selection
    let selection = @*
    " remove selected text
    normal gv"xx
    " inserting text with prefix and postfix
    execute "normal i" . a:prefix . selection . a:postfix
endfunction

Spacemacsで?これは .vimrc にあり、.org ファイルで作業しているときに同じ機能があれば非常に便利です。これは、Elisp で実装するために学ぶ必要があるものですか?

4

1 に答える 1