Created
December 10, 2016 22:29
-
-
Save woowee/4d3f0e2dd96ff49784a0eaf9b6b5cdcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
" >unite | |
" | |
" 変数 | |
let g:unite_source_history_yank_enable = 1 | |
let g:unite_enable_start_insert = 1 | |
let g:unite_enable_ignore_case = 1 | |
let g:unite_enable_smart_case = 1 | |
let g:neomru#follow_links = 1 | |
" キーマッピング | |
" キーマッピング.プリフィス | |
noremap [Unite] <Nop> | |
nmap <Leader>f [Unite] | |
" キーマッピング.mru | |
noremap [Unite]r :<C-u>Unite file_mru<CR> | |
" キーマッピング.buffer | |
noremap [Unite]b :<C-u>Unite buffer<CR> | |
" キーマッピング.file | |
noremap [Unite]f :<C-u>UniteWithBufferDir -buffer-name=files file<CR> | |
" キーマッピング.bookmark | |
noremap [Unite]m :<C-u>Unite bookmark<CR> | |
" キーマッピング.register | |
noremap [Unite]g :<C-u>Unite -buffer-name=register register<CR> | |
" キーマッピング.mapping | |
nnoremap [Unite]p :<C-u>Unite mapping<CR> | |
" キーマッピング.message | |
nnoremap [Unite]i :<C-u>Unite output:message<CR> | |
" キーマッピング.yank | |
nnoremap [Unite]y :<C-u>Unite history/yank<CR> | |
nnoremap [unite]a :<C-u>UniteBookmarkAdd<CR> | |
" キーマッピング.開いている間 | |
" ref. http://www.karakaram.com/unite | |
autocmd FileType unite call s:unite_settings() | |
function! s:unite_settings() | |
" ウィンドウを分割して開く | |
nnoremap <silent> <buffer> <expr> <C-h> unite#do_action('split') | |
inoremap <silent> <buffer> <expr> <C-h> unite#do_action('split') | |
" ウィンドウを縦に分割して開く | |
nnoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit') | |
inoremap <silent> <buffer> <expr> <C-v> unite#do_action('vsplit') | |
" インサート→ノーマルモード | |
imap <buffer> jj <Plug>(unite_insert_leave) | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment