mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 18:52:43 +00:00
Initial Colemak Setup
This commit is contained in:
parent
ffcb1082b4
commit
0f456019d2
15 changed files with 611 additions and 210 deletions
|
|
@ -1,42 +1,24 @@
|
|||
" Put this in OBSIDIAN_VAULT/.obsidian.vimrc
|
||||
|
||||
" Colemak 方向键映射 (hnei)
|
||||
nnoremap k n
|
||||
nnoremap K N
|
||||
nnoremap j e
|
||||
vnoremap j e
|
||||
nnoremap l i
|
||||
nnoremap N J
|
||||
nnoremap E K
|
||||
nnoremap I L
|
||||
nnoremap J E
|
||||
vnoremap J E
|
||||
nnoremap L I
|
||||
nnoremap k n
|
||||
nnoremap K N
|
||||
nnoremap j e
|
||||
vnoremap j e
|
||||
nnoremap l i
|
||||
nnoremap N J
|
||||
nnoremap E K
|
||||
nnoremap I L
|
||||
nnoremap J E
|
||||
vnoremap J E
|
||||
nnoremap L I
|
||||
" 方向键映射
|
||||
noremap n <Down> " 向下
|
||||
noremap e <Up> " 向上
|
||||
noremap i <Right> " 向右
|
||||
|
||||
|
||||
""" Word wrap cursor movement
|
||||
nmap j gj
|
||||
nmap k gk
|
||||
|
||||
nmap Y y$ " Use Y to yank to the EOL
|
||||
|
||||
set clipboard=unnamed " Sync with System Clipboard
|
||||
|
||||
" Word wrap
|
||||
noremap n gj
|
||||
noremap e gk
|
||||
noremap i l
|
||||
|
||||
" Similar position to i
|
||||
noremap l i
|
||||
noremap L I
|
||||
" ne[k]st
|
||||
noremap k n
|
||||
noremap K N
|
||||
" [j]ump
|
||||
noremap j e
|
||||
noremap J E
|
||||
|
||||
" Y to yank to end of line
|
||||
noremap Y y$
|
||||
|
||||
""" Visual mode surrounding
|
||||
exmap addbold obcommand editor:toogle-bold
|
||||
exmap additalic obcommand editor:toogle-italic
|
||||
|
|
@ -61,7 +43,7 @@ exmap vsplit obcommand workspace:split-vertical
|
|||
exmap hsplit obcommand workspace:split-horizontal
|
||||
map <Space>| :vsplit<CR>
|
||||
map <Space>- :hsplit<CR>
|
||||
map <Space>bd
|
||||
" map <Space>bd
|
||||
|
||||
exmap chat obcommand obsidian-custom-frames:open-custom-frames-chatgpt
|
||||
map <Space>ai :chat<CR>
|
||||
|
|
@ -69,6 +51,9 @@ map <Space>ai :chat<CR>
|
|||
exmap omnisearch obcommand omnisearch:show-modal
|
||||
map <Space><Space> :omnisearch<CR>
|
||||
|
||||
exmap command-palette obcommand command-palette:open
|
||||
map <Space>: :command-palette<CR>
|
||||
|
||||
""" g-commands
|
||||
exmap tsource obcommand editor:toggle-source
|
||||
nnoremap gs :tsource<CR>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue