From ebce2f6415dc554d58814e1cc27d9eb78575cc66 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 22 Mar 2021 21:25:38 +0000 Subject: [PATCH] vim: update and rename vim-essentials (standard), vim-gui (mouse) --- vim-essential | 1 + {vim-standard => vim-essentials}/README.md | 20 +++++++--- vim-essentials/install.sh | 18 +++++++++ vim-gui/README.md | 43 ++++++++++++++++++++++ {vim-mouse => vim-gui}/install.sh | 0 {vim-mouse => vim-gui}/mouse.vim | 0 vim-mouse | 1 + vim-mouse/README.md | 43 ---------------------- vim-standard/install.sh | 8 ---- 9 files changed, 77 insertions(+), 57 deletions(-) create mode 120000 vim-essential rename {vim-standard => vim-essentials}/README.md (57%) create mode 100644 vim-essentials/install.sh create mode 100644 vim-gui/README.md rename {vim-mouse => vim-gui}/install.sh (100%) rename {vim-mouse => vim-gui}/mouse.vim (100%) create mode 120000 vim-mouse delete mode 100644 vim-mouse/README.md delete mode 100644 vim-standard/install.sh diff --git a/vim-essential b/vim-essential new file mode 120000 index 0000000..33b98c9 --- /dev/null +++ b/vim-essential @@ -0,0 +1 @@ +vim-essentials \ No newline at end of file diff --git a/vim-standard/README.md b/vim-essentials/README.md similarity index 57% rename from vim-standard/README.md rename to vim-essentials/README.md index 84afe91..dc144ca 100644 --- a/vim-standard/README.md +++ b/vim-essentials/README.md @@ -1,11 +1,11 @@ --- -title: vim-standard -homepage: https://webinstall.dev/vim-standard +title: vim-essentials +homepage: https://webinstall.dev/vim-essentials tagline: | meta package for our recommended vim plugins and settings --- -To update (replacing the current version) run `webi vim-standard`. +To update (replacing the current version) run `webi vim-essentials`. ## Cheat Sheet @@ -17,10 +17,18 @@ recommended. It includes many of the vim plugins available on webinstall.dev such as: +- [vim-leader](/vim-leader) - [vim-shell](/vim-shell) - [vim-sensible](/vim-sensible) -- [vim-spell](/vim-spell) -- [vim-lastplace](/vim-lastplace) - [vim-viminfo](/vim-viminfo) -- [vim-syntastic](/vim-syntastic) +- [vim-lastplace](/vim-lastplace) +- [vim-spell](/vim-spell) +- [vim-ale](/vim-ale) - [vim-prettier](/vim-prettier) +- [vim-whitespace](/vim-whitespace) + +It **DOES NOT** include these, which you may also want: + +- [vim-gui](/vim-gui) (mouse and clipboard support) +- [vim-nerdtree](/vim-nerdtree) +- [vim-devicons](/vim-devicons) diff --git a/vim-essentials/install.sh b/vim-essentials/install.sh new file mode 100644 index 0000000..bc34f2e --- /dev/null +++ b/vim-essentials/install.sh @@ -0,0 +1,18 @@ +webi \ + vim-leader \ + vim-shell \ + vim-sensible \ + vim-viminfo \ + vim-lastplace \ + vim-spell \ + vim-ale \ + vim-prettier \ + vim-whitespace \ + # done + +printf '\n' +printf 'Suggestion: Also check out these great plugins:\n' +printf ' - vim-nerdtree (better than the default file browser)\n' +printf ' - vim-gui (mouse & clipboard support)\n' +printf ' - vim-go (golang linting, etc)\n' +printf '\n' diff --git a/vim-gui/README.md b/vim-gui/README.md new file mode 100644 index 0000000..7064187 --- /dev/null +++ b/vim-gui/README.md @@ -0,0 +1,43 @@ +--- +title: vim-gui +homepage: https://webinstall.dev/vim-gui +tagline: | + vim-gui enables Vim's built-in support for mouse, clipboard, etc +--- + +To update (replacing the current version) run `webi vim-gui`. + +## Cheat Sheet + +Vim has built-in GUI support. + +It is turned off by default and when turned on may not behave exactly as +expected. + +This vim-gui plugin turns on mouse support with insert mode on click, +select-to-copy clipboard, and other GUI options. + +### How to configure manually + +Create the file `~/.vim/plugins/gui.vim`. Add the same contents as +. + +That will look something like this: + +```vim +" turn on mouse support +set mouse=a + +" keep copy-on-select and other GUI options +set clipboard+=autoselect guioptions+=a + +" enter insert mode on left-click +nnoremap i +``` + +You'll then need to update `~/.vimrc` to source that plugin: + +```vim +" Mouse Support: reasonable defaults from webinstall.dev/vim-gui +source ~/.vim/plugins/gui.vim +``` diff --git a/vim-mouse/install.sh b/vim-gui/install.sh similarity index 100% rename from vim-mouse/install.sh rename to vim-gui/install.sh diff --git a/vim-mouse/mouse.vim b/vim-gui/mouse.vim similarity index 100% rename from vim-mouse/mouse.vim rename to vim-gui/mouse.vim diff --git a/vim-mouse b/vim-mouse new file mode 120000 index 0000000..fcca5fb --- /dev/null +++ b/vim-mouse @@ -0,0 +1 @@ +vim-gui \ No newline at end of file diff --git a/vim-mouse/README.md b/vim-mouse/README.md deleted file mode 100644 index 6231120..0000000 --- a/vim-mouse/README.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: vim-mouse -homepage: https://webinstall.dev/vim-mouse -tagline: | - vim mouse is Vim's built-in mouse support ---- - -To update (replacing the current version) run `webi vim-mouse`. - -## Cheat Sheet - -Vim has built-in mouse support. - -It is turned off by default and when turned on may not behave exactly as -expected. - -This vim-mouse plugin turns on mouse support with insert mode on click, -select-to-copy clipboard, and other GUI options. - -### How to configure manually - -Create the file `~/.vim/plugins/mouse.vim`. Add the same contents as -. - -That will look something like this: - -```vim -" turn on mouse support -set mouse=a - -" keep copy-on-select and other GUI options -set clipboard+=autoselect guioptions+=a - -" enter insert mode on left-click -nnoremap i -``` - -You'll then need to update `~/.vimrc` to source that plugin: - -```vim -" Mouse Support: reasonable defaults from webinstall.dev/vim-mouse -source ~/.vim/plugins/mouse.vim -``` diff --git a/vim-standard/install.sh b/vim-standard/install.sh deleted file mode 100644 index 6e96ab0..0000000 --- a/vim-standard/install.sh +++ /dev/null @@ -1,8 +0,0 @@ -webi \ - vim-shell \ - vim-sensible \ - vim-spell \ - vim-viminfo \ - vim-lastplace \ - vim-syntastic \ - vim-prettier -- 2.25.1