xolox / vim-notes

Easy note taking in Vim
http://peterodding.com/code/vim/notes/
1.6k stars 110 forks source link

Using notes outside of notes directory #139

Open pdoak opened 8 years ago

pdoak commented 8 years ago

I really like the vim-notes syntax highlighting and would like to be able to use that for notes that are outside of my notes directory. Having read some other posts, I thought I could just set filetype=notes when editing a file outside of the notes directory and that would allow the vim-notes syntax highlighting to work. Unfortunately, it does not work for me.

Is there anything else that I need to do in order to get this working?

pdoak commented 8 years ago

I got it working. I am using vim-plug as my plugin manager and I had the following in my vimrc: Plug 'xolox/vim-notes',{'on':[ 'Note' ,'SearchNotes']} | Plug 'xolox/vim-misc'

When I set ft=notes the plugin was not invoked. I just needed to remove ,{'on':[ 'Note' ,'SearchNotes']} | Plug 'xolox/vim-misc'