(sy)ntax highlighting, (f)olding, and whit(e)space management
use git or your plugin manager of choice to install syfe.
- go
- autoindentation; 8 spaces per tab.
- makefile
- autoindentation; 8 spaces per tab.
- markdown
- syntax highlighting, including fenced code blocks.
- python
- indentation-based folding.
- vimscript
- folding via explicit comment markers:
" {{
and" }}
start and stop a fold, respectively.
- folding via explicit comment markers:
- yaml
- autoindention on -, =, 0, or # characters.
syfe will highlight trailing whitespace when entering a modifiable buffer.
SyfeWhitespaceClear
: call to remove any trailing whitespace in a modifiable buffer.
add the following to your vim configuration to remove trailing whitespace by pressing Leader-w:
" syfe:
nnoremap <silent><Leader>w :execute 'SyfeWhitespaceClear'<CR>
- ben williams', vim-markdown, as the starting point for markdown support.
- steve losh's book, learn vimscript the hard way, was a great and useful read.