mirror of
https://github.com/chylex/dotfiles.git
synced 2026-10-16 23:33:56 +02:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3533cf32ce
|
||
|
|
2fb4f5e973
|
||
|
|
ee9d1396ea
|
||
|
|
2c395cfcf7
|
||
|
|
09cfd18b80
|
+36
-22
@@ -1,3 +1,6 @@
|
|||||||
|
" Some of these mapping require a custom build of IdeaVIM: https://github.com/chylex/IntelliJ-IdeaVim
|
||||||
|
" One of the changes is that 'map' ignores Select mode to keep mappings simpler.
|
||||||
|
|
||||||
set clipboard-=ideaput
|
set clipboard-=ideaput
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set ignorecase
|
set ignorecase
|
||||||
@@ -132,17 +135,22 @@ noremap § `
|
|||||||
noremap §§ ``
|
noremap §§ ``
|
||||||
nnoremap m§ m
|
nnoremap m§ m
|
||||||
|
|
||||||
sunmap ů
|
|
||||||
sunmap §
|
|
||||||
|
|
||||||
" Enter visual block mode
|
" Enter visual block mode
|
||||||
map <A-v> <C-v>
|
map <A-v> <C-v>
|
||||||
|
|
||||||
|
" Invert soft wrap navigation bindings
|
||||||
|
noremap 0 g0
|
||||||
|
noremap g0 0
|
||||||
|
|
||||||
|
noremap ^ g^
|
||||||
|
noremap g^ ^
|
||||||
|
|
||||||
|
noremap $ g$
|
||||||
|
noremap g$ $
|
||||||
|
|
||||||
" Navigate camel humps
|
" Navigate camel humps
|
||||||
noremap L [w
|
noremap L [w
|
||||||
noremap H [b
|
noremap H [b
|
||||||
nnoremap L [w
|
|
||||||
nnoremap H [b
|
|
||||||
|
|
||||||
" Navigate to end of previous word
|
" Navigate to end of previous word
|
||||||
noremap <A-e> ge
|
noremap <A-e> ge
|
||||||
@@ -155,10 +163,10 @@ noremap g{ [{
|
|||||||
noremap g} ]}
|
noremap g} ]}
|
||||||
|
|
||||||
" Edit from cursor to start/end of parenthesized block
|
" Edit from cursor to start/end of parenthesized block
|
||||||
nnoremap c) c])
|
onoremap ) ])
|
||||||
nnoremap d) d])
|
onoremap ( [(
|
||||||
nnoremap c( c[((
|
onoremap } ]}
|
||||||
nnoremap d( c[((<Esc>l
|
onoremap { [{
|
||||||
|
|
||||||
" Create lines
|
" Create lines
|
||||||
nnoremap go o<Esc>$
|
nnoremap go o<Esc>$
|
||||||
@@ -166,12 +174,9 @@ nnoremap gO O<Esc>$
|
|||||||
nnoremap g<CR> i<CR><Left><Esc>
|
nnoremap g<CR> i<CR><Left><Esc>
|
||||||
|
|
||||||
" Edit current line
|
" Edit current line
|
||||||
nnoremap C cc
|
noremap C cc
|
||||||
xnoremap C cc
|
noremap D dd
|
||||||
nnoremap D dd
|
noremap < <<
|
||||||
xnoremap D dd
|
|
||||||
nnoremap < <<
|
|
||||||
nnoremap > >>
|
|
||||||
|
|
||||||
" Navigate with selection
|
" Navigate with selection
|
||||||
nmap <S-Up> v<Up>
|
nmap <S-Up> v<Up>
|
||||||
@@ -197,9 +202,6 @@ xnoremap = =gv
|
|||||||
map <A-m> <Action>(EditorSelectWord)
|
map <A-m> <Action>(EditorSelectWord)
|
||||||
map <A-S-m> <Action>(EditorUnSelectWord)
|
map <A-S-m> <Action>(EditorUnSelectWord)
|
||||||
|
|
||||||
" Turn capital letters into opposite actions
|
|
||||||
" nnoremap U :redo<CR> " Handled by custom version of IdeaVIM
|
|
||||||
|
|
||||||
" Reselect pasted text
|
" Reselect pasted text
|
||||||
nnoremap gp `[v`]
|
nnoremap gp `[v`]
|
||||||
|
|
||||||
@@ -207,6 +209,13 @@ nnoremap gp `[v`]
|
|||||||
xnoremap p P
|
xnoremap p P
|
||||||
xnoremap P p
|
xnoremap P p
|
||||||
|
|
||||||
|
" Fix undo/redo
|
||||||
|
nmap u <Action>($Undo)
|
||||||
|
xmap u <Action>($Undo)
|
||||||
|
|
||||||
|
nmap U <Action>($Redo)
|
||||||
|
xmap U <Action>($Redo)
|
||||||
|
|
||||||
" Clear search highlights
|
" Clear search highlights
|
||||||
nnoremap <Esc> :nohlsearch<Return><Esc>
|
nnoremap <Esc> :nohlsearch<Return><Esc>
|
||||||
|
|
||||||
@@ -224,8 +233,10 @@ map <BS> <Action>(Back)
|
|||||||
map <S-BS> <Action>(Forward)
|
map <S-BS> <Action>(Forward)
|
||||||
|
|
||||||
" Navigate inspection highlights
|
" Navigate inspection highlights
|
||||||
map ( <Action>(GotoPreviousError)
|
nmap ( <Action>(GotoPreviousError)
|
||||||
map ) <Action>(GotoNextError)
|
xmap ( <Action>(GotoPreviousError)
|
||||||
|
nmap ) <Action>(GotoNextError)
|
||||||
|
xmap ) <Action>(GotoNextError)
|
||||||
|
|
||||||
map <C-A-S-s> <Action>(KM.GotoPreviousErrorInOtherMode)
|
map <C-A-S-s> <Action>(KM.GotoPreviousErrorInOtherMode)
|
||||||
map <D-S-s> <Action>(KM.GotoPreviousErrorInOtherMode)
|
map <D-S-s> <Action>(KM.GotoPreviousErrorInOtherMode)
|
||||||
@@ -237,8 +248,10 @@ map [ <Action>(MethodUp)
|
|||||||
map ] <Action>(MethodDown)
|
map ] <Action>(MethodDown)
|
||||||
|
|
||||||
" Navigate paragraphs at indentation
|
" Navigate paragraphs at indentation
|
||||||
map { <Plug>(ParagraphPrevMotion)$
|
nmap { <Plug>(ParagraphPrevMotion)$
|
||||||
map } <Plug>(ParagraphNextMotion)$
|
xmap { <Plug>(ParagraphPrevMotion)$
|
||||||
|
nmap } <Plug>(ParagraphNextMotion)$
|
||||||
|
xmap } <Plug>(ParagraphNextMotion)$
|
||||||
|
|
||||||
" Move statement/element
|
" Move statement/element
|
||||||
map <A-S-h> <Action>(MoveElementLeft)
|
map <A-S-h> <Action>(MoveElementLeft)
|
||||||
@@ -334,6 +347,7 @@ map zr <Action>(RunToCursor)
|
|||||||
map zR <Action>(ForceRunToCursor)
|
map zR <Action>(ForceRunToCursor)
|
||||||
map zs <Action>(osmedile.intellij.stringmanip.PopupChoiceAction)
|
map zs <Action>(osmedile.intellij.stringmanip.PopupChoiceAction)
|
||||||
map zt <Action>(ExpressionTypeInfo)
|
map zt <Action>(ExpressionTypeInfo)
|
||||||
|
map zw <Action>(EditorToggleUseSoftWraps)
|
||||||
map zx <Action>(EvaluateExpression)
|
map zx <Action>(EvaluateExpression)
|
||||||
|
|
||||||
map zht <Action>(TypeHierarchy)
|
map zht <Action>(TypeHierarchy)
|
||||||
|
|||||||
Reference in New Issue
Block a user