" **bookmark.vim** " " SUMMARY: " " Bookmark your favorite files, and easy-access them later. " " MAPS: " " ,w Add current file to the bookmarks file. " ,b Open the bookmarks file. " " From the bookmarks file: " " Edit the file on the current line. " Quit the bookmarks file. " " NOTES: " " * The bookmarks file can be edited: ie. listed files can be " deleted, or moved to other lines. " * The bookmarks file is called ~/bookmarks. " " ----------------------------------------------------------------------------- map ,w :let @a=expand("%:p"):sp ~/bookmarks:put a:w:bd map ,b :let @e=bufnr(bufname("%")):e ~/bookmarks:echo '--FAVORITES MODE --' " ----------------------------------------------------------------------------- if !exists("_bookmark_vim_sourced") let _bookmark_vim_sourced=1 " ----------------------------------------------------------------------------- so ~\buflist.vim map __bookmarks_load- :let @a=expand(":p"):bd!:exe("e ".@a) aug bookmarks au bufenter bookmarks nm __bookmarks_load- au bufleave bookmarks nun au bufenter bookmarks nm :bd:b e au bufleave bookmarks nun au bufleave bookmarks so ~/_vimrc aug END " ----------------------------------------------------------------------------- endif " -----------------------------------------------------------------------------