All Projects → itspriddle → vim-shellcheck

itspriddle / vim-shellcheck

Licence: MIT license
Vim wrapper for ShellCheck, a static analysis tool for shell scripts.

Programming Languages

Vim Script
2826 projects
Makefile
30231 projects

Projects that are alternatives of or similar to vim-shellcheck

Neomake
Asynchronous linting and make framework for Neovim/Vim
Stars: ✭ 2,512 (+3887.3%)
Mutual labels:  vim-plugin
Vim Ghost
Vim/Nvim client for GhostText - Edit browser text areas in Vim/Neovim
Stars: ✭ 245 (+288.89%)
Mutual labels:  vim-plugin
vim-textobj-quote
Use ‘curly’ quote characters in Vim
Stars: ✭ 112 (+77.78%)
Mutual labels:  vim-plugin
Vim Color Spring Night
Low-contrast calm color scheme for Vim
Stars: ✭ 227 (+260.32%)
Mutual labels:  vim-plugin
Vim Vsnip
Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
Stars: ✭ 224 (+255.56%)
Mutual labels:  vim-plugin
Vim Ledger
Vim plugin for Ledger
Stars: ✭ 253 (+301.59%)
Mutual labels:  vim-plugin
Lightline Ale
ALE indicator for the lightline vim plugin
Stars: ✭ 217 (+244.44%)
Mutual labels:  vim-plugin
vim-mysticaltutor
Low-contrast flat colorscheme for Vim and terminals
Stars: ✭ 22 (-65.08%)
Mutual labels:  vim-plugin
Vim Fibo Indent
Fibonacci Indentation for Vim.
Stars: ✭ 244 (+287.3%)
Mutual labels:  vim-plugin
Coc.nvim
Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Stars: ✭ 18,268 (+28896.83%)
Mutual labels:  vim-plugin
Pathfinder.vim
Vim plugin to suggest better movements
Stars: ✭ 228 (+261.9%)
Mutual labels:  vim-plugin
Vim Lsp Cxx Highlight
Vim plugin for C/C++/ObjC semantic highlighting using cquery, ccls, or clangd
Stars: ✭ 231 (+266.67%)
Mutual labels:  vim-plugin
Vim Airline
lean & mean status/tabline for vim that's light as air
Stars: ✭ 15,873 (+25095.24%)
Mutual labels:  vim-plugin
Vim Lexical
Build on Vim’s spell/thes/dict completion
Stars: ✭ 223 (+253.97%)
Mutual labels:  vim-plugin
vim-snipp-snapp-snut-and-the-legend-continues
💇 (Experimental) Vim snippet plugin
Stars: ✭ 24 (-61.9%)
Mutual labels:  vim-plugin
Vim Sayonara
👺 Sane buffer/window deletion.
Stars: ✭ 219 (+247.62%)
Mutual labels:  vim-plugin
Lusty
LustyExplorer / LustyJuggler for Vim
Stars: ✭ 246 (+290.48%)
Mutual labels:  vim-plugin
dotfiles
My dotfiles
Stars: ✭ 22 (-65.08%)
Mutual labels:  shellcheck
qf helper.nvim
A collection of improvements for the quickfix buffer
Stars: ✭ 70 (+11.11%)
Mutual labels:  vim-plugin
Nerdtree
A tree explorer plugin for vim.
Stars: ✭ 16,380 (+25900%)
Mutual labels:  vim-plugin

vim-shellcheck

Vim wrapper for ShellCheck, a static analysis tool for shell scripts.

Commands

These commands are available in buffers with 'filetype' of sh.

:[range]ShellCheck[!] [args]

Run shellcheck for the current buffer using optional [args] and send any errors to the quickfix-window. Specify a [range] or use a visual selection to check only those lines, otherwise the entire buffer is checked. Call with a bang to automatically open the quickfix-window when errors are found.

:[range]LShellCheck[!] [args]

Run shellcheck for the current buffer using optional [args] and send any errors to a location-list-window. Specify a [range] or use a visual selection to check only those lines, otherwise the entire buffer is checked. Call with a bang to automatically open the location-list-window when errors are found.

QF Mappings

Open ShellCheck error definition on GitHub - gb

The gb command can be used quickfix or location list windows to open the ShellCheck error definition on GitHub. This functionality is enabled when the window's w:quickfix_title attribute starts with one of the following:

  • :shellcheck -- created by compiler shellcheck | :make or some other program
  • :ShellCheck -- created by the :ShellCheck command
  • :LShellCheck -- created by the :LShellCheck command

To disable this mapping:

let g:shellcheck_disable_mappings = 1

To setup a different map:

let g:shellcheck_disable_mappings = 1
autocmd FileType qf nmap <buffer> <silent> gB <Plug>(shellcheck-gb)

Note: The gb map will not be defined if one already exists.

Compiler

A ShellCheck :compiler is provided for use as a 'makeprg':

:compiler shellcheck
:make!

Configuration

g:shellcheck_qf_open

Specifies how the quickfix-window is opened when :ShellCheck! is used. The default value is "botright copen 10".

g:shellcheck_ll_open

Specifies how the location-list-window is opened when :LShellCheck! is used. The default value is "lopen 10".

Installation

Use your favorite plugin manager, or use Vim's built-in package support:

mkdir -p ~/.vim/pack/shellcheck/start
cd ~/.vim/pack/shellcheck/start
git clone https://github.com/itspriddle/vim-shellcheck.git
vim -u NONE -c "helptags vim-shellcheck/doc" -c q

License

MIT License - see LICENSE in this repo.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].