(w)h(i)te(sp)ace management
use git or your plugin manager of choice to install wisp.
- disables whitespace highlighting in terminals.
- highlights trailing whitespace when entering a modifiable buffer.
- terminal buffers are not modifiable.
:Wisp: call to remove any trailing whitespace and crlf line endings in a modifiable buffer.
add the following to your vim configuration to clean up a file by pressing Leader-w:
-- wisp:
vim.keymap.set("n", "<Leader>w", "<cmd>Wisp<CR>", { silent = true })this project uses a Makefile to automate common development tasks.
to see all available tasks:
make helpadd the following function to your bash config:
_make_completion() {
local cur prev targets
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
# Parse Makefile targets
targets=$(make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);print A[1]}' | sort -u)
COMPREPLY=( $(compgen -W "${targets}" -- ${cur}) )
return 0
}
complete -F _make_completion make