1 nnoremap <C-p> :Denite file/rec<cr>
2 nnoremap <space>/ :Denite grep:.<cr>
3 nnoremap <space>s :Denite buffer<cr>
5 nnoremap <C-space> pumvisible() ? "\<c-n>" : "\<tab>"
7 nnoremap <F2> :NERDTreeToggle<cr>
8 nnoremap <F3> :TagbarToggle<cr>
9 au Filetype tex nmap <buffer> <F3> :VimtexTocToggle<CR>
10 au Filetype tex nmap <buffer> <F4> :VimtexLabelsToggle<CR>
11 au Filetype gnuplot map <buffer> <F5> :call OpenIn("gnuplot -persist") <CR>
13 nmap <s-PageDown> :bn<CR>
14 nmap <s-PageUp> :bp<CR>
16 map <a-c> <plug>NERDCommenterToggle
18 imap <C-k> <Plug>(neosnippet_expand_or_jump)
19 smap <C-k> <Plug>(neosnippet_expand_or_jump)
20 xmap <C-k> <Plug>(neosnippet_expand_target)
22 au Filetype c,cpp,objc map <buffer> <F11> :vsplit<CR>:FSRight<CR>
23 au Filetype c,cpp,objc map <buffer> <S-F11> :FSHere<CR>
24 au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards()
26 au Filetype html,xml imap <buffer> <C-_> <C-X>/
28 " Start interactive EasyAlign in visual mode (e.g. vipga)
29 vmap <Enter> <Plug>(EasyAlign)
30 " Start interactive EasyAlign for a motion/text object (e.g. gaip)
31 nmap ga <Plug>(EasyAlign)
33 if filereadable($HOME . '/.vim/keymaps-local.vim')
34 source ~/.vim/keymaps-local.vim