A little shorter would probably be :%s/\(.*\)\(18\d\d\)\(.*\)/\2&/ (But since you haven't provided input samples and corresponding expected output I'm not sure and you will have to confirm it.) Janis ________________________________________ Von: 'c.willis111 ' via vim_use <vim_use@googlegroups.com> Gesendet: Dienstag, 26. Mai 2026 18:06 An: vim_use@googlegroups.com Betreff: Find a value , and insert it at the begining of line Hi this works. Is there a niftier way? (ie without capturing the context). :%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/ It seems that the nested capture which wd have been a tad shorter, doesn't work. regards - Chris -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com<mailto:vim_use+unsubscribe@googlegroups.com>. To view this discussion visit https://groups.google.com/d/msgid/vim_use/483eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com<https://groups.google.com/d/msgid/vim_use/483eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com?utm_medium=email&utm_source=footer>. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/DU0PR02MB104223044573EC3CE5325CB5FF30B2%40DU0PR02MB10422.eurprd02.prod.outlook.com.
Tuesday, May 26, 2026
Re: Find a value , and insert it at the begining of line
On 2026-05-26 17:06, Vim Users wrote: > this works. Is there a niftier way? (ie without capturing the > context). > > :%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/ You could do something like :%s/.*\(18\d\d\)/\1& if you wanted to simplify it. -tkc -- -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/ahXNPk6-t1Q2Ko0W%40thechases.com.
Find a value , and insert it at the begining of line
Hi
this works. Is there a niftier way? (ie without capturing the context).
:%s/\(.*\)\(18\d\d\)\(.*\)/\2\1\2\3/
It seems that the nested capture which wd have been a tad shorter, doesn't work.
regards - Chris
----
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/483eb624.1c088.19e6509f0f5.Webtop.140%40btinternet.com.
Re: xterm_clipboard missing in Fedora 44
hi, On Tue, 26 May 2026 at 11:10, Manas <manas18244@iiitd.ac.in> wrote: > Hi folks, I upgraded my system from F42 to F44, and I guess something has > broken. I was using vim-enhanced and had also installed vim-X11, which as Fedora > says should contain +xterm_clipboard. "+y/p commands were working fine. But now > I see -xterm_clipboard: > > +clipboard +keymap +profile +vertsplit > +clipboard_provider +lambda -python +vim9script > +cscope +lua/dyn +signs +wayland_clipboard > +extra_search -mouse_sysmouse +tag_binary -xterm_clipboard > > I have checked that xsel/xclip are installed and they are working fine. > How can I solve this? one option would be to build/compile vim with your own configuration. -- regards, jr. You have the right to free speech, as long as you're not dumb enough to actually try it. (The Clash 'Know Your Rights') this email is intended only for the addressee(s) and may contain confidential information. if you are not the intended recipient, you are hereby notified that any use of this email, its dissemination, distribution, and/or copying without prior written consent is prohibited. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAM-dBgq6XOa8qtgfJQJ-qYfA1%2B9wnPtuwvB%3D8Ti18NKAZH05fg%40mail.gmail.com.
Re: xterm_clipboard missing in Fedora 44
Hi folks, I upgraded my system from F42 to F44, and I guess something has broken. I was using vim-enhanced and had also installed vim-X11, which as Fedora says should contain +xterm_clipboard. "+y/p commands were working fine. But now I see -xterm_clipboard: +clipboard +keymap +profile +vertsplit +clipboard_provider +lambda -python +vim9script +cscope +lua/dyn +signs +wayland_clipboard +extra_search -mouse_sysmouse +tag_binary -xterm_clipboard I have checked that xsel/xclip are installed and they are working fine. How can I solve this? I am on Xorg/F44. Thanks -- Manas -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_use/ahVwavhheMXWnwnH%40fedora.
Monday, May 25, 2026
timer_start to refresh rulerformat
HI,
I saw here : https://vim.fandom.com/wiki/Display_date-and-time_on_status_line
and there : https://vi.stackexchange.com/questions/17875/how-to-update-the-statusline-continuously-even-if-the-window-becomes-inactive
that `timer_start` could refresh statusline.
something might have happened, because I can't get it to work.
here's the simple code I use:
```
set ruler
set rulerformat=%55(%{strftime('%H:%M:%S')}\ %5l,%-6(%c%V%)\ %P%)
call timer_start(1000, {-> execute(':let &stl=&stl')}, {'repeat': -1})
```
and here's version:
$ LC_ALL=C vim --version
VIM - Vi IMproved 9.2 (2026 Feb 14, compiled May 22 2026 18:43:08)
Included patches: 1-511
Compiled by Arch Linux
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_xterm -tag_any_white
+arabic +find_in_path +multi_byte +tcl/dyn
+autocmd +float +multi_lang +termguicolors
+autochdir +folding -mzscheme +terminal
-autoservername -footer +netbeans_intg +terminfo
-balloon_eval +fork() +num64 +termresponse
+balloon_eval_term +gettext +packages +textobjects
-browse -hangul_input +path_extra +textprop
++builtin_terms +iconv +perl/dyn +timers
+byte_offset +insert_expand +persistent_undo +title
+channel +ipv6 +popupwin -toolbar
+cindent +job +postscript +user_commands
+clientserver +jumplist +printer +vartabs
-clipboard +keymap +profile +vertsplit
+clipboard_provider +lambda -python +vim9script
+cmdline_compl +langmap +python3/dyn +viminfo
+cmdline_hist +libcall +quickfix +virtualedit
+cmdline_info +linebreak +reltime +visual
+comments +lispindent +rightleft +visualextra
+conceal +listcmds +ruby/dyn +vreplace
+cryptv +localmap +scrollbind -wayland
+cscope +lua/dyn +signs -wayland_clipboard
+cursorbind +menu +smartindent +wildignore
+cursorshape +mksession +socketserver +wildmenu
+dialog_con +modify_fname -sodium +windows
+diff +mouse -sound +writebackup
+digraphs -mouseshape +spell -X11
-dnd +mouse_dec +startuptime +xattr
-ebcdic +mouse_gpm +statusline -xfontset
+emacs_tags -mouse_jsbterm -sun_workshop -xim
+eval +mouse_netterm +syntax -xpm
+ex_extra +mouse_sgr +tabpanel -xsmp
+extra_search -mouse_sysmouse +tag_binary -xterm_clipboard
-farsi +mouse_urxvt -tag_old_static -xterm_save
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
3rd user vimrc file: "~/.config/vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g -ffile-prefix-map=/build/vim/src=/usr/src/debug/vim -flto=auto -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.42/core_perl/CORE -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto -L/usr/local/lib -o vim -lm -ltinfo -lnsl -lacl -lattr -lgpm -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lm
$
Friday, May 22, 2026
Re: Can't get new o flag complete option working to add omnnicomplete results
The feature works as expected in 9.2.321 in JavaScript files (using the stock javascriptcomplete#CompleteJS) and Python files (using the stock python3complete#Complete). Thank you for pointing it out to me by the way.
Note that the completion list is prioritized by "kind", so items from omnifunc may be way down the menu if "o" is at the end of "omnifunc".
You should try it in a buffer for which the "omnifunc" is not set by a plugin, or simply with "$ vim --clean", in order to rule out a Vim bug:
$ vim --clean +set\ complete=o filename.py
If "omnifunc" is set and you get language-aware completion, then it means that the feature works and that the problem is somewhere else. You should probably talk about this with the Jedi maintainers.
If not, then you may have found a regression introduced between 321 and 449, in which case you should head to Vim's issue tracker.
--On Saturday, May 16, 2026 at 6:42:21 PM UTC+2 Pablo Giménez wrote:
Hello.Looking at the new features in Vim9.2, great release BTW, there is one that caught my attention, something I have been waiting for a long time.The ability to get the results from several complete commands into one simple complete query.Plugins like MuComplete where close, allowing to switch to different complete command, but the newly added o flag for the complete option looks like the proper solution.Basically I want to press Ctrl-N and get results not only for keyword but also for omnicomplete, semantic aware results, I have been testing it with python where I use vim-jedi toget omnicompletion working using the jedi#completions function.Adding the o flag doesn't seem to have any effect in the complete options offered when I press Ctrl-N, if I press Ctrl-X-O I got the expected results from omnicompletion, but thoseresults doesn't appear when I press Ctrrl-N.These are the flags I use for complete:set complete=.,w,b,k,o
Am I missing something? Are there some limitations with certain omnifuncs or jedi#completions needs tweaks to get it working?I tried also using F and set complefunc to the same as omnifunc, but same result.Using Vim 9.2.449
Thanks--
Un saludo
Best Regards
Pablo Giménez
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/4ca31e1e-8ddf-46e6-b656-8d72871f0addn%40googlegroups.com.
Best Regards
Pablo Giménez
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAKt3ggKbMmvyXOowLkmMy06wfb1t4jpWuObubKDo%3DKNj_1jyCQ%40mail.gmail.com.