-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymap.vim
38 lines (30 loc) · 1013 Bytes
/
keymap.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
source ~/.config/nvim/disable_keymap.vim
" Control - O : find file with name."
nnoremap <A-o> <cmd>Telescope find_files<cr>
nnoremap <A-f> <cmd>Telescope live_grep<cr>
" Lspsaga
nnoremap ? :Lspsaga code_action<CR>
" Keymap for todo
nnoremap <A-c> :Telescope colorscheme<cr>
nnoremap ft :TodoTelescope <cr>
nnoremap tt i// TODO :<ESC>
noremap ; :
" Tab Map
noremap <A-1> 1gt
noremap <A-2> 2gt
noremap <A-3> 3gt
noremap <A-4> 4gt
noremap <A-5> 5gt
noremap <A-6> 6gt
noremap <A-7> 7gt
noremap <A-8> 8gt
noremap <A-9> 9gt
noremap <A-t> :tabnew<CR>
noremap <A-w> :tabclose<CR>
noremap <A-h> :tabprevious<CR>
noremap <A-l> :tabnext<CR>
autocmd TermEnter term://*toggleterm#*
\ tnoremap <silent><c-t> <Cmd>exe v:count1 . "ToggleTerm direction=float"<CR>
nnoremap <silent><A-Enter> <Cmd>exe v:count1 . "ToggleTerm direction=float"<CR>
inoremap <silent><A-Enter> <Esc><Cmd>exe v:count1 . "ToggleTerm direction=float"<CR>
tnoremap <silent><A-Enter> <Esc><Cmd>exe v:count1 . "ToggleTerm direction=float"<CR>