All Projects → itchyny → miv

itchyny / miv

Licence: MIT license
Vim plugin manager written in Haskell

Programming Languages

haskell
3896 projects
Makefile
30231 projects

Projects that are alternatives of or similar to miv

vim-easydebugger
A VIM multi-language debugger plugin
Stars: ✭ 47 (-25.4%)
Mutual labels:  vimrc
vimrc
⌨️ My opininonated config for vim
Stars: ✭ 49 (-22.22%)
Mutual labels:  vimrc
lvim
My config for LunarVim
Stars: ✭ 71 (+12.7%)
Mutual labels:  vimrc
anyrc
🐚 Bring your shell environment to anywhere
Stars: ✭ 28 (-55.56%)
Mutual labels:  vimrc
Dotfiles
Well documented awesome dotfiles 😍 Many neovim lua configs, handy zsh/bash functions, fzf functions + more
Stars: ✭ 64 (+1.59%)
Mutual labels:  vimrc
swiss-army
Ansible-driven configuration management for maintaining a preferred environment (base system and app dotfiles / configurations)
Stars: ✭ 44 (-30.16%)
Mutual labels:  vimrc
dotfiles
Dotfiles for Neovim (0.7+), Fish shell, git, Kitty, tmux, and more.
Stars: ✭ 54 (-14.29%)
Mutual labels:  vimrc
VimKO
⚭ Advanced Neovim configuration for ruby/python/ops/react development ⚭
Stars: ✭ 52 (-17.46%)
Mutual labels:  vimrc
dotfiles
PJ's dotfiles - There are many like it but this one is mine
Stars: ✭ 24 (-61.9%)
Mutual labels:  vimrc
vimmic
Lightweight and well documented Vim/Neovim configuration. Easy to use and configure.
Stars: ✭ 23 (-63.49%)
Mutual labels:  vimrc
dotfiles
shell, git, vim, tmux .etc dotfiles, managed via gnu stow
Stars: ✭ 20 (-68.25%)
Mutual labels:  vimrc
vimfiles
Just my personal little vimfiles
Stars: ✭ 21 (-66.67%)
Mutual labels:  vimrc
UltiVim
🌕 A blazing fast and highly documented configuration to serve as a guide.
Stars: ✭ 35 (-44.44%)
Mutual labels:  vimrc
colorcli
Collection of harmonized, light command-line interface (CLI) color themes for tmux, cmus, newsboat, mcabber, Vim, Vifm, and Mutt.
Stars: ✭ 40 (-36.51%)
Mutual labels:  vimrc
Dot-It-Up
A collection of dotfile scripts, plugins, and clever hacks so that you can become the master of your own OS! 🚀
Stars: ✭ 254 (+303.17%)
Mutual labels:  vimrc
vim-cheatsheet
🍁Vim cheat sheet with everything you want to know.
Stars: ✭ 69 (+9.52%)
Mutual labels:  vimrc
AbbrevMan.nvim
🍍 A NeoVim plugin for managing vim abbreviations.
Stars: ✭ 82 (+30.16%)
Mutual labels:  vimrc
nyoom.nvim
Blazing fast, configurable, minimal and lispy neovim config written in Fennel and Rust. Base config for users to extend and add upon, leading to a more unique editing experience. (🚀)
Stars: ✭ 304 (+382.54%)
Mutual labels:  vimrc
dotfiles
Dotfiles of Coelacanthus
Stars: ✭ 17 (-73.02%)
Mutual labels:  vimrc
dotfiles
vim, zsh, tmux etc.
Stars: ✭ 26 (-58.73%)
Mutual labels:  vimrc

miv

CI Status Hackage Release MIT License

Vim plugin manager written in Haskell

The miv is a command line tool for managing Vim plugins with a single YAML configuration file. The motivation of this tool is

  • to generate a Vim plugin loader files in Vim script
    • A plugin manager written in Vim script build script code and evaluates it on editor startup. But the executed commands do not change unless the user's configurations do not change. Instead of building the commands on editor startup, miv generates static plugin loader scripts after plugin installation.
  • to provide a declarative way to manage Vim plugins
    • Various loading triggers, script configurations and loading dependency can be defined.
  • to provide a command line tool which is friendly to interact with other tools
    • You can easily update the Vim plugins in cron schedule or from shell script.

Installation

Homebrew

brew install itchyny/tap/miv

Build with stack

git clone https://github.com/itchyny/miv.git && cd miv && stack install

User guide

  1. Add the miv plugin path to runtimepath in your .vimrc.
  2. Create miv configuration file at ~/.vimrc.yaml. (or ~/.vim/.vimrc.yaml, $XDG_CONFIG_HOME/miv/config.yaml)
  3. Execute miv install.

Example vimrc:

filetype off
if has('vim_starting')
  set rtp^=~/.vim/miv/miv
  " or when you set $XDG_DATA_HOME,
  " set rtp^=$XDG_DATA_HOME/miv/miv
endif
filetype plugin indent on

Example miv configuration file (refer to .vimrc.yaml for how the author configures):

plugin:

  Align:
    command: Align

  itchyny/lightline.vim:
    before: |
      let g:lightline = {
            \   'colorscheme': 'wombat',
            \ }

  itchyny/calendar.vim:
    mapleader: ","
    command: Calendar
    mapping: <Plug>(calendar)
    script: |
      nmap <Leader>z <Plug>(calendar)
    before: |
      let g:calendar_views = [ 'year', 'month', 'day_3', 'clock' ]

  prabirshrestha/vim-lsp:
    before: |
      let g:lsp_async_completion = 1
      let g:lsp_text_edit_enabled = 0
      let g:lsp_signs_enabled = 0
      augroup lsp_install
        autocmd!
        autocmd User lsp_buffer_enabled setlocal omnifunc=lsp#complete
      augroup END

  prabirshrestha/asyncomplete.vim: {}

  prabirshrestha/asyncomplete-lsp.vim:
    dependon: asyncomplete

  prabirshrestha/asyncomplete-buffer.vim:
    dependon: asyncomplete
    after: |
      call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
          \ 'name': 'buffer',
          \ 'whitelist': ['*'],
          \ 'completor': function('asyncomplete#sources#buffer#completor'),
          \ 'config': {
          \    'max_buffer_size': 100000,
          \  },
          \ }))

  prabirshrestha/asyncomplete-file.vim:
    dependon: asyncomplete
    after: |
      call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
          \ 'name': 'file',
          \ 'whitelist': ['*'],
          \ 'completor': function('asyncomplete#sources#file#completor'),
          \ }))

  mattn/vim-lsp-settings:
    dependon: lsp

  mattn/emmet-vim:
    filetype:
      - html
      - css
    before: |
      let g:user_emmet_settings = { 'indentation' : '  ' }
    after: |
      autocmd FileType html,css imap <buffer> <tab> <plug>(emmet-expand-abbr)

  elzr/vim-json:
    filetype: json

  cespare/vim-toml:
    filetype: toml

  groenewege/vim-less:
    filetype: less

  tpope/vim-haml:
    filetype: haml

  jade.vim:
    filetype: jade

  kana/vim-textobj-user: {}

  kana/vim-textobj-entire:
    dependon: textobj-user
    mapmode:
      - o
      - v
    mapping:
      - <Plug>(textobj-entire-a)
      - <Plug>(textobj-entire-i)
      - ie
      - ae

  kana/vim-textobj-line:
    dependon: textobj-user
    mapmode:
      - o
      - v
    mapping:
      - <Plug>(textobj-line-a)
      - <Plug>(textobj-line-i)
      - il
      - al

before: |
  let g:is_bash = 1
  let g:loaded_2html_plugin = 1
  let g:loaded_rrhelper = 1

after: |
  let g:mapleader = ','

filetype:
  vim: |
    setlocal foldmethod=marker
  css: |
    setlocal iskeyword=37,45,48-57,95,a-z,A-Z,192-255
  make: |
    setlocal noexpandtab
  sh: |
    setlocal iskeyword=36,45,48-57,64,95,a-z,A-Z,192-255

miv subcommands

The miv command has the following subcommands.

command description
install Installs all the plugins.
update Updates the plugins (outdated plugins are skipped).
update! Updates all the plugins.
update [plugins] Updates the specified plugins.
clean Removes unused directories and files.
generate Generates the miv plugin files. (miv install and miv update automatically do this task)
ftdetect Gather ftdetect scripts. (miv install and miv update automatically do this task)
helptags Generates the helptags file. (miv install and miv update automatically do this task)
list Lists all the plugins.
edit Edits the miv config file.
command Lists the subcommands of miv.
path [plugins] Prints the paths of the plugins.
each [commands] Executes the commands each directory of the plugins. For example, you can execute miv each pwd or miv each git gc.
help Shows the help of miv.
version Shows the version of miv.

Commands to execute when you want to

do what command
install a new plugin miv edit, update the configuration file, save, exit the editor and miv install
update the installed plugins but skip outdated plugins miv update
update all the installed plugins miv update!
update specific plugins miv update [plugin1] [plugin2]..
uninstall a plugin miv edit, remove the related configurations, miv generate (and miv clean if you want)
list all the plugins miv list
count the number of plugins miv list | wc -l
change the current working directory to a plugin directory cd "$(miv path [plugin])"
want a help miv help

Plugin configuration

Loading triggers for the plugin

key type description
filetype string | string[] load the plugin on setting the filetype
command string | string[] load the plugin on invoking the command
function string | string[] load the plugin on calling a function matching the value in regex
mapping string | string[] load the plugin on the mapping
mapmode 'n' | 'v' | 'x' | 's' | 'i' | 'c' | 'l' | 'o' | 't' specify the map-modes for the mapping configuration
cmdline ':' | '/' | '?' | '@' the command-line character to load the plugin
insert boolean load the plugin on entering the insert mode for the first time

Configurations for the plugin

key type description
script string script run on startup, specify some configurations or mappings to load the plugin
after string script run after the plugin is loaded
before string script run just before the plugin is loaded
mapleader string the mapleader (<Leader>) for the script

Dependency configurations

key type description
dependon string | string[] plugins on which the plugin depends; they are loaded just before the plugin is loaded
dependedby string | string[] (deprecated in favor of loadafter) plugins loaded just after the plugin is loaded
loadbefore string | string[] indicates lazy loading, the plugin is loaded just before any of the configured plugins
loadafter string | string[] indicates lazy loading, the plugin is loaded just after any of the configured plugins

Other miscellaneous configurations

key type description
enable string enable the plugin when the expression (in Vim script) is truthy
submodule boolean pull the submodules of the repository
build string build shell script to execute after installing and updating
sync boolean skip pulling the repository if the value is false

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].