Skip to content

Improve :Search #92

@jsborjesson

Description

@jsborjesson

It should

  • Fallback to vimgrep? if Git not present
  • Search for selection/word under cursor :'<,'>Search ?
  • Shouldn't need to manually quote searches with spaces in them
  • :SearchCaseInsensitive
  • Search Open Files (arglist?)
  • Next with n in same file once selected a match (set / search too)
  • Next match in quickfix list
  • Show what you're replacing
  • ReplaceNext, ReplaceAll
  • Make sure undo works for replace all
  • Extract to separate file/plugin

Project wide search and replace in Vim.

vim-search-and-replace aims to be a lightweight wrapper around Vim's native searching features, bringing the interface closer to what you would expect from an editor like VSCode, while still relying on the power of Vim.

Even though I've used Vim religiously for a long time, these commands never seem to stick. I need this crutch, but it can also be used as an example of how to do the VSCode search operations in Vim and then simply using those instead of even installing this plugin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions