]> git.sthu.org Git - vimconf.git/blob - keymaps.vim
plugin: Add vim-mail
[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
23 au Filetype markdown map <buffer> <F5> :call RunMarkdown()<CR>
24
25 " Start interactive EasyAlign in visual mode (e.g. vipga)
26 vmap <Enter> <Plug>(EasyAlign)
27 " Start interactive EasyAlign for a motion/text object (e.g. gaip)
28 nmap ga <Plug>(EasyAlign)
29
30 if filereadable($HOME . '/.vim/keymaps-local.vim')
31 source ~/.vim/keymaps-local.vim
32 endif