All Projects → skwp → Greplace.vim

skwp / Greplace.vim

Global search and replace for VI

Labels

Projects that are alternatives of or similar to Greplace.vim

Seti.vim
Stars: ✭ 107 (-7.76%)
Mutual labels:  viml
Vim Plug
我的vim插件, 基于vim-plug安装
Stars: ✭ 113 (-2.59%)
Mutual labels:  viml
Vim Cheat
View cheatsheets via vim
Stars: ✭ 116 (+0%)
Mutual labels:  viml
Vim G
Quick Google lookup directly from Vim
Stars: ✭ 107 (-7.76%)
Mutual labels:  viml
Apiblueprint.vim
This vim plugin brings syntax highlighting and linting for API Blueprint.
Stars: ✭ 112 (-3.45%)
Mutual labels:  viml
Flatlandia
Vim colorscheme based on flatland with Airline integration.
Stars: ✭ 113 (-2.59%)
Mutual labels:  viml
Vim I18n
Vim plugin to easily add I18n translations to your Rails project
Stars: ✭ 106 (-8.62%)
Mutual labels:  viml
Keyboard cat.vim
vim plugin for pretending like you can actually type
Stars: ✭ 116 (+0%)
Mutual labels:  viml
Vim Notes
Easy note taking in Vim
Stars: ✭ 1,518 (+1208.62%)
Mutual labels:  viml
Cscope.vim
A vim plugin to help you to create/update cscope database and connect to existing proper database automatically.
Stars: ✭ 115 (-0.86%)
Mutual labels:  viml
Vim Visualstar
star for Visual-mode.
Stars: ✭ 106 (-8.62%)
Mutual labels:  viml
Vim Pydjango
Ultimate VIM for Python & Django development.
Stars: ✭ 109 (-6.03%)
Mutual labels:  viml
Vim Multicursor
Allows Vim to use multiple cursors simultaneously
Stars: ✭ 114 (-1.72%)
Mutual labels:  viml
Vim Colorscheme Switcher
Makes it easy to quickly switch between color schemes in Vim
Stars: ✭ 107 (-7.76%)
Mutual labels:  viml
Incsearch Fuzzy.vim
Stars: ✭ 116 (+0%)
Mutual labels:  viml
Bufexplorer.zip
Buffer Explorer / Browser
Stars: ✭ 106 (-8.62%)
Mutual labels:  viml
Vim Swift
Swift filetype plugin for Vim
Stars: ✭ 113 (-2.59%)
Mutual labels:  viml
Vim Youdao Translater
vim的有道取词翻译插件
Stars: ✭ 116 (+0%)
Mutual labels:  viml
Vim Jinja
jinja plugins for vim (syntax and indent)
Stars: ✭ 116 (+0%)
Mutual labels:  viml
Ember.vim
Vim plugin for the Emberjs frontend framework
Stars: ✭ 115 (-0.86%)
Mutual labels:  viml

VIM Plugin for doing a search and replace across many files.

About this plugin

Original plugin by Yegappan Lakshmanan http://www.vim.org/scripts/script.php?script_id=1813

Modifications by Yan Pritzker:

  • Always grep recursive
  • Silence the search so you don't get a gigantic scroll list

Usage

  1. Use :Gsearch to get a buffer window of your search results
  2. then you can make the replacements inside the buffer window using traditional tools (%s/foo/bar/)
  3. Invoke :Greplace to make your changes across all files. It will ask you interatively y/n/a - you can hit 'a' to do all.
  4. Save changes to all files with :wall (write all)

Customization

To customize command used for :Gsearch you can update both the command and the default options.

Note: updating grepprg will have consequences on other commands that rely on grep vim command

  • git grep

    set grepprg=git\ grep
    
    let g:grep_cmd_opts = '--line-number'
    
  • ag

    set grepprg=ag
    
    let g:grep_cmd_opts = '--line-numbers --noheading'
    
  • ack

    set grepprg=ack
    
    let g:grep_cmd_opts = '--noheading'
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].