| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple syntax highlighting for plain text notetaking.
For anything more complex probably use something like Markdown instead, or perhaps check out xolox/vim-notes
Use whatever plugin manager you prefer. I like vim-plug:
Plug 'timss/notes.vim'Can also be manually installed to ~/.vim/syntax/notes.vim.
This plugin does not automatically apply its syntax to any specific file
extension.
Instead, add something like this to your ~/.vimrc, or issue :set ft=notes manually or using a Vim modeline.
augroup LocalFileTypeRules
autocmd!
autocmd BufNewFile,BufRead *.txt set ft=notes tw=120
augroup ENDFor years I used Vim's default sh syntax highlighting when taking quick and dirty .txt notes where something like Markdown felt too restrictive, while also wanting some highlighting to help structure the text.
At some point the highlighting of shell keywords such as for or if, words like don't being treated as unenclosed strings and the lack of other common highlighting suitable for notes became too much of a nuisance to keep up with, and notes.vim was born.
| Back | FazBrowse Home | New Git URL |