X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=vim%2Fvimrc;h=4c2547318ce43b0ff74ac46e4e0b74d7224b660c;hb=fa7b2df678cdbd4aa566743b50d5c7ff599c4dcd;hp=e51866713490dbd8585546f839500d67281d3e6c;hpb=9ee62605bbb935b083a2caf25a3690c969fc020c;p=smckown%2Fdotfiles.git diff --git a/vim/vimrc b/vim/vimrc index e518667..4c25473 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -410,3 +410,22 @@ endfunction "imap dD =strftime('%Y-%m-%d') "nmap dt "=strftime('%H:%M:%S')p "imap dt =strftime('%H:%M:%S') + +" Unite +let g:unite_source_history_yank_enable = 1 +"call unite#filters#matcher_default#use(['matcher_fuzzy']) +nnoremap uf :Unite -no-split -start-insert -buffer-name=files file_rec +nnoremap uy :Unite -no-split -buffer-name=yank history/yank +nnoremap ub :Unite -no-split -start-insert -buffer-name=buffer buffer + +" Custom mappings for the unite buffer +autocmd FileType unite call s:unite_settings() +function! s:unite_settings() + setlocal noswapfile undolevels=-1 + " Play nice with supertab + let b:SuperTabDisabled=1 + " Enable navigation with control-j and control-k in insert mode + imap (unite_select_next_line) + imap (unite_select_previous_line) + nmap (unite_exit) +endfunction