From 08f73e88c90acee2b2b45026e5c4c86fe568d236 Mon Sep 17 00:00:00 2001 From: wassimk Date: Wed, 5 Jun 2024 16:37:06 +0000 Subject: [PATCH] build(docs): auto generate vim documentation --- doc/scalpel.nvim.txt | 76 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 doc/scalpel.nvim.txt diff --git a/doc/scalpel.nvim.txt b/doc/scalpel.nvim.txt new file mode 100644 index 0000000..abd497e --- /dev/null +++ b/doc/scalpel.nvim.txt @@ -0,0 +1,76 @@ +*scalpel.nvim.txt* For NVIM v0.8.0 Last change: 2024 June 05 + +============================================================================== +Table of Contents *scalpel.nvim-table-of-contents* + +1. scalpel.nvim |scalpel.nvim-scalpel.nvim| + - Installation |scalpel.nvim-scalpel.nvim-installation| + - Usage |scalpel.nvim-scalpel.nvim-usage| + - Acknowledgments |scalpel.nvim-scalpel.nvim-acknowledgments| +2. Links |scalpel.nvim-links| + +============================================================================== +1. scalpel.nvim *scalpel.nvim-scalpel.nvim* + +**scalpel.nvim** is a Neovim plugin designed to expedite your find/replace +workflow within a buffer. It sets up Neovim’s native |`substitution`| +command, automating some steps to eliminate some typing. + + + + +INSTALLATION *scalpel.nvim-scalpel.nvim-installation* + +Install **scalpel.nvim** with your preferred plugin manager. + +The following example shows the installation process using lazy.nvim +. It sets the scalpel substitute keymap to +`e`. + +>lua + { + 'wassimk/scalpel.nvim', + version = "*", + config = true, + keys = { + { + 'e', + function() + require('scalpel').substitute() + end, + mode = { 'n', 'x' }, + desc = 'substitute word(s)', + }, + }, + } +< + + +USAGE *scalpel.nvim-scalpel.nvim-usage* + +Using **scalpel.nvim** is simple: + +1. Move the cursor over the word you wish to replace. +2. Trigger the substitution with the `e` keymap. +3. Begin typing your desired substitution and hit return. Note that the original word is being captured, so if you would like to incorporate it into your replacement, use `\1`. + +This plugin also supports visual mode selection for substitutions within a +single line. + + +ACKNOWLEDGMENTS *scalpel.nvim-scalpel.nvim-acknowledgments* + +This project was inspired by Scalpel , a +Vimscript plugin I’ve used for many years. **scalpel.nvim** is my version +reimagined and implemented in Lua for fun. + +============================================================================== +2. Links *scalpel.nvim-links* + +1. *scalpel-nvim demo*: demo.gif +2. *build*: https://github.com/wassimk/scalpel.nvim/actions/workflows/build.yml/badge.svg +3. *release*: https://img.shields.io/github/v/release/wassimk/scalpel.nvim?logo=github + +Generated by panvimdoc + +vim:tw=78:ts=8:noet:ft=help:norl: