Compare commits
5 Commits
74a6e2adfc
...
8bc72ea0da
Author | SHA1 | Date | |
---|---|---|---|
8bc72ea0da | |||
bfa8b645e2 | |||
ee2fb888d0 | |||
782d4307d9 | |||
e9fc021cd1 |
@ -14,7 +14,89 @@
|
|||||||
"basic.to_if_held_down_threshold_milliseconds": 500,
|
"basic.to_if_held_down_threshold_milliseconds": 500,
|
||||||
"mouse_motion_to_scroll.speed": 100
|
"mouse_motion_to_scroll.speed": 100
|
||||||
},
|
},
|
||||||
"rules": []
|
"rules": [
|
||||||
|
{
|
||||||
|
"description": "Change right_command+hjkl to arrow keys",
|
||||||
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "h",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"right_command"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"any"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "left_arrow"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "j",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"right_command"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"any"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "down_arrow"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "k",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"right_command"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"any"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "up_arrow"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "l",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": [
|
||||||
|
"right_command"
|
||||||
|
],
|
||||||
|
"optional": [
|
||||||
|
"any"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [
|
||||||
|
{
|
||||||
|
"key_code": "right_arrow"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"type": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"devices": [
|
"devices": [
|
||||||
{
|
{
|
||||||
@ -116,7 +198,7 @@
|
|||||||
},
|
},
|
||||||
"to": [
|
"to": [
|
||||||
{
|
{
|
||||||
"key_code": "left_command"
|
"key_code": "right_command"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -177,6 +177,8 @@ set statusline+=\ [%c]
|
|||||||
" Keyboard shortcuts
|
" Keyboard shortcuts
|
||||||
""""""""""""""""""""""""""""""""
|
""""""""""""""""""""""""""""""""
|
||||||
let mapleader = "\<Space>"
|
let mapleader = "\<Space>"
|
||||||
|
nmap <leader>a :CocAction<CR>
|
||||||
|
nmap <leader>2 :w!<cr>
|
||||||
|
|
||||||
" Go to definition
|
" Go to definition
|
||||||
nmap <leader>gd <Plug>(coc-definition)
|
nmap <leader>gd <Plug>(coc-definition)
|
||||||
@ -252,8 +254,12 @@ vnoremap F <C-v>$A
|
|||||||
vnoremap f <C-v>0I
|
vnoremap f <C-v>0I
|
||||||
|
|
||||||
" Better management of tabs
|
" Better management of tabs
|
||||||
nnoremap K :tabprevious<CR>
|
nnoremap <Leader>7 :tabprevious<CR>
|
||||||
nnoremap J :tabnext<CR>
|
nnoremap <Leader>8 :tabnext<CR>
|
||||||
|
|
||||||
|
" Better moving
|
||||||
|
nnoremap J }
|
||||||
|
nnoremap K {
|
||||||
|
|
||||||
" Copy into system
|
" Copy into system
|
||||||
noremap <Leader>y "*y
|
noremap <Leader>y "*y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user