104

GitHub - tpope/vim-eunuch: eunuch.vim: helpers for UNIX

 6 years ago
source link: https://github.com/tpope/vim-eunuch
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.markdown

eunuch.vim

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

  • :Delete: Delete a buffer and the file on disk simultaneously.
  • :Unlink: Like :Delete, but keeps the now empty buffer.
  • :Move: Rename a buffer and the file on disk simultaneously.
  • :Rename: Like :Move, but relative to the current file's containing directory.
  • :Chmod: Change the permissions of the current file.
  • :Mkdir: Create a directory, defaulting to the parent of the current file.
  • :Find: Run find and load the results into the quickfix list.
  • :Locate: Run locate and load the results into the quickfix 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.
  • File type detection for sudo -e is based on original file name.
  • New files created with a shebang line are automatically made executable.
  • New init scripts are automatically prepopulated with /etc/init.d/skeleton.

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/tpope/vim-eunuch.git

Once help tags have been generated, you can view the manual with :help eunuch.

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK