Watch
1
0
Fork
You've already forked vim-eunuch
0
mirror of https://github.com/tpope/vim-eunuch.git synced 2026-11-17 02:20:38 +00:00
eunuch.vim: Helpers for UNIX
  • Vim Script 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-12 15:52:28 -04:00
.github Add sponsor button 2019-11-12 19:39:48 -05:00
doc Fix documentation for extending <CR> map 2022-09-19 15:30:18 -04:00
plugin Add noremap when wrapping around lua callback <CR> mapping 2026-08-12 15:52:28 -04:00
.gitignore Ignore tags 2012-05-07 12:18:11 -04:00
README.markdown Fix a typo 2023-06-28 13:41:32 -04:00

eunuch.vim

Vim sugar for the UNIX shell commands that need it the most. Features include:

  • :Remove: Delete a file on disk without E211: File no longer available.
  • :Delete: Delete a file on disk and the buffer too.
  • :Move: Rename a buffer and the file on disk simultaneously. See also :Rename, :Copy, and :Duplicate.
  • :Chmod: Change the permissions of the current file.
  • :Mkdir: Create a directory, defaulting to the parent of the current file.
  • :Cfind: Run find and load the results into the quickfix list.
  • :Clocate: Run locate and load the results into the quickfix list.
  • :Lfind/:Llocate: Like above, but use the location list.
  • :Wall: Write every open window. Handy for kicking off tools like guard.
  • :SudoWrite: Write a privileged file with sudo.
  • :SudoEdit: Edit a privileged file with sudo.
  • Typing a shebang line causes the file type to be re-detected. Additionally the file will be automatically made executable (chmod +x) after the next write.

Installation

Install using your favorite package manager, or use Vim's built-in package support:

mkdir -p ~/.vim/pack/tpope/start
cd ~/.vim/pack/tpope/start
git clone https://tpope.io/vim/eunuch.git
vim -u NONE -c "helptags eunuch/doc" -c q

Contributing

See the contribution guidelines for pathogen.vim.

Self-Promotion

Like eunuch.vim? Follow the repository on GitHub and vote for it on vim.org. And if you're feeling especially charitable, follow tpope on Twitter and GitHub.

License

Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. See :help license.