Skip to content

Instantly share code, notes, and snippets.

@calorie
Created January 20, 2020 13:07
Show Gist options
  • Save calorie/e7edae702af74eb923ae82a123d4adf9 to your computer and use it in GitHub Desktop.
Save calorie/e7edae702af74eb923ae82a123d4adf9 to your computer and use it in GitHub Desktop.
nnoremap [unite] <Nop>
nmap <Space> [unite]
nnoremap <silent> [unite]a :<C-u>UniteWithCurrentDir -auto-preview -buffer-name=all buffer file_mru bookmark file<CR>
nnoremap <silent> [unite]f :<C-u>Unite -auto-preview -buffer-name=file file<CR>
nnoremap <silent> [unite]b :<C-u>Unite -auto-preview -buffer-name=buffre buffer<CR>
nnoremap <silent> [unite]u :<C-u>Unite -auto-preview -buffer-name=file_mru buffer file_mru<CR>
nnoremap <silent> [unite]m :<C-u>Unite -auto-preview -buffer-name=mru file_mru<CR>
nnoremap <silent> [unite]d :<C-u>UniteWithBufferDir -auto-preview -buffer-name=dir file<CR>
nnoremap <silent> [unite]A :<C-u>UniteBookmarkAdd<CR><CR><CR>
nnoremap <silent> [unite]B :<C-u>Unite -auto-preview -buffer-name=bookmark bookmark<CR>
nnoremap <silent> [unite]gr :<C-u>Unite -auto-preview -buffer-name=grep -immediately grep:<CR>
nnoremap <silent> [unite]Gr :<C-u>UniteWithCursorWord -auto-preview -buffer-name=grep -immediately grep<CR>
nnoremap <silent> [unite]o :<C-u>Unite -auto-preview -buffer-name=outline -hide-source-names outline<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment