/far.vim

Find And Replace Vim plugin

Primary LanguageVim ScriptMIT LicenseMIT

far.vim - Find And Replace Vim plugin

Intro

Far.vim makes it easier to find and replace text through multiple files. It's inspired by fancy IDEs, like IntelliJ and Eclipse, that provide cozy tools for such tasks.

Installation

vim-plug

Plug 'brooth/far.vim'

Usage

:Far foo bar **/*.py
:Fardo

far.vim

:Far {pattern} {replace-with} {file-mask} [params]

Find the text to replace.

:Farp [params]

Same as Far, but allows to enter {pattern}, {replace-with} and {file-mask} one after the other.

:Fardo [params]

Runs the replacement task.

:Refar [params]

Change Far/Farp params.

:F {pattern} {file-mask} [params]

Find only.

Need help?

:help far.vim

Extras

Multiline Replacement

multiline

Neovim-Async, Ack, Ag, Ripgrep support

nvim

Command-Line Completion

complete

Consistency Check

consistency

..and many more! Check out :help far.vim.

Troubleshooting

Improving scrolling performance

You can improve the scrolling performance when navigating through large results by adding the following settings to your vim configuration:

set lazyredraw
set regexpengine=1

License

MIT