1
ビジュアルモードでコマンドをマッピングすると、エラーE481が発生する
選択したブロックを開いたNeovim端末に送信するキーボードバインディングをNeovimで作成しようとしています。これらの回答をガイドラインとして使用しましたhttps://vi.stackexchange.com/a/3390/3405 https://stackoverflow.com/a/6271254/859391 Visual Lineを選択してコマンドを呼び出そうとすると、No Range Allowedエラーが発生し続けます。私は明白な何かを見逃していますか? function! s:get_visual_selection() " Why is this not a built-in Vim script function?! let [lnum1, col1] = getpos("'<")[1:2] let [lnum2, col2] = getpos("'>")[1:2] let lines = getline(lnum1, lnum2) let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)] let lines[0] = lines[0][col1 …