

This is where setting vim's current directory is important. Similarly to search note contents I map sd to trigger ack.vim. I map it to sf so that I get quick fuzzy find. To always have access to note titles use ctrlp. As part of my standard vim plugin set I have ctrlpand ack.vim * which will serve us well here. To search note titles/file names use / when in the main view. Whereas NV searchs the note title and content together, our system will treat it as two flows. So this setup is completely like NV, except for one divergence. If you use gvim on a regular basis (I use terminal vim) and have other windows open, you'll have to tweak this. Finally wmctrl raises the window to the top by matching the string to the title. We use the autocommand FocusLost to save the file whenever the gvim window loses focus (simulating NV's autosave feature). The :lcd %:p:h option sets vim's current working directory to the NV directory. We use remote-silent to make sure that gvim uses an existing window if it is already open. Now whenever you press the global shortcut combination you should see gvim with a list of all files (notes). You should edit the path to point to your Dropbox/NV directory. '/home/nikhil/Dropbox/Notational Data' & wmctrl -a 'GVIM'
#Notational velocity data files how to
To know how to define custom global shortcuts to run a command.I am going to assume you use a standard desktop environment like KDE or that your window manager is EWMH compatible. So rather than write my own version, I got an almost as nice, and definitely more powerful NV equivalent in Linux. The tkinter UI looks bad in a Qt/GTK desktop, notes are saved in JSON by default, and the text file option is a sort of hack which stores the title in the first line, messing up the notes in NV.

I experimented with nvpy, but it didn't cut it for me at all.

I also love the global key binding feature so that I can quickly raise it with Cmd+Shift+N.Īt work (more on this soon) I started using a Thinkpad x230 running Archlinux. This way I can access my notes anywhere, without needing NV to be installed. I love the interface and simplicity, and most of all I love the simple use of text files in Dropbox as a store. It holds all my notes, lists and any other snippet of text.
#Notational velocity data files mac
I use Notational Velocity on my Mac all the time.
