Code Monkey home page Code Monkey logo

memolist.vim's Introduction

memolist.vim

This is a vimscript for create and manage memo. memolist.vim is inspired by jekyll.vim.

Setup

Set the path to your memo directory in your .vimrc.(default directory $HOME/memo)

let g:memolist_path = "path/to/dir"

You may also want to add a few mappings to stream line the behavior:

nnoremap <Leader>mn  :MemoNew<CR>
nnoremap <Leader>ml  :MemoList<CR>
nnoremap <Leader>mg  :MemoGrep<CR>

Commands

Create New Memo:

:MemoNew

Show Memo List:

:MemoList

Grep Memo Directory:

:MemoGrep

Options

" suffix type (default markdown)
let g:memolist_memo_suffix = "markdown"
let g:memolist_memo_suffix = "txt"

" date format (default %Y-%m-%d %H:%M)
let g:memolist_memo_date = "%Y-%m-%d %H:%M"
let g:memolist_memo_date = "epoch"
let g:memolist_memo_date = "%D %T"

" tags prompt (default 0)
let g:memolist_prompt_tags = 1

" categories prompt (default 0)
let g:memolist_prompt_categories = 1

" use qfixgrep (default 0)
let g:memolist_qfixgrep = 1

" use vimfiler (default 0)
let g:memolist_vimfiler = 1

" use fzf (default 0)
let g:memolist_fzf = 1

" remove filename prefix (default 0)
let g:memolist_filename_prefix_none = 1

" use unite (default 0)
let g:memolist_unite = 1

" use arbitrary unite source (default is 'file')
let g:memolist_unite_source = "file_rec"

" use arbitrary unite option (default is empty)
let g:memolist_unite_option = "-auto-preview -start-insert"

" use denite (default 0)
let g:memolist_denite = 1

" use arbitrary denite source (default is 'file_rec')
let g:memolist_denite_source = "anything"

" use arbitrary denite option (default is empty)
let g:memolist_denite_option = "anything"

" use various Ex commands (default '')
let g:memolist_ex_cmd = 'CtrlP'
let g:memolist_ex_cmd = 'NERDTree'
let g:memolist_ex_cmd = 'Defx'
let g:memolist_ex_cmd = 'Clap files'

" use delimiter of array in yaml front matter (default is ' ')
let g:memolist_delimiter_yaml_array = ','

" use when get items from yaml front matter
" first line string pattern of yaml front matter (default "==========")
let g:memolist_delimiter_yaml_start = "---"

" last line string pattern of yaml front matter (default "- - -")
let g:memolist_delimiter_yaml_end  = "---"

memolist.vim with unite.vim

Custom template

you can use other format and custom template. (default memo format is markdown.)

if you use custom template file(~/memotemplates/rdoc.txt). add the following lines to your .vimrc

let g:memolist_memo_suffix = "rdoc"
let g:memolist_template_dir_path = "~/memotemplates"

Install

Manually

Put all files under $VIM.

Add the following configuration to your .vimrc.

Plug 'glidenote/memolist.vim'

Install with :PlugInstall.

Add the following configuration to your .vimrc.

Bundle 'glidenote/memolist.vim'

Install with :BundleInstall.

Add the following configuration to your .vimrc.

NeoBundle 'glidenote/memolist.vim'

Install with :NeoBundleInstall.

License

Lcense: Same terms as Vim itself (see license)

memolist.vim's People

Contributors

glidenote avatar mitsuru793 avatar mattn avatar heavenshell avatar sgur avatar get-me-power avatar rapan931 avatar yuki-yano avatar yutkat avatar bobuhiro11 avatar choplin avatar halkn avatar hironei avatar ne-sachirou avatar okamos avatar orokasan avatar asao1524 avatar rhysd avatar skanehira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.