dotvim/.vim/keymaps.vim

65 lines
1.3 KiB
VimL
Raw Normal View History

2016-03-04 05:04:52 +00:00
let mapleader = "\<Space>"
" core
2016-03-05 19:30:40 +00:00
nnoremap <silent><Leader><Leader> :b#<Cr>
nnoremap <silent><Esc><Esc> :nohlsearch<Cr>
2016-03-04 05:00:21 +00:00
nnoremap Q <Nop>
2016-03-29 23:24:23 +00:00
nnoremap Y y$
2016-10-30 01:10:30 +00:00
nnoremap <silent><Leader>m :make<Cr>
2016-03-04 22:18:15 +00:00
noremap <C-c> <Esc>
2016-12-17 22:19:32 +00:00
nnoremap <Leader>w :w<Cr>
2016-03-04 22:18:15 +00:00
2016-03-04 05:12:14 +00:00
vnoremap <Leader>y "+y
vnoremap <Leader>d "+d
vnoremap <Leader>p "+p
vnoremap <Leader>P "+P
2016-03-04 22:18:15 +00:00
nnoremap <Leader>y "+y
nnoremap <Leader>d "+d
nnoremap <Leader>p "+p
nnoremap <Leader>P "+P
nnoremap <Leader>yy "+yy
nnoremap <Leader>d "+dd
2016-03-05 19:30:40 +00:00
nnoremap <A-k> <C-W>-
nnoremap <A-j> <C-W>+
nnoremap <A-h> <C-W><
nnoremap <A-l> <C-W>>
2016-03-29 17:27:04 +00:00
nnoremap <A-=> <C-W><C-=>
2016-03-05 19:30:40 +00:00
2016-03-29 17:27:04 +00:00
nnoremap <C-j> <C-W>j
nnoremap <C-k> <C-W>k
nnoremap <C-h> <C-W>h
nnoremap <C-l> <C-W>l
nnoremap <C-o> :only<Cr>
2016-03-05 19:30:40 +00:00
nnoremap j gj
nnoremap k gk
2017-01-17 18:46:25 +00:00
" perforce checkout
2017-03-01 19:28:10 +00:00
nnoremap <silent><Leader>e :silent !p4 edit % <bar> set noro<Cr>
2017-01-17 18:46:25 +00:00
" vim-argwrap
2016-03-05 20:05:54 +00:00
nnoremap <silent><Leader>a :ArgWrap<Cr>
2016-04-11 21:00:06 +00:00
" vim-bbye
nnoremap <silent><Bs> :Bdelete<Cr>
2016-03-03 20:38:39 +00:00
" vim-bufonly
2016-03-05 20:05:54 +00:00
nnoremap <silent><S-Bs> :BufOnly<Cr>
2016-03-03 20:38:39 +00:00
" vim-easy-align
2015-04-16 02:48:12 +00:00
nmap ga <Plug>(EasyAlign)
2016-03-04 05:00:21 +00:00
vmap <Cr> <Plug>(EasyAlign)
2015-02-26 12:02:35 +00:00
" vim-go
2016-03-04 05:12:14 +00:00
auto FileType go nmap <Leader>b <Plug>(go-build)
auto FileType go nmap <Leader>c <Plug>(go-coverage)
auto FileType go nmap <Leader>r <Plug>(go-run)
auto FileType go nmap <Leader>t <Plug>(go-test)
2015-04-28 04:45:07 +00:00
" vim-fswitch
2016-03-04 05:12:14 +00:00
noremap <silent> <Leader>fs :FSHere<Cr>
2015-04-28 04:45:07 +00:00
" vim-latex
nnoremap <C-i> <Plug>IMAP_JumpForward