These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. # Vim-Plug
  2. [Vim-Plug](https://github.com/junegunn/vim-plug) is a minimalist plugin manager.
  3. ## Installation
  4. You can add the following lines to your vim config file to make sure vim-plug is
  5. installed with the correct folder-structure.
  6. ```vimscript
  7. if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
  8. echo "Downloading junegunn/vim-plug to manage plugins..."
  9. silent !mkdir -p ~/.config/nvim/autoload/
  10. silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
  11. autocmd VimEnter * PlugInstall
  12. endif
  13. ```
  14. Below is an example plugin section.
  15. ```vimscript
  16. call plug#begin('~/.local/share/nvim/plugged')
  17. Plug 'airblade/vim-gitgutter'
  18. Plug 'tpope/vim-surround'
  19. Plug 'uiiaoo/java-syntax.vim' , {'for': 'java'}
  20. call plug#end()
  21. ```
  22. ## Important commands
  23. - `:PlugInstall` - install plugins specified in the Plug section
  24. - `:PlugClean` - remove plugins that are not specified in the Plug section
  25. For both of these command remember to write the file and reload the buffer if
  26. you just added a new plugin or removed one.