Light weight note manager on mac using vim
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload
bin
doc
ftdetect
lib
plugin
rplugin/python3/denite/source
syntax
template
.gitignore
LICENSE
Readme.md
package.json

Readme.md

Macnote.vim

Simplified and friendly note management plugin.

Basic features

  • Write note with markdown and yaml as frontmatter.
  • All extended markdown syntax included, visit sample page.
  • Preview in Chrome with range and auto reload support.
  • Create, delete and search note with command.
  • Denite source for easier note management.
  • Support both neovim/vim job-control for async parsing.

Install

Take vundle as example:

Plugin 'chemzqm/macnote.vim'

misaka and pygments is used for high preformance markdown parse and syntax highlight, you can install them via:

pip install pygments misaka

If your vim doesn't support, you can install vimproc.vim

Plugin 'Shougo/vimproc.vim'

to do async job.

Usage

  • Create or edit note:

    :Note {path}
    

    {path} could include folder, use <tab> for auto complete

  • Delete note;

    :NoteDelete {path}
    
  • Search note:

    :[bang]NoteSearch {path}
    
  • Preview current note:

    :Preview
    
  • Auto reload preview on file save and cursor hold:

    :PreviewAuto
    

    Chrome tab would be close on buffer delete

  • Open Denite source for note:

    Denite note
    

    There are open delete add actions for denite note source

Configurations

All configurations are optional.

  • g:macnote_note_directory could be used to set root directory of notes, defaults: ~/Documents/notes
  • g:note_cwindow_open could be set to 1 if you want open quickfix list after search.
  • g:note_denite_quickfix if you have denite quickfix source, set it to 1 to open denite quickfix source after search.

Use :h macnote inside vim to get more info.

LICENSE

MIT