Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rubyファイルを検索してすべてのメソッドを見つけようとしています(後で自動置換する前に)。vimでは、次の正規表現を使用します:
/\vdef.*(\n.*){-}end
ただし、「{-}」を使用しても、ファイルの内容全体が選択されます。
vim\_.は改行文字を common に含めるために使用します.。
\_.
.
/\vdef\_.{-}end