LoginSignup
16
18

More than 5 years have passed since last update.

memolist.vimのメモファイルをUniteで一覧する

Last updated at Posted at 2013-09-26

問題

memolist.vimで作成したメモの一覧もUniteで見たい。

解決

以下の様な設定をほどこす。

let g:memolist_path = "~/Dropbox/memo"
nmap ,mf :<C-u>execute('Unite file_rec/async:' . g:memolist_path)<CR>

これで、,mfでmemolist.vimのメモ一覧を一発で開けて便利。

追記

と思ったら作者に、memolistは既にUnite対応してるとおしえてもらいました。以下のような設定だけでいける。

let g:memolist_unite        = 1
let g:memolist_unite_source = "file_rec"
let g:memolist_unite_option = "-start-insert"

あとは普通に:MemoListコマンドを起動するだけ。

議論

mattnさんがctrlp.vim用に書いてた設定のUnite版です。

てか、変数を展開しつつUniteを起動するやりかた、これでいいのかよくわからない。

16
18
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
18