ContributingĬontributions are welcome just submit a normal pull request. If you have a bunch of notes already, then execute the following command to import them :python nvimdb.rebuild_database(). If you would rather have a single note directory, then you can shorthand this by setting the NVIM_HOME environment variable and using the nvvim script. The downside to this is it requires being run from the directory containing all your notes. mvim for macvim) then you can still use the nvvim script by setting the NVIM_EDITOR environment variable.īy default nvvim allows multiple note directories. If you use vim under a different name (e.g. NVIM_interactive - Whether to map the leader based commands in interactive mode.You probably shouldn't change this unless you are fairly sure you know what you are doing. NVIM_database - the name for the directory used to store note metadata.NVIM_side - which side of the screen the sidebar should be on.The list of availiable languages/stemmers depends on your version of xapian, but the normal set is listed here. NVIM_language - the language stemmer to use when parsing notes (requires xapian 1.1+).nvvim will ignore any files in the directory that do not end with this. NVIM_extension - the extension to use for files, and hence vim filetype detection.Most of the configuration is handled at the top of nvvim.vim. If you delete a note or alter the contents of notes outside of nvvim, then you can refresh the database as under importing below.If you close the results window (or all windows apart from the results window) you will need to close and reopen vim.You can create new windows via splits or whatever as you wish - when a note is loaded from the search results it will be loaded into the most recently used window.The full range of vim commands are available to you, but there are a couple of things to bear in mind: Note that if you try an load a note that does not exist, the system will create a new one. This will not update any links in other notes. Under normal usage this should be correct. warning This will delete the note pointed to by the search bar. \i As \l, but clears the current search term first (equivalent to on NV as remapping escape in vim is.\l Move the cursor to the search area ready for changes.\ This will follow a ']' link from within a note.Hitting it a second time will do nothing. This is the only key bound until NVIM has been invoked once. \ Invoke NVIM on the current directory.If you haven't changed this, then it is \ by default. Nvvim binds several keys, all combos are started with the user's defined key. Use [[ to trigger vim's auto-complete with the list of available titles. The first line of the search box is the current search term. You will then be presented with two windows - on the right is the main pane where the note is displayed on the left the list of search results. export NVIM_HOME=path/to/directory and run nvvim.Nvvim stores its notes and database within a single directory. I've made a quick screencast here outlining basic usage. There is a supplied script nvvim which will open vim and call this to drop you directly into nvvim mode simply copy it to somewhere on your path Usage NVim is not intended to be used in every vim session you open to this end it will not be activated until you :Nvim Or if you manage things yourself, copy nvvim.vim into your ~/.vim/plugins directory and nvvim.py into ~/.vim/python Script
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |