-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnvimginit.vim
46 lines (42 loc) · 1.34 KB
/
nvimginit.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
echom "run nvimginit"
nnoremap <D-1> 1gt
inoremap <D-1> <esc>1gt
nnoremap <D-2> 2gt
inoremap <D-2> <esc>2gt
nnoremap <D-3> 3gt
inoremap <D-3> <esc>3gt
nnoremap <D-4> 4gt
inoremap <D-4> <esc>4gt
nnoremap <D-5> 5gt
inoremap <D-5> <esc>5gt
" move tabs
nnoremap <D-M-]> :tabm +1<cr>
nnoremap <D-M-[> :tabm -1<cr>
if has("gui_vimr")
map <M-S-*> <M-*>
elseif exists("g:neovide")
" 感觉作用不大,中文状态下输入的全角字符,还是得切换语言
" augroup ime_input
" autocmd!
" autocmd InsertLeave * let g:neovide_input_ime=v:false
" autocmd InsertEnter * let g:neovide_input_ime=v:true
" autocmd CmdlineEnter [/\?] let g:neovide_input_ime=v:false
" autocmd CmdlineLeave [/\?] let g:neovide_input_ime=v:true
" augroup END
map <M-S-8> <M-*>
nnoremap <D-n> <Cmd>!~/.cargo/bin/neovide<CR>
noremap <D-c> "*y
noremap <D-v> "*p
inoremap <D-v> <C-R><C-O>*
cnoremap <D-v> <C-R><C-R>*
tnoremap <D-v> <C-\><C-N>"*pi
noremap <D-w> <C-w>q
" not work...
" noremap <D-S-w> <Cmd>confirm quitall<CR>
else
" set guifont=Fira\ Code:h14
set guifont=FiraCode\ Nerd\ Font\ Mono:h14
" set guifont=Hack_Regular_Nerd_Font_Complete_Mono:h14
end
" autocmd! mine InsertLeave * set imdisable
" autocmd! mine InsertEnter * set noimdisable