-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
49 lines (33 loc) · 1.44 KB
/
init.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
call plug#begin('~/.vim/plugged')
Plug 'leafgarland/typescript-vim'
Plug 'peitalin/vim-jsx-typescript'
Plug 'easymotion/vim-easymotion'
call plug#end()
" Easy motion
" Source from: https://github.com/johngrib/dotfiles/blob/ff80f0ea1b63f38e71d66a58af2b1068f0ba0ca9/nvim/vim-include/set-easymotion.vim
let g:EasyMotion_do_mapping = 0 " Disable default mappings
let g:EasyMotion_startofline = 0 " keep cursor column when JK motion
let g:EasyMotion_smartcase = 1
" 화면에 힌트키가 대문자로 표시되게 한다.
let g:EasyMotion_keys = ' ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890;'
let g:EasyMotion_use_upper = 1
nmap <c-s><c-s> <Plug>(easymotion-overwin-line)
" INSERT 모드에서 입력하면 해당 라인 내에서 좌우로 이동 가능
imap <c-s> <c-o><Plug>(easymotion-lineanywhere)
nmap <c-s>2 <Plug>(easymotion-overwin-f2)
nmap <c-s>l <Plug>(easymotion-lineforward)
vmap <c-s>l <Plug>(easymotion-lineforward)
nmap <c-s>j <Plug>(easymotion-j)
vmap <c-s>j <Plug>(easymotion-j)
nmap <c-s>k <Plug>(easymotion-k)
vmap <c-s>k <Plug>(easymotion-k)
nmap <c-s>h <Plug>(easymotion-linebackward)
vmap <c-s>h <Plug>(easymotion-linebackward)
nmap <c-s>a <Plug>(easymotion-jumptoanywhere)
vmap <c-s>a <Plug>(easymotion-jumptoanywhere)
nmap <c-s>w <Plug>(easymotion-overwin-w)
nmap <c-s>f <Plug>(easymotion-overwin-f)
nmap <c-s>/ <Plug>(easymotion-sn)
" Smartsign (type `3` and match `3`&`#`)
let g:EasyMotion_smartcase = 1
let g:EasyMotion_use_smartsign_us = 1