From de13d68cddef5bb321469bcffb868f27ddd5390e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 12 Mar 2023 15:12:10 +0900 Subject: style: add .highlight class to pre tag --- .../posts/2021-10-02/vim-swap-order-of-selected-lines/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 afe6ba9..8a3b304 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 @@ -115,7 +115,7 @@ なお、:g/^/m0は全ての行を入れ替えるが、:N,Mg/^/mN-1とすることで N行目から M行目を処理範囲とするよう拡張できる。手でこれを入力するわけにはいかないので、次のようなコマンドを用意する。

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

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

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

コピペ用再掲

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