summaryrefslogtreecommitdiff
path: root/files/vim/patches
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-11-21 14:50:30 -0500
committerAndrew Opalach <andrew@akon.city> 2025-11-21 14:50:30 -0500
commit61c027738785e0585202b7b3a828e05344510f66 (patch)
tree1a900c432c62b74e0e66d6f8f346030af8b187ec /files/vim/patches
parent44edb4b57655de5b21c51d0471e2ea02ac469c0c (diff)
downloaddotfiles-61c027738785e0585202b7b3a828e05344510f66.tar.gz
dotfiles-61c027738785e0585202b7b3a828e05344510f66.tar.bz2
dotfiles-61c027738785e0585202b7b3a828e05344510f66.zip
Tweaks
Diffstat (limited to 'files/vim/patches')
-rw-r--r--files/vim/patches/qname_edit.diff34
1 files changed, 23 insertions, 11 deletions
diff --git a/files/vim/patches/qname_edit.diff b/files/vim/patches/qname_edit.diff
index ab1ed09..b5350c6 100644
--- a/files/vim/patches/qname_edit.diff
+++ b/files/vim/patches/qname_edit.diff
@@ -1,7 +1,7 @@
Post- dos2unix, Tabify, and Trim.
--- a/qname.1.2.vim 2025-08-03 20:12:24.629096223 -0400
-+++ b/qname.1.2.vim 2025-10-30 16:45:40.688588103 -0400
-@@ -7,7 +7,27 @@
++++ b/qname.1.2.vim 2025-11-04 11:19:39.070454407 -0500
+@@ -7,7 +7,30 @@
" License: Vim License
" =============================================================================
@@ -25,11 +25,14 @@ Post- dos2unix, Tabify, and Trim.
+" Fix logic to not include buffers with modifiable off
+" 2025-10-30:
+" Treat <S-BS> the same as <BS>
++" 2025-11-04:
++" Open selected buffer in the current window, even if the same buffer is
++" already open in another window.
+"
" 1.2 2013-01-03
" ADD: <Tab> and <S-Tab> moves selection like <Up> and <Down>
" ADD: Use <silent> mapping to keep cmdline clear
-@@ -30,12 +50,6 @@
+@@ -30,12 +53,6 @@
finish
endif
@@ -42,7 +45,7 @@ Post- dos2unix, Tabify, and Trim.
if exists("g:qname_loaded") && g:qname_loaded
finish
endif
-@@ -53,7 +67,7 @@
+@@ -53,7 +70,7 @@
" use case-sensitive equality operator, otherwise <BS> looks like
" <S-Tab> if 'ignorecase' is set
@@ -51,7 +54,7 @@ Post- dos2unix, Tabify, and Trim.
let s:inp = s:inp[:-2]
elseif _key ==# "\<C-U>"
let s:inp = ""
-@@ -70,16 +84,19 @@
+@@ -70,16 +87,19 @@
call s:swb(str2nr(matchstr(s:s[_sel], '<\zs\d\+\ze>')))
endif
call QNameInit(0)
@@ -75,7 +78,7 @@ Post- dos2unix, Tabify, and Trim.
else
call s:build()
endif
-@@ -88,7 +105,6 @@
+@@ -88,7 +108,6 @@
cal QNameInit(0)
finally
" clean up screen after dismissing search window
@@ -83,7 +86,7 @@ Post- dos2unix, Tabify, and Trim.
call inputrestore()
endtry
endfunc
-@@ -99,6 +115,7 @@
+@@ -99,6 +118,7 @@
let s:cmdh = &cmdheight
if a:start != -1
let s:inp = ""
@@ -91,7 +94,7 @@ Post- dos2unix, Tabify, and Trim.
endif
call s:baselist()
call s:build()
-@@ -112,16 +129,27 @@
+@@ -112,16 +132,27 @@
function! s:build()
let s:s = []
let s:n = []
@@ -122,7 +125,16 @@ Post- dos2unix, Tabify, and Trim.
cal s:colPrinter.put(s:n)
else
cal s:colPrinter.put(s:s)
-@@ -137,37 +165,28 @@
+@@ -129,45 +160,32 @@
+ endfunc
+
+ function! s:swb(bno)
+- if bufwinnr(a:bno) == -1
+- exe "hid b" a:bno
+- else
+- exe bufwinnr(a:bno) . "winc w"
+- endif
++ exe "hid b" a:bno
endfunc
function! s:fmatch(src,pat)
@@ -165,7 +177,7 @@ Post- dos2unix, Tabify, and Trim.
function! s:colPrinter.put(its) dict
let _cols = []
let _trow = self.trow
-@@ -224,11 +243,7 @@
+@@ -224,11 +242,7 @@
function! s:colPrinter.vert(mv) dict
let _t = self.sel + a:mv
let _len = self.len
@@ -178,7 +190,7 @@ Post- dos2unix, Tabify, and Trim.
let self.sel = _t
endif
endfunc
-@@ -244,7 +259,7 @@
+@@ -244,7 +258,7 @@
let _t = _sel/_trow
let _cpos = self.cpos
let _lcol = self.lcol