Vim: Search for What You Select

Way 1:

  1. yank the selected text with y
  2. go to search mode /
  3. paste the last yanked text with Ctrl+R 0

    Ctrl-R 0 is to get register 0’s value. Use :reg to see what’s in your registers.

Way 2:

  1. yank the selected text with y
  2. go to search mode with command-line window q/
  3. paste p (and you can continue editing)

Source: Search for selection in Vim - Stack Overflow


关于 SELinux 的各种理论知识
内核符号重定位:从 CVE-2024-26816 说开去