Loading

far.md

far.vim - Find And Replace Vim plugin

far.vim -查找和替换的vim插件

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.

Far.vim使在多文件之中查找和替换文本更容易。

它的灵感来自那些精美的,对于这种任务提供好用的工具的IDE,像是Intellij和Eclipse。

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.

Far类似,但允许连续地输入{pattern}, {replace-with} 和{file-mask}

:Fardo [params]

Runs the replacement task.

运行替换任务。

:Refar [params]

Change Far/Farp params.

转换 Far/Farp的参数。

: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:

当你浏览许多结果时,可以通过添加下列设置到你的vim配置文件中来提高滚动性能:

set lazyredraw
set regexpengine=1

License

MIT

posted @ 2022-05-28 17:40  nsfoxer  阅读(43)  评论(0编辑  收藏  举报