diff options
| author | Nathan Merkley <nathanmerkley@gmail.com> | 2023-12-07 09:54:04 -0700 |
|---|---|---|
| committer | Greg Hogan <code@greghogan.com> | 2025-07-09 03:49:03 +0000 |
| commit | bbf584b1ec875db5cf5fea9acb0384f23227ba60 (patch) | |
| tree | bbc98cc165e60306622292d352b3f38c600b6aeb | |
| parent | 2ec7f64f25b3ae5278120de9a7826594e1a3dfa9 (diff) | |
gnu: Add vim-commentary.
* gnu/packages/vim.scm (vim-commentary): New variable.
Change-Id: I9435787b234f90cb3d59ff6b65b7a96a533aea03
Signed-off-by: Greg Hogan <code@greghogan.com>
| -rw-r--r-- | gnu/packages/vim.scm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm index 7512f1ceb5a..5bc9d9635f9 100644 --- a/gnu/packages/vim.scm +++ b/gnu/packages/vim.scm | |||
| @@ -1651,3 +1651,33 @@ automate testing and is compatible with Vim and Neovim.") | |||
| 1651 | "Srcery is a color scheme with clearly defined contrasting colors | 1651 | "Srcery is a color scheme with clearly defined contrasting colors |
| 1652 | and a slightly earthy tone.") | 1652 | and a slightly earthy tone.") |
| 1653 | (license license:expat))) | 1653 | (license license:expat))) |
| 1654 | |||
| 1655 | (define-public vim-commentary | ||
| 1656 | (let ((commit "e87cd90dc09c2a203e13af9704bd0ef79303d755") | ||
| 1657 | (revision "1")) | ||
| 1658 | (package | ||
| 1659 | (name "vim-commentary") | ||
| 1660 | (version (git-version "1.3" revision commit)) | ||
| 1661 | (source | ||
| 1662 | (origin | ||
| 1663 | (method git-fetch) | ||
| 1664 | (uri (git-reference | ||
| 1665 | (url "https://github.com/tpope/vim-commentary") | ||
| 1666 | (commit commit))) | ||
| 1667 | (file-name (string-append name "-" version "-checkout")) | ||
| 1668 | (sha256 | ||
| 1669 | (base32 "09kzc89iwkgsi4wvjxk56fis462kkz5chcl9sl4hdbmpa1f41wy0")))) | ||
| 1670 | (build-system vim-build-system) | ||
| 1671 | (arguments | ||
| 1672 | (list | ||
| 1673 | #:plugin-name "commentary.vim")) | ||
| 1674 | (synopsis "Vim plugin for commenting out code") | ||
| 1675 | (description | ||
| 1676 | "Comment stuff out. Use gcc to comment out a line (takes a count), gc to | ||
| 1677 | comment out the target of a motion (for example, gcap to comment out a | ||
| 1678 | paragraph), gc in visual mode to comment out the selection, and gc in operator | ||
| 1679 | pending mode to target a comment. You can also use it as a command, either with | ||
| 1680 | a range like :7,17Commentary, or as part of a :global invocation like with | ||
| 1681 | :g/TODO/Commentary.") | ||
| 1682 | (home-page "https://www.vim.org/scripts/script.php?script_id=3695") | ||
| 1683 | (license license:vim)))) | ||
