From a1eeb17bbcd107ad79292f300932542b3acd9f5c Mon Sep 17 00:00:00 2001 From: Jesse Leite Date: Mon, 4 Mar 2019 13:03:01 -0500 Subject: [PATCH] Allow user to disable immobilize feature. --- plugin/slash.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/slash.vim b/plugin/slash.vim index 0ea3d42..b8b25ea 100644 --- a/plugin/slash.vim +++ b/plugin/slash.vim @@ -30,6 +30,9 @@ function! s:wrap(seq) endfunction function! s:immobile(seq) + if get(g:, 'slash#disable_immobilize', 0) + return a:seq + endif let s:winline = winline() return a:seq."\(slash-prev)" endfunction