Ⅰ. 插件描述
Simple and fast note-taking plugin for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'iwataka/airnote-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'iwataka/airnote-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'iwataka/airnote-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/iwataka/airnote.vim
Ⅳ. 文档说明
# airnote.vim
Simple and fast note-taking plugin for Vim
Introduction
Note-taking is a huge part of your life and a source of your thoughts, so it
should be as speedy and intuitive as possible. This plug-in allows you to open
and delete notes blazing fast and, in addition, search one of them by tags and
jump to there. You can do these things with appropriate completion and command
design.
Philosophy
Any idea coming into your head goes away if you don't give a shape to it and
you should write it down or do something like that to prevent it. At this
point, the note you wrote is a little messy and needs to be more sophisticated.
Rewriting it to new one and dividing it into multiple sub-categories, you'll
get really important things.
Thus, airnote.vim has these philosophies:
- Fast access
- Less commands and more functionalities
- Syntax-agnostic (you can write notes with any filetypes)
Usage
Edit or delete notes with file-name completion
You can edit a note by this command:
:Note [file-name]or
:Notewith no arguments and then get a prompt.Use
:NoteDeletecommand to delete a note.Search one of your notes by tags with tag-name completion
You can search the specified note by tags
:Note @[tag-name]This utilizes
ctags, so you may have to add some settings to your.ctagsfile. In case that you use markdown as a note syntax, add below
sentence to.ctags.--langdef=markdown --langmap=markdown:.md --regex-markdown=/^#+\s*(.+)/\1/
Installation
I recommend to use vim-plug if you
don't have your favorite plug-in manager.
Plug 'iwataka/airnote.vim', { 'on': ['Note', 'NoteDelete'] }