mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 17:49:53 +00:00
add vim -syntastic, and vim-sensible for windows
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) {
|
||||
New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory
|
||||
}
|
||||
Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go" -Recurse -ErrorAction Ignore
|
||||
& git clone --depth=1 https://github.com/fatih/vim-go.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
set -e
|
||||
set -u
|
||||
|
||||
mkdir -p "$HOME/.vim/pack/plugins/start"
|
||||
rm -rf "$HOME/.vim/pack/plugins/start/vim-go"
|
||||
git clone --depth=1 https://github.com/fatih/vim-go.git "$HOME/.vim/pack/plugins/start/vim-go"
|
||||
}
|
||||
|
||||
7
vim-sensible/install.ps1
Normal file
7
vim-sensible/install.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) {
|
||||
New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory
|
||||
}
|
||||
Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible" -Recurse -ErrorAction Ignore
|
||||
& git clone --depth=1 https://tpope.io/vim/sensible.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible"
|
||||
@@ -12,6 +12,11 @@
|
||||
# It just works.
|
||||
#
|
||||
|
||||
mkdir -p $HOME/.vim/pack/plugins/start
|
||||
rm -rf $HOME/.vim/pack/plugins/start/sensible
|
||||
git clone --depth=1 https://tpope.io/vim/sensible.git $HOME/.vim/pack/plugins/start/sensible
|
||||
{
|
||||
set -e
|
||||
set -u
|
||||
|
||||
mkdir -p "$HOME/.vim/pack/plugins/start"
|
||||
rm -rf "$HOME/.vim/pack/plugins/start/sensible" "$HOME/.vim/pack/plugins/start/vim-sensible"
|
||||
git clone --depth=1 https://tpope.io/vim/sensible.git "$HOME/.vim/pack/plugins/start/vim-sensible"
|
||||
}
|
||||
|
||||
41
vim-synstastic/README.md
Normal file
41
vim-synstastic/README.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
title: vim-syntastic
|
||||
homepage: https://github.com/vim-syntastic/syntastic
|
||||
tagline: |
|
||||
Syntastic runs files through external syntax checkers and displays any resulting errors to the user.
|
||||
description: |
|
||||
vim-syntastic has been superseded by [ALE](https://github.com/dense-analysis/ale), but it lives on in my heart, my `.vim`, and my `.vimrc`.
|
||||
---
|
||||
|
||||
### How to install manually
|
||||
|
||||
```bash
|
||||
git clone --depth=1 https://github.com/vim-syntastic/syntastic.git ~/.vim/pack/plugins/start/vim-syntastic
|
||||
```
|
||||
|
||||
### How to configure in `.vimrc`
|
||||
|
||||
`.vimrc`:
|
||||
|
||||
```txt
|
||||
" manually set plugin to use bash - not zsh, fish, etc
|
||||
set shell=bash
|
||||
|
||||
" add this if packages don't load automatically
|
||||
" or remove it otherwise
|
||||
packloadall
|
||||
|
||||
" turn on the systax checker
|
||||
syntax on
|
||||
|
||||
" don't check syntax immediately on open or on quit
|
||||
let g:syntastic_check_on_open = 1
|
||||
let g:syntastic_check_on_wq = 0
|
||||
```
|
||||
|
||||
### How to configure language-specific linters
|
||||
|
||||
```txt
|
||||
let g:syntastic_javascript_checkers = ['jshint']
|
||||
let g:syntastic_go_checkers = ['go', 'golint', 'errcheck']
|
||||
```
|
||||
7
vim-synstastic/install.ps1
Normal file
7
vim-synstastic/install.ps1
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) {
|
||||
New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory
|
||||
}
|
||||
Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-syntastic" -Recurse -ErrorAction Ignore
|
||||
& git clone --depth=1 https://github.com/vim-syntastic/syntastic.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-syntastic"
|
||||
10
vim-synstastic/install.sh
Normal file
10
vim-synstastic/install.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
{
|
||||
set -e
|
||||
set -u
|
||||
|
||||
mkdir -p "$HOME/.vim/pack/plugins/start"
|
||||
rm -rf "$HOME/.vim/pack/plugins/start/vim-syntastic"
|
||||
git clone --depth=1 https://github.com/vim-syntastic/syntastic.git "$HOME/.vim/pack/plugins/start/vim-syntastic"
|
||||
}
|
||||
Reference in New Issue
Block a user