1、ag.vim(查找工具)安裝
在vimrc中添加
? ? ? ? Plug 'rking/ag.vim'? ? ? ? ? ? ?
使用
:Ag 你要查找的內容
e ? ? ? ? ? ? ? ? ? open file and close the quickfix window.
o ? ? ? ? ? ? ? ? ? open file (same as enter).
go ? ? ? ? ? ? ? ? ?preview file (open but maintain focus on ag.vim results).
t ? ? ? ? ? ? ? ? ? open in a new tab.
T ? ? ? ? ? ? ? ? ? open in new tab silently.
h ? ? ? ? ? ? ? ? ? open in horizontal split.
H ? ? ? ? ? ? ? ? ?open in horizontal split silently.
v ? ? ? ? ? ? ? ? ? open in vertical split.
gv ? ? ? ? ? ? ? ? ?open in vertical split silently.
q ? ? ? ? ? ? ? ? ? close the quickfix window.
?
2、far.vim安裝
在vimrc中添加
Plug 'brooth/far.vim'
使用
:Far 被替換的內容 要替換內容 **/*.php
f 表示替換/不替換
:Fardo(開始執行)
?
?