]> git.sthu.org Git - vimconf.git/blob - keymaps.vim
Add localvimrc plugin
[vimconf.git] / keymaps.vim
1 nnoremap <C-p> :Denite file/rec<cr>
2 nnoremap <space>/ :Denite grep:.<cr>
3 nnoremap <space>s :Denite buffer<cr>
4
5 nnoremap <C-space> pumvisible() ? "\<c-n>" : "\<tab>"
6
7 nnoremap <F2> :NERDTreeToggle<cr>
8 nnoremap <F3> :TagbarToggle<cr>
9 au Filetype gnuplot map <buffer> <F5> :call OpenIn("gnuplot -persist") <CR>
10
11 nmap <s-PageDown> :bn<CR>
12 nmap <s-PageUp> :bp<CR>
13
14 map <a-c> <plug>NERDCommenterToggle
15
16 imap <C-k> <Plug>(neosnippet_expand_or_jump)
17 smap <C-k> <Plug>(neosnippet_expand_or_jump)
18 xmap <C-k> <Plug>(neosnippet_expand_target)
19
20 au Filetype c,cpp,objc map <buffer> <F11> :vsplit<CR>:FSRight<CR>
21 au Filetype c,cpp,objc map <buffer> <S-F11> :FSHere<CR>
22 au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards()
23
24 au Filetype markdown map <buffer> <F5> :call RunMarkdown()<CR>
25
26 " Start interactive EasyAlign in visual mode (e.g. vipga)
27 vmap <Enter> <Plug>(EasyAlign)
28 " Start interactive EasyAlign for a motion/text object (e.g. gaip)
29 nmap ga <Plug>(EasyAlign)
30
31 if filereadable($HOME . '/.vim/keymaps-local.vim')
32 source ~/.vim/keymaps-local.vim
33 endif