1
0
mirror of https://github.com/chylex/dotfiles.git synced 2024-11-25 14:42:46 +01:00

Compare commits

..

4 Commits

2 changed files with 15 additions and 10 deletions

View File

@ -65,6 +65,7 @@ Plug 'vim-highlightedyank'
Plug 'vim-indent-object' Plug 'vim-indent-object'
Plug 'vim-matchit' Plug 'vim-matchit'
Plug 'vim-multiple-cursors' Plug 'vim-multiple-cursors'
Plug 'vim-paragraph-motion'
Plug 'vim-surround' Plug 'vim-surround'
Plug 'vim-textobj-entire' Plug 'vim-textobj-entire'
@ -97,6 +98,14 @@ xnoremap H ]b
noremap <A-b> ge noremap <A-b> ge
noremap <A-S-b> gE noremap <A-S-b> gE
" Navigate paragraphs at indentation level
map { <Plug>(ParagraphPrevMotion)$
map } <Plug>(ParagraphNextMotion)$
" Navigate inspection highlights
nmap ( :raction GotoPreviousError<CR>
nmap ) :raction GotoNextError<CR>
" Navigate editor tabs " Navigate editor tabs
noremap <A-h> gT noremap <A-h> gT
noremap <A-l> gt noremap <A-l> gt
@ -141,12 +150,6 @@ xnoremap P p
nmap <A-p> <Action>(ParameterInfo) nmap <A-p> <Action>(ParameterInfo)
imap <A-p> <Action>(ParameterInfo) imap <A-p> <Action>(ParameterInfo)
" Toggle comments
nmap <C--> <Action>(CommentByLineComment)
vmap <C--> <Action>(CommentByBlockComment)
nmap <D--> <C-->
vmap <D--> <C-->
" Navigate back/forward " Navigate back/forward
nmap <BS> <Action>(Back) nmap <BS> <Action>(Back)
nmap <S-BS> <Action>(Forward) nmap <S-BS> <Action>(Forward)
@ -190,10 +193,6 @@ nnoremap Z z
" Repurpose 'Enter' for statement completion (requires a custom version of IdeaVIM) " Repurpose 'Enter' for statement completion (requires a custom version of IdeaVIM)
nmap <Enter> <Action>(EditorCompleteStatement) nmap <Enter> <Action>(EditorCompleteStatement)
" Repurpose special characters for navigation
nmap ( :raction GotoPreviousError<CR>
nmap ) :raction GotoNextError<CR>
" Repurpose 'g' for navigation (:raction requires a custom version of IdeaVIM) " Repurpose 'g' for navigation (:raction requires a custom version of IdeaVIM)
nmap gb :raction GotoNextBookmark<CR> nmap gb :raction GotoNextBookmark<CR>
nmap gB :raction GotoPreviousBookmark<CR> nmap gB :raction GotoPreviousBookmark<CR>
@ -241,6 +240,11 @@ map zht <Action>(TypeHierarchy)
map zhm <Action>(MethodHierarchy) map zhm <Action>(MethodHierarchy)
map zhc <Action>(CallHierarchy) map zhc <Action>(CallHierarchy)
nmap zhl <Action>(LocalHistory.ShowHistory)
xmap zhl <Action>(LocalHistory.ShowSelectionHistory)
nmap zhg <Action>(Vcs.ShowTabbedFileHistory)
xmap zhg <Action>(Vcs.ShowHistoryForBlock)
map zm <Action>(ShowBookmarks) map zm <Action>(ShowBookmarks)
map zp <Action>(QuickImplementations) map zp <Action>(QuickImplementations)
map zP <Action>(QuickTypeDefinition) map zP <Action>(QuickTypeDefinition)

View File

@ -12,6 +12,7 @@
- { name: "highlighted-yank" , repo: "https://github.com/machakann/vim-highlightedyank.git" } - { name: "highlighted-yank" , repo: "https://github.com/machakann/vim-highlightedyank.git" }
- { name: "indent-object" , repo: "https://github.com/michaeljsmith/vim-indent-object.git" } - { name: "indent-object" , repo: "https://github.com/michaeljsmith/vim-indent-object.git" }
- { name: "lightline" , repo: "https://github.com/itchyny/lightline.vim.git" } - { name: "lightline" , repo: "https://github.com/itchyny/lightline.vim.git" }
- { name: "paragraph-motion" , repo: "https://github.com/dbakker/vim-paragraph-motion.git" }
- { name: "rainbow" , repo: "https://github.com/luochen1990/rainbow.git" } - { name: "rainbow" , repo: "https://github.com/luochen1990/rainbow.git" }
- { name: "repeat" , repo: "https://github.com/tpope/vim-repeat.git" } - { name: "repeat" , repo: "https://github.com/tpope/vim-repeat.git" }
- { name: "sleuth" , repo: "https://github.com/tpope/vim-sleuth.git" } - { name: "sleuth" , repo: "https://github.com/tpope/vim-sleuth.git" }