diff options
Diffstat (limited to 'files/vim')
| -rw-r--r-- | files/vim/patches/qname_edit.diff | 31 | ||||
| -rw-r--r-- | files/vim/plugin/qname.1.2.vim | 4 | ||||
| -rw-r--r-- | files/vim/vimrc | 4 |
3 files changed, 26 insertions, 13 deletions
diff --git a/files/vim/patches/qname_edit.diff b/files/vim/patches/qname_edit.diff index 4ca65ff..ab1ed09 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-08-13 22:10:15.352953531 -0400 -@@ -7,7 +7,25 @@ ++++ b/qname.1.2.vim 2025-10-30 16:45:40.688588103 -0400 +@@ -7,7 +7,27 @@ " License: Vim License " ============================================================================= @@ -23,11 +23,13 @@ Post- dos2unix, Tabify, and Trim. +" Add bind to "flatten" the list +" Replace fmatch() with built-in matchfuzzy() (speedup) +" Fix logic to not include buffers with modifiable off ++" 2025-10-30: ++" Treat <S-BS> the same as <BS> +" " 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 +48,6 @@ +@@ -30,12 +50,6 @@ finish endif @@ -40,7 +42,16 @@ Post- dos2unix, Tabify, and Trim. if exists("g:qname_loaded") && g:qname_loaded finish endif -@@ -70,16 +82,19 @@ +@@ -53,7 +67,7 @@ + + " use case-sensitive equality operator, otherwise <BS> looks like + " <S-Tab> if 'ignorecase' is set +- if _key ==# "\<BS>" ++ if _key ==# "\<BS>" || _key ==# "\<S-BS>" + let s:inp = s:inp[:-2] + elseif _key ==# "\<C-U>" + let s:inp = "" +@@ -70,16 +84,19 @@ call s:swb(str2nr(matchstr(s:s[_sel], '<\zs\d\+\ze>'))) endif call QNameInit(0) @@ -64,7 +75,7 @@ Post- dos2unix, Tabify, and Trim. else call s:build() endif -@@ -88,7 +103,6 @@ +@@ -88,7 +105,6 @@ cal QNameInit(0) finally " clean up screen after dismissing search window @@ -72,7 +83,7 @@ Post- dos2unix, Tabify, and Trim. call inputrestore() endtry endfunc -@@ -99,6 +113,7 @@ +@@ -99,6 +115,7 @@ let s:cmdh = &cmdheight if a:start != -1 let s:inp = "" @@ -80,7 +91,7 @@ Post- dos2unix, Tabify, and Trim. endif call s:baselist() call s:build() -@@ -112,16 +127,27 @@ +@@ -112,16 +129,27 @@ function! s:build() let s:s = [] let s:n = [] @@ -111,7 +122,7 @@ Post- dos2unix, Tabify, and Trim. cal s:colPrinter.put(s:n) else cal s:colPrinter.put(s:s) -@@ -137,37 +163,28 @@ +@@ -137,37 +165,28 @@ endfunc function! s:fmatch(src,pat) @@ -154,7 +165,7 @@ Post- dos2unix, Tabify, and Trim. function! s:colPrinter.put(its) dict let _cols = [] let _trow = self.trow -@@ -224,11 +241,7 @@ +@@ -224,11 +243,7 @@ function! s:colPrinter.vert(mv) dict let _t = self.sel + a:mv let _len = self.len @@ -167,7 +178,7 @@ Post- dos2unix, Tabify, and Trim. let self.sel = _t endif endfunc -@@ -244,7 +257,7 @@ +@@ -244,7 +259,7 @@ let _t = _sel/_trow let _cpos = self.cpos let _lcol = self.lcol diff --git a/files/vim/plugin/qname.1.2.vim b/files/vim/plugin/qname.1.2.vim index 73b7dec..7ecd92f 100644 --- a/files/vim/plugin/qname.1.2.vim +++ b/files/vim/plugin/qname.1.2.vim @@ -25,6 +25,8 @@ " Add bind to "flatten" the list " Replace fmatch() with built-in matchfuzzy() (speedup) " Fix logic to not include buffers with modifiable off +" 2025-10-30: +" Treat <S-BS> the same as <BS> " " 1.2 2013-01-03 " ADD: <Tab> and <S-Tab> moves selection like <Up> and <Down> @@ -65,7 +67,7 @@ function! QNameRun() " use case-sensitive equality operator, otherwise <BS> looks like " <S-Tab> if 'ignorecase' is set - if _key ==# "\<BS>" + if _key ==# "\<BS>" || _key ==# "\<S-BS>" let s:inp = s:inp[:-2] elseif _key ==# "\<C-U>" let s:inp = "" diff --git a/files/vim/vimrc b/files/vim/vimrc index c40eeec..b3bb734 100644 --- a/files/vim/vimrc +++ b/files/vim/vimrc @@ -128,8 +128,8 @@ if isdirectory(expand("~/c")) endif set autocomplete -"set complete=.^6,w^6,b^6,u^6,i^6,d^6 -set complete=.^6,w^6,b^6,u^6 +"set complete=.^4,w^3,b^2,u^2,i^2,d^2 +set complete=.^4,w^3,b^2,u^2 set completeopt+=menu,popup " Plugins. |