Skip to content

Commit

Permalink
Added Shift Arrow, Ctrl C and Ctrl V
Browse files Browse the repository at this point in the history
  • Loading branch information
josethz00 committed Dec 28, 2020
1 parent dcd825f commit 2e6aba7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,25 @@ noremap <silent> <expr> k (v:count == 0 ? 'gk' : 'k')
nnoremap <C-s> :w<CR>
nnoremap <C-Q> :wq<CR>
" shift+arrow selection
nmap <S-Up> v<Up>
nmap <S-Down> v<Down>
nmap <S-Left> v<Left>
nmap <S-Right> v<Right>
vmap <S-Up> <Up>
vmap <S-Down> <Down>
vmap <S-Left> <Left>
vmap <S-Right> <Right>
imap <S-Up> <Esc>v<Up>
imap <S-Down> <Esc>v<Down>
imap <S-Left> <Esc>v<Left>
imap <S-Right> <Esc>v<Right>
vmap <C-c> y<Esc>i
vmap <C-x> d<Esc>i
map <C-v> pi
imap <C-v> <Esc>pi
set cindent
colorscheme codedark

Expand Down

0 comments on commit 2e6aba7

Please sign in to comment.