alok/notational-fzf-vim is a better version of a Notational Velocity or nvALT equivalent for vim.
nvSimple is a poor man's imitation of Notational Velocity or nvALT, as a pure-vimscript plugin for vim.
nvSimple is a way to maintain a flat directory of plain text notes with easy full text search, and quick access.
nvSimple is based on an idea by Ellen Gummesson.
nvSimple makes use of vimgrep and the quickfix list, and so is immediately familiar to any vim user.
It is recommended to install nvSimple via Pathogen, Vundle or one of the other modern package managers for vim.
Add this to your .vimrc:
" load nvSimple
Bundle 'scrosland/nvsimple.vim'
" configure the directory in which notes are stored
let l:gnvsimple_notes_directory = '~/notes'
The interface to nvSimple is two commands, :Nv
and :Nvopen
.
:Nv [pattern]
Search or browse for notes.
If pattern is not supplied, the command prompts for a vimgrep
-style search
pattern. Entering an empty search pattern will open a directory browser in
your notes directory, as configured with g:nvsimple_notes_directory
.
Searches all notes for pattern using vimgrep
, and then opens the
results in the quickfix
window via the copen
command. The search will
include all notes files whether they have the default extension or not.
:Nvopen
:Nvopen a-new-note
:Nvopen a-new-todo.taskpaper
Opens an existing note or creates a new note.
If a name is not supplied, the command prompts for the name.
If the name does not include an extension (e.g. .txt
) the default file
extension will be appended from the g:nvsimple_default_extension
option.
See the documentation for full details.