~yerinalexey/dotfiles

ref: b75055cfb2820b41efd348481e49a2f487355931 dotfiles/nvim/mappings.vim -rw-r--r-- 519 bytes
b75055cf — Alexey Yerin bottom: fix indents 1 year, 2 months ago
                                                                                
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
" Key mappings

" Unhighlight search results
nmap <silent> <A-u> <Cmd>noh<cr>

" Copy to system clipboard
nmap <A-y> "+y
xmap <A-y> "+y

" Paste from system clipboard
nmap <A-p> "+p
imap <A-p> <Cmd>norm "+P<cr><right>
xmap <A-p> <Cmd>norm "+P<cr><right>

" Move between splits using Ctrl+(h,j,k,l)
" instead of Ctrl+W (h,j,k,l)
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l

" Close split using Ctrl+q
nnoremap <C-q> <C-w>q

" Toggle goyo
nmap <silent> <leader>G <Cmd>Goyo<cr>