-
Notifications
You must be signed in to change notification settings - Fork 0
/
bindings.vim
29 lines (28 loc) · 948 Bytes
/
bindings.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
command! Q :qa!
nnoremap <F7> :match StatusLineTerm /<C-R><C-W>/<CR>
nnoremap <silent> yf :let @+=join([expand('%'), line(".")], ':')<CR>
nnoremap <C-Up> :resize -5<CR>
nnoremap <C-Down> :resize +5<CR>
nnoremap <C-Right> :vertical resize +5<CR>
nnoremap <C-Left> :vertical resize -5<CR>
nnoremap <C-l> <c-w>l
nnoremap <C-h> <c-w>h
nnoremap <C-k> <c-w>k
nnoremap <C-j> <c-w>j
nnoremap <Up> <C-w>k
nnoremap <Down> <C-w>j
nnoremap <Left> <C-w>h
nnoremap <Right> <C-w>l
nnoremap <c-q> :bd!<cr>
vnoremap <c-y> "+y
nnoremap <c-y> :let @+ = expand("%")<cr>
nnoremap <c-c> <c-w>c
nnoremap <c-\> :call Touch()<CR>
nnoremap <silent>gb :bprevious<CR>
inoremap <expr> <C-j> pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <C-k> pumvisible() ? "\<C-p>" : "\<S-Tab>"
noremap <silent><C-S> :update<CR>
vnoremap <silent><C-S> <C-C>:update<CR><Esc>
inoremap <silent><C-S> <C-O>:update<CR><Esc>
nnoremap <S-Tab> :bn<CR>
command! Q :qa!