mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
vim: update and rename vim-essentials (standard), vim-gui (mouse)
This commit is contained in:
1
vim-essential
Symbolic link
1
vim-essential
Symbolic link
@@ -0,0 +1 @@
|
||||
vim-essentials
|
||||
@@ -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)
|
||||
18
vim-essentials/install.sh
Normal file
18
vim-essentials/install.sh
Normal file
@@ -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'
|
||||
43
vim-gui/README.md
Normal file
43
vim-gui/README.md
Normal file
@@ -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
|
||||
<https://github.com/webinstall/webi-installers/blob/master/vim-gui/gui.vim>.
|
||||
|
||||
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 <LeftMouse> <LeftMouse>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
|
||||
```
|
||||
@@ -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
|
||||
<https://github.com/webinstall/webi-installers/blob/master/vim-mouse/mouse.vim>.
|
||||
|
||||
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 <LeftMouse> <LeftMouse>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
|
||||
```
|
||||
@@ -1,8 +0,0 @@
|
||||
webi \
|
||||
vim-shell \
|
||||
vim-sensible \
|
||||
vim-spell \
|
||||
vim-viminfo \
|
||||
vim-lastplace \
|
||||
vim-syntastic \
|
||||
vim-prettier
|
||||
Reference in New Issue
Block a user