/syfe

(sy)ntax highlighting, (f)olding, and whit(e)space management

Primary LanguageVim ScriptMIT LicenseMIT

syfe

(sy)ntax highlighting, (f)olding, and whit(e)space management

installation

use git or your plugin manager of choice to install syfe.

syntax, indentation, and folding

  • go
    • autoindentation; 8 spaces per tab.
  • makefile
    • autoindentation; 8 spaces per tab.
  • markdown
    • syntax highlighting, including fenced code blocks.
  • python
    • indentation-based folding.
  • vimscript
  • yaml
    • autoindention on -, =, 0, or # characters.

whitespace management

display

syfe will highlight trailing whitespace when entering a modifiable buffer.

commands

  • SyfeWhitespaceClear: call to remove any trailing whitespace in a modifiable buffer.

mapping example

add the following to your vim configuration to remove trailing whitespace by pressing Leader-w:

" syfe:
nnoremap <silent><Leader>w :execute 'SyfeWhitespaceClear'<CR>

acknowledgements