63 |
62 |
64 call plug#end() |
63 call plug#end() |
65 " }}} |
64 " }}} |
66 |
65 |
67 " Key maps {{{ |
66 " Key maps {{{ |
68 nnoremap <silent> <F1> :Unite buffer<CR> |
|
69 nnoremap <silent> <F2> :VimFilerExplorer<CR> |
67 nnoremap <silent> <F2> :VimFilerExplorer<CR> |
70 noremap <silent> <F4> :noh<CR> |
68 noremap <silent> <F4> :noh<CR> |
71 nnoremap <silent> <F5> :GundoToggle<CR> |
69 nnoremap <silent> <F5> :GundoToggle<CR> |
72 nnoremap <silent> <F8> :TagbarToggle<CR> |
70 nnoremap <silent> <F8> :TagbarToggle<CR> |
73 |
71 |
74 nnoremap <leader>us :Unite -quick-match session<CR> |
72 nnoremap <leader>ub :Unite buffer<CR> |
|
73 nnoremap <leader>us :Unite session<CR> |
75 nnoremap <leader>uf :Unite -start-insert file_rec/async:!<CR> |
74 nnoremap <leader>uf :Unite -start-insert file_rec/async:!<CR> |
76 |
|
77 " stop opening help by mistake |
|
78 inoremap <F1> <ESC> |
|
79 |
75 |
80 " let F4, :noh work as-is in insert mode |
76 " let F4, :noh work as-is in insert mode |
81 imap <F4> <C-O><F4> |
77 imap <F4> <C-O><F4> |
82 |
78 |
83 " chdir to the directory of the open buffer |
79 " chdir to the directory of the open buffer |
111 |
107 |
112 " use Ag for a recursive * |
108 " use Ag for a recursive * |
113 nnoremap g* :call ag#Ag('grep', '--literal ' . shellescape(expand("<cword>")))<CR> |
109 nnoremap g* :call ag#Ag('grep', '--literal ' . shellescape(expand("<cword>")))<CR> |
114 |
110 |
115 " K: doc, gKK: doc current filename |
111 " K: doc, gKK: doc current filename |
116 nnoremap K :call ViewDoc('doc', expand('<cword>'))<CR> |
|
117 nnoremap gKK :call ViewDoc('doc', expand('%:p'))<CR> |
112 nnoremap gKK :call ViewDoc('doc', expand('%:p'))<CR> |
118 |
113 |
119 " Tabular shortcuts |
114 " Tabular shortcuts |
120 noremap <leader>ta :Tabularize first_arrow<CR> |
115 noremap <leader>ta :Tabularize first_arrow<CR> |
121 noremap <leader>te :Tabularize first_eq<CR> |
116 noremap <leader>te :Tabularize first_eq<CR> |