All Projects → hauleth → Sad.vim

hauleth / Sad.vim

Licence: mit
Quick search and replace for Vim

Projects that are alternatives of or similar to Sad.vim

Git Gutter Vim
git gutter for vim
Stars: ✭ 23 (-47.73%)
Mutual labels:  vim-plugin
Hot Reload.vim
A (Neo)vim plugin for Flutter to automatically hot reload the project every time a file is saved
Stars: ✭ 33 (-25%)
Mutual labels:  vim-plugin
Plugpac.vim
Thin wrapper of minpac, provides vim-plug-like experience
Stars: ✭ 40 (-9.09%)
Mutual labels:  vim-plugin
Vim Clang Format
Vim plugin for clang-format, a formatter for C, C++, Obj-C, Java, JavaScript, TypeScript and ProtoBuf.
Stars: ✭ 837 (+1802.27%)
Mutual labels:  vim-plugin
Quick Scope
Lightning fast left-right movement in Vim
Stars: ✭ 876 (+1890.91%)
Mutual labels:  vim-plugin
Tskeleton vim
File Templates and Code Skeletons/Snippets for VIM
Stars: ✭ 33 (-25%)
Mutual labels:  vim-plugin
Git Messenger.vim
Vim and Neovim plugin to reveal the commit messages under the cursor
Stars: ✭ 904 (+1954.55%)
Mutual labels:  vim-plugin
Vim Hexedit
Hexedit is a plug-in under VIM, which is used to strengthen the hex editing ability of VIM.
Stars: ✭ 42 (-4.55%)
Mutual labels:  vim-plugin
Vim Foldfocus
✂️ A vim plugin for isolating a particular piece of text into its own separated context.
Stars: ✭ 30 (-31.82%)
Mutual labels:  vim-plugin
Zepl.vim
Lightweight and easy REPL integration for Vim and Neovim.
Stars: ✭ 39 (-11.36%)
Mutual labels:  vim-plugin
Briofita vim
colorful Vim colorscheme for both GUI and 256-color terminals
Stars: ✭ 9 (-79.55%)
Mutual labels:  vim-plugin
Vim Gofmt
Formats Go source code asynchronously with multiple Go formatters.
Stars: ✭ 11 (-75%)
Mutual labels:  vim-plugin
Notational Fzf Vim
Notational velocity for vim.
Stars: ✭ 975 (+2115.91%)
Mutual labels:  vim-plugin
Vim Healthcheck
Polyfill of Neovim's health-check for Vim
Stars: ✭ 26 (-40.91%)
Mutual labels:  vim-plugin
Incsearch.vim
🔦 Improved incremental searching for Vim
Stars: ✭ 1,009 (+2193.18%)
Mutual labels:  vim-plugin
Tmux Navigate
🥂 Seamless tmux/vim navigation (over SSH too!)
Stars: ✭ 23 (-47.73%)
Mutual labels:  vim-plugin
Vimrc
📝 Vim Configuration for nerds with vim-plug
Stars: ✭ 33 (-25%)
Mutual labels:  vim-plugin
Vim Outdated Plugins
🔄 Async Vim/Neovim plugin for showing the number of your outdated plugins
Stars: ✭ 44 (+0%)
Mutual labels:  vim-plugin
Easytree.vim
easytree.vim - tree file manager
Stars: ✭ 41 (-6.82%)
Mutual labels:  vim-plugin
Vim Strand
A barebones Vim plugin manger written in Rust
Stars: ✭ 38 (-13.64%)
Mutual labels:  vim-plugin

Seek and Destroy

Simple Vim plugin that allows you to quickly search and replace occurrences of text.

Visualisation

Visualisation

Description

This plugin provides quick search and replace mapping. Example

ab|ba <- `|` denotes cursor
baba
abba

After siwtest<ESC> looks like:

|test
baba
abba

Nothing impressive? I agree, the same could be achieved via ciwtest<ESC>, but everything changes after you press ..

test
baba
|test

Wooot? What kind of magic is that? Oh, and this also works on visual selections. Nice.

Also by the chance (and because it is also part needed for this plugin) it provides visual * and #.

FAQ

But what about default s and S behaviour?

Just use c_ or cc.

But what about interference between this and vim-sneak?

Create your own maps:

" Normal mode
nmap <leader>s <Plug>(sad-change-forward)
nmap <leader>S <Plug>(sad-change-backward)

" Visual mode
xmap <leader>s <Plug>(sad-change-forward)
xmap <leader>S <Plug>(sad-change-backward)

Are there any easter eggs about name?

Not yet. And ever if there would be, then what is the point in telling you anyway?

Why not multiple cursors?

Except obvious corner cases like out of view cursor multiple cursors doesn't play well with gap buffers that are used in Vim and Emacs.

Todo

  • [x] allow setting register which will contain changed text
  • [x] do not remap s and S if there already exist any mapping
  • [x] turn search highlight right after s{movement}
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].