From 88898ceecdd8ac2aaf48151252ff274f212b8236 Mon Sep 17 00:00:00 2001 From: Ian Stanley Date: Wed, 22 Jul 2020 12:08:28 +0100 Subject: [PATCH 1/2] Added instructions for Vim's own built in package manager (c.2016 in Vim 8.0+) --- README.markdown | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 136ba5e..11484be 100644 --- a/README.markdown +++ b/README.markdown @@ -1,5 +1,7 @@ # vim-pencil +[![Vint](https://github.com/reedes/vim-pencil/workflows/Vint/badge.svg)](https://github.com/reedes/vim-pencil/actions?workflow=Vint) + > Rethinking Vim as a tool for writers
@@ -91,9 +93,40 @@ tutorials available._ [nbn]: https://github.com/Shougo/neobundle.vim [pth]: https://github.com/tpope/vim-pathogen -#### Vundle +#### Vim's own package manager -Add to your `.vimrc` and save: +If you haven't used Vim's built in package manager yet you need to +create the directory in which to install packages. + +```bash +mkdir -p ~/.vim/pack/plugins/start +``` + +You can then clone this repo to that directory with + +```bash +git clone git@github.com:reedes/vim-pencil.git ~/.vim/pack/plugins/start +``` + +To make this easier add the following to your .bashrc + +```bash +#Vim plugins +export VIMPLUGINS=~/.vim/pack/plugins/start +viminstallplugin() { + pushd $VIMPLUGINS + git clone $* + popd +} +``` + +Run source ~/.bashrc and then you will have an environment variable and a +bash function defined. You may now install plugins by simply running +viminstallplugin eg: + +```bash +viminstallplugin https://github.com/reedes/vim-pencil +``` ```vim Plugin 'reedes/vim-pencil' @@ -692,6 +725,7 @@ If you find the _pencil_ plugin useful, check out these others by [@reedes][re]: * [vim-thematic][th] - modify Vim’s appearance to suit your task and environment * [vim-wheel][wh] - screen-anchored cursor movement for Vim * [vim-wordy][wo] - uncovering usage problems in writing +* [vim-wordchipper][wc] - power tool for shredding text in Insert mode Unimpressed by _pencil_? [vim-pandoc][vp] offers prose-oriented features with its own Markdown variant. @@ -709,6 +743,7 @@ with its own Markdown variant. [vw]: http://therandymon.com/woodnotes/vim-for-writers/vimforwriters.html [wh]: http://github.com/reedes/vim-wheel [wo]: http://github.com/reedes/vim-wordy +[wc]: http://github.com/reedes/vim-wordchipper [vp]: http://github.com/vim-pandoc/vim-pandoc # Future development From 7626ec5b595cea98448fa80fad7b3a11e04533f7 Mon Sep 17 00:00:00 2001 From: Ian Stanley Date: Wed, 22 Jul 2020 12:18:46 +0100 Subject: [PATCH 2/2] added Vundle header mistakenly removed in previous edit --- README.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/README.markdown b/README.markdown index 11484be..5c73463 100644 --- a/README.markdown +++ b/README.markdown @@ -128,6 +128,7 @@ viminstallplugin eg: viminstallplugin https://github.com/reedes/vim-pencil ``` +#### Vundle ```vim Plugin 'reedes/vim-pencil' ```