You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin is completely community-driven. The author has betrayed the pure vim experience and fallen down a slippery slope of using VSCode with a vim plugin. Please do not raise issues without a PR, they will be ignored anyway.
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.
Interactive Far. Shows searching modes in the status bar (regex, case sensitive, word boundary, replace). Modes can be toggled by the key mapping it prompted. Allows to enter {pattern}, {replace-with}, and {file-mask} one after the other.
:Farf [params]
Interactive F. The interaction is similar to Farr.
Commands in the search result window
:Fardo [params]
Runs the replacement task. The shortcut for it is s (substitute).
:Farundo [params]
Undo the recurrent replacement. The shortcut for it is u (undo). It is available when setting let g:far#enable_undo=1.
:Refar [params]
Change Far/F/Farr/Farf params.
Need help?
:help far.vim
Extras
Multiline Replacement
Neovim-Async, Ack, Ag, Ripgrep support
Command-Line Completion
Consistency Check
..and many more! Check out :help far.vim.
Troubleshooting
Recommented Setting
You can add the following settings to your vim configuration:
setlazyredraw" improve scrolling performance when navigating through large resultssetregexpengine=1" use old regexp enginesetignorecasesmartcase" ignore case only when the pattern contains no capital letters" shortcut for far.vim findnnoremap<silent><Find-Shortcut>:Farf<cr>vnoremap<silent><Find-Shortcut>:Farf<cr>" shortcut for far.vim replacennoremap<silent><Replace-Shortcut>:Farr<cr>vnoremap<silent><Replace-Shortcut>:Farr<cr>