All Projects → LandonSchropp → vim-stamp

LandonSchropp / vim-stamp

Licence: other
A vim plugin that replaces the currently selected text with the text in the delete register

Programming Languages

Vim Script
2826 projects
shell
77523 projects

Projects that are alternatives of or similar to vim-stamp

virt-column.nvim
Display a character as the colorcolumn
Stars: ✭ 64 (+392.31%)
Mutual labels:  neovim, vim-plugin
Vim Signify
➕ Show a diff using Vim its sign column.
Stars: ✭ 2,390 (+18284.62%)
Mutual labels:  neovim, vim-plugin
Vim Janah
Vim colorscheme.
Stars: ✭ 172 (+1223.08%)
Mutual labels:  neovim, vim-plugin
Targets.vim
Vim plugin that provides additional text objects
Stars: ✭ 2,114 (+16161.54%)
Mutual labels:  neovim, vim-plugin
Vim Lsp Cxx Highlight
Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd
Stars: ✭ 231 (+1676.92%)
Mutual labels:  neovim, vim-plugin
Vim Dadbod Completion
Database autocompletion powered by https://github.com/tpope/vim-dadbod
Stars: ✭ 163 (+1153.85%)
Mutual labels:  neovim, vim-plugin
Visual Split.vim
Vim plugin to control splits with visual selections or text objects
Stars: ✭ 190 (+1361.54%)
Mutual labels:  neovim, vim-plugin
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (+769.23%)
Mutual labels:  neovim, vim-plugin
Indent Blankline.nvim
Indent guides for Neovim
Stars: ✭ 203 (+1461.54%)
Mutual labels:  neovim, vim-plugin
Neomake
Asynchronous linting and make framework for Neovim/Vim
Stars: ✭ 2,512 (+19223.08%)
Mutual labels:  neovim, vim-plugin
Iris.vim
📫 Simple mail client for Vim.
Stars: ✭ 148 (+1038.46%)
Mutual labels:  neovim, vim-plugin
Vim Ghost
Vim/Nvim client for GhostText - Edit browser text areas in Vim/Neovim
Stars: ✭ 245 (+1784.62%)
Mutual labels:  neovim, vim-plugin
Vem Tabline
A lightweight Vim/Neovim plugin to display buffers and tabs in the tabline
Stars: ✭ 129 (+892.31%)
Mutual labels:  neovim, vim-plugin
Neotex
latex live preview - plugin for neovim and vim 8
Stars: ✭ 170 (+1207.69%)
Mutual labels:  neovim, vim-plugin
Vim Clap
👏 Modern performant fuzzy picker for Vim and NeoVim
Stars: ✭ 1,802 (+13761.54%)
Mutual labels:  neovim, vim-plugin
Animate.vim
A Vim Window Animation Library
Stars: ✭ 173 (+1230.77%)
Mutual labels:  neovim, vim-plugin
Ncm R
R autocompletion for Neovim and vim 8 📝 📊 ⚡️
Stars: ✭ 102 (+684.62%)
Mutual labels:  neovim, vim-plugin
Neovim Fuzzy
Fuzzy file finding for neovim
Stars: ✭ 103 (+692.31%)
Mutual labels:  neovim, vim-plugin
Vim Sayonara
👺 Sane buffer/window deletion.
Stars: ✭ 219 (+1584.62%)
Mutual labels:  neovim, vim-plugin
Vim Vsnip
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
Stars: ✭ 224 (+1623.08%)
Mutual labels:  neovim, vim-plugin

Vim Stamp

Stamp is a NeoVim and Vim plugin that makes it easy to replace text with the contents of the last command. This allows you to very quickly replace text in a repeatable way without the need for macros.

Demo

This is easiest to explain with a demo. Let's take this line of text as an example:

Hello Hola Bonjour Olà Hallo

With your cursor on Hello, run yiw to copy the first word.

[H]ello Hola Bonjour Olà Hallo

Next, his w to move to Hola and run Siw (stamp inner word).

Hello [H]ello Bonjour Olà Hallo

Tuh duh! You've just stamped a word. The contents of your unnamed register (in this case when you yanked the first word) have now replaced the second word. You can use Stamp with any command that populates the unnamed register, such as d, dd, y, yy and x.

If you have repeat.vim installed, you can repeat a stamp with the . key. Try it by switching to the next word and then stamping again with w..

Hello Hello [H]ello Olà Hallo

The great thing about Stamp is it works with any motion. That means you have maximum flexibility when stamping. Some of the more useful motions include stamping inside strings (Si"), stamping blocks (Sib), stamping paragraphs (Sip) and stamping until the end of the line (S$).

Stamp supports the following modes:

  • Normal mode motions (S<motion>)
  • Visual line selections (V<motion>S)
  • Visual character selections (v<motion>S)
  • Lines (SS)

Installation

Stamp can be installed using your favorite Vim plugin manager. I recommend using vim-plug.

Plug 'LandonSchropp/vim-stamp'

If you'd like Stamp to work with the repeat key (.), you need to install the repeat.vim plugin as well.

Development

If you'd like to poke around in this repo, it comes with a few scripts to make local development much easier:

  • bin/run: Execute arbitrary commands inside of a Neovim instance that only has Vader and Stamp loaded.
  • bin/test: Run the Vader test suite.
  • bin/example: Calls bin/run and loads a buffer with some sample data for easy, on-the-fly testing.
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].