mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
IdeaVim
- Fix: <ctrl-backspace> was leaving a "u" insert keymap was fixed - Added keymaps for moving line(s) up/down with <alt>j,k - Minor quote lints
This commit is contained in:
@@ -47,16 +47,16 @@ set clipboard^=unnamed,unnamedplus,ideaput " Copy to and from system clipboard
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" Enabled plugins
|
||||
set ideajoin
|
||||
Plug 'easymotion/vim-easymotion' " <leader>j or J [2 characters]
|
||||
Plug 'preservim/nerdtree' " <leader>e
|
||||
Plug 'tpope/vim-surround' " ys or cs or ds [motion]
|
||||
Plug 'tpope/vim-commentary' " gc [motion]
|
||||
Plug 'machakann/vim-highlightedyank'
|
||||
Plug 'dbakker/vim-paragraph-motion'
|
||||
Plug 'chrisbra/matchit'
|
||||
Plug 'tpope/vim-repeat' " Repeat for Surround
|
||||
" Plug 'terryma/vim-multiple-cursors' " mc (selects), mx (skips), mp (previous)
|
||||
set ideajoin quickscope
|
||||
Plug "easymotion/vim-easymotion" " <leader>j or J [2 characters]
|
||||
Plug "preservim/nerdtree" " <leader>e
|
||||
Plug "tpope/vim-surround" " ys or cs or ds [motion]
|
||||
Plug "tpope/vim-commentary" " gc [motion]
|
||||
Plug "machakann/vim-highlightedyank"
|
||||
Plug "dbakker/vim-paragraph-motion"
|
||||
Plug "chrisbra/matchit"
|
||||
Plug "tpope/vim-repeat" " Repeat for Surround
|
||||
Plug "vim-indent-object" " Select indent with ai, ii, aI, iI
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" Map <leader>d to start debug
|
||||
|
||||
@@ -94,8 +94,11 @@ inoremap <M-l> <Right>
|
||||
inoremap <M-j> <Down>
|
||||
inoremap <M-k> <Up>
|
||||
|
||||
" Ctrl+Backspace to add an undo-point and delete last word
|
||||
imap <C-BS> <C-W><C-g>u
|
||||
" Move Lines with Alt+j,k
|
||||
nnoremap <M-j> :m .+1<cr>==
|
||||
nnoremap <M-k> :m .-2<cr>==
|
||||
vnoremap <M-j> :m '>+1<cr>gv=gv
|
||||
vnoremap <M-k> :m '<-2<cr>gv=gv
|
||||
|
||||
" Insert mode: add undo points on "," & "." & ";"
|
||||
imap , ,<C-g>u
|
||||
|
||||
@@ -32,6 +32,7 @@ colorscheme deep-space
|
||||
" VIM SPECIFIC CONFIG
|
||||
"
|
||||
""""""""""""""""""""""""""""""""
|
||||
|
||||
" Move the .viminfo file inside .vim directory
|
||||
set viminfofile=$VIMDIR/viminfo
|
||||
|
||||
@@ -41,10 +42,11 @@ autocmd! bufwritepost $VIMRC source %
|
||||
" Save inside vim config directory
|
||||
set undodir=$VIMDIR/undo//
|
||||
|
||||
" Ctrl+Backspace to add an undo-point and delete last word
|
||||
" It's here cause ideavim messes it up
|
||||
imap <C-BS> <C-g>u<C-w>
|
||||
|
||||
" Map nerdtree to <Leader>e
|
||||
" Changes the pwd and opens the VCS root
|
||||
" Placed here because ideavim doesn't understand :tcd
|
||||
nnoremap <leader>e :tcd %:h<CR> :NERDTreeToggleVCS<CR>
|
||||
|
||||
" NERDTree Plugin configurations
|
||||
let g:NERDTreeShowHidden = 1
|
||||
let g:NERDTreeWinSize = 25
|
||||
|
||||
Reference in New Issue
Block a user