From 0766039bd9e6b9f5e6334e84666f5be698d41fc3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 17 Mar 2023 01:35:04 +0900 Subject: feat(nuldoc): implement syntax highlight --- .../2021-10-02/vim-swap-order-of-selected-lines/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'public/posts/2021-10-02/vim-swap-order-of-selected-lines') diff --git a/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html b/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html index 366912c..8dbea05 100644 --- a/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html +++ b/public/posts/2021-10-02/vim-swap-order-of-selected-lines/index.html @@ -10,7 +10,7 @@ Vimで選択した行の順番を入れ替える | REPL: Rest-Eat-Program Loop - +
@@ -125,7 +125,7 @@ なお、:g/^/m0は全ての行を入れ替えるが、:N,Mg/^/mN-1とすることで N行目から M行目を処理範囲とするよう拡張できる。手でこれを入力するわけにはいかないので、次のようなコマンドを用意する。

-
command! -bar -range=%
+              
command! -bar -range=%
 \ Reverse
 \ <line1>,<line2>g/^/m<line1>-1
@@ -160,7 +160,7 @@ 前述した:Reverseコマンドの定義を少し変えて、次のようにする:

-
function! s:reverse_lines(from, to) abort
+            
function! s:reverse_lines(from, to) abort
   execute printf("%d,%dg/^/m%d", a:from, a:to, a:from - 1)
   endfunction
 
@@ -217,7 +217,7 @@
               

-
command! -bar -range=%
+            
command! -bar -range=%
   \ Reverse
   \ keeppatterns <line1>,<line2>g/^/m<line1>-1
@@ -234,7 +234,7 @@

コピペ用再掲

-
" License: Public Domain
+            
" License: Public Domain
 
   command! -bar -range=%
   \ Reverse
-- 
cgit v1.2.3-70-g09d2