add vim -syntastic, and vim-sensible for windows
authorAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 08:27:46 +0000 (08:27 +0000)
committerAJ ONeal <aj@therootcompany.com>
Sat, 4 Jul 2020 08:27:56 +0000 (08:27 +0000)
vim-go/install.ps1
vim-go/install.sh
vim-sensible/install.ps1 [new file with mode: 0644]
vim-sensible/install.sh
vim-synstastic/README.md [new file with mode: 0644]
vim-synstastic/install.ps1 [new file with mode: 0644]
vim-synstastic/install.sh [new file with mode: 0644]

index 5c72a7c93a744ecf5b456d9cd3e7db8be721d815..c77e39acdc9b1a7fe043f7cb7be26bb0e649c77a 100644 (file)
@@ -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"
index da4401b2ee2eed82adc33f8393d85649bba38ae7..2041d6ee3ff15b37c43176f525a97f7ce6691b5c 100644 (file)
@@ -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"
 }
diff --git a/vim-sensible/install.ps1 b/vim-sensible/install.ps1
new file mode 100644 (file)
index 0000000..b82a671
--- /dev/null
@@ -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"
index 08d2ba5a06b36422ddc189d692498961e7bf3235..85acfc1f38da9bd101da91b6ab9b33b009e1c33d 100644 (file)
 #   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"
+}
diff --git a/vim-synstastic/README.md b/vim-synstastic/README.md
new file mode 100644 (file)
index 0000000..4c593be
--- /dev/null
@@ -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']
+```
diff --git a/vim-synstastic/install.ps1 b/vim-synstastic/install.ps1
new file mode 100644 (file)
index 0000000..41cee14
--- /dev/null
@@ -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"
diff --git a/vim-synstastic/install.sh b/vim-synstastic/install.sh
new file mode 100644 (file)
index 0000000..374beb7
--- /dev/null
@@ -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"
+}