mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
feat(vim): Better IdeaVIM and VIM configs
- IdeaVIM: List all JB and IdeaVIM shortcut mappings explicitly - IdeaVIM: More plugins - IdeaVIM: Plugins reconfigured to be as similiar to NeoVIM as possible - IdeaVIM: Keymapping updated to be as similar to NeoVIM as possible - JetBrains: Added JB keymap copies to repo - VIM: Plugin specific keymaps moved to plugin_config.vim - VIM: New plugins: vim-exchange, quickscope, vim-visual-multi
This commit is contained in:
@@ -46,7 +46,7 @@ set shiftwidth=4 tabstop=4 softtabstop=4 expandtab smarttab
|
||||
set autoindent smartindent breakindent " Proper indentation
|
||||
|
||||
" Enable searching as you type, rather than waiting till you press enter. Highlight search pattern. Intelligently handle cases in search.
|
||||
set incsearch hlsearch ignorecase smartcase
|
||||
set incsearch hlsearch ignorecase smartcase wrapscan
|
||||
" Comments in Grey color and italic
|
||||
hi Comment guifg=#5C6370 ctermfg=50 cterm=italic
|
||||
|
||||
|
||||
@@ -119,14 +119,5 @@ nnoremap <leader>/ :nohlsearch<CR>:diffupdate<CR>:normal! <C-L><CR>
|
||||
" Changes the pwd to the opened file's directory
|
||||
nnoremap <leader>cd :lcd %:h<CR>
|
||||
|
||||
" Map easymotion Plugin to <Leader>j
|
||||
nnoremap <leader>j <Plug>(easymotion-s)
|
||||
|
||||
" Show the undo tree
|
||||
nnoremap <leader>u :UndotreeToggle<CR>
|
||||
|
||||
" Fugitive
|
||||
nnoremap <leader>gg :0G<cr>
|
||||
|
||||
" Close Tab
|
||||
nnoremap <leader>xt :tabclose
|
||||
|
||||
@@ -2,6 +2,15 @@
|
||||
let g:NERDTreeShowHidden = 1
|
||||
let g:NERDTreeWinSize = 25
|
||||
|
||||
" Map easymotion Plugin to <Leader>j
|
||||
nnoremap <leader>j <Plug>(easymotion-s)
|
||||
|
||||
" Show the undo tree
|
||||
nnoremap <leader>u :UndotreeToggle<CR>
|
||||
|
||||
" Fugitive
|
||||
nnoremap <leader>gg :0G<cr>
|
||||
|
||||
" Quickscope
|
||||
" Trigger a highlight in the appropriate direction when pressing these keys:
|
||||
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
|
||||
|
||||
@@ -1,24 +1,28 @@
|
||||
call plug#begin('~/.vim/plugged')
|
||||
Plug 'tpope/vim-fugitive' "Fugitive Vim GitHub Wrapper
|
||||
Plug 'tpope/vim-surround' "Surround Plugin
|
||||
Plug 'tpope/vim-repeat' "Repeat for the surround plugin
|
||||
Plug 'tpope/vim-commentary' "Comments Plugin
|
||||
Plug 'tpope/vim-sensible' "Sensible options
|
||||
Plug 'rstacruz/vim-closer' "Auto-close brackets
|
||||
Plug 'machakann/vim-highlightedyank' "Highlight Yank
|
||||
Plug 'dbakker/vim-paragraph-motion' "Paragraph Motion
|
||||
Plug 'airblade/vim-gitgutter' "Git in the left-side gutter
|
||||
Plug 'tpope/vim-fugitive' "Fugitive Vim GitHub Wrapper
|
||||
Plug 'tpope/vim-surround' "Surround Plugin
|
||||
Plug 'tpope/vim-repeat' "Repeat for the surround plugin
|
||||
Plug 'tpope/vim-commentary' "Comments Plugin
|
||||
Plug 'tpope/vim-sensible' "Sensible options
|
||||
Plug 'rstacruz/vim-closer' "Auto-close brackets
|
||||
Plug 'machakann/vim-highlightedyank' "Highlight Yank
|
||||
Plug 'dbakker/vim-paragraph-motion' "Paragraph Motion
|
||||
Plug 'airblade/vim-gitgutter' "Git in the left-side gutter
|
||||
Plug 'junegunn/rainbow_parentheses.vim' "Rainbow parenthesis
|
||||
Plug 'easymotion/vim-easymotion' "Easy Motion to quickly jump across the buffer
|
||||
Plug 'preservim/nerdtree' "Nerd Tree
|
||||
Plug 'tpope/vim-obsession' "Obsessions -> saves sessions
|
||||
Plug 'christoomey/vim-tmux-navigator' "Syncs with Tmux pane navigation keymaps
|
||||
Plug 'mbbill/undotree' "Show the undo tree
|
||||
Plug 'easymotion/vim-easymotion' "Easy Motion to quickly jump across the buffer
|
||||
Plug 'preservim/nerdtree' "Nerd Tree
|
||||
Plug 'tpope/vim-obsession' "Obsessions -> saves sessions
|
||||
Plug 'christoomey/vim-tmux-navigator' "Syncs with Tmux pane navigation keymaps
|
||||
Plug 'mbbill/undotree' "Show the undo tree
|
||||
Plug 'tommcdo/vim-exchange' " cx{motion} 2 times. cxc <- cancel exchange
|
||||
Plug 'michaeljsmith/vim-indent-object' " ai, ii, aI, iI <- select indent
|
||||
Plug 'unblevable/quick-scope' " f, t <- Highlight unique letter on the line
|
||||
Plug 'mg979/vim-visual-multi' " <Ctrl+n>
|
||||
|
||||
"------------Style Plugins------------"
|
||||
" Status Styles
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' } "ColorScheme - Challenger-deep
|
||||
Plug 'cocopon/iceberg.vim' "Color Scheme - Iceberg
|
||||
Plug 'tyrannicaltoucan/vim-deep-space' "Color Scheme - Deep-space
|
||||
Plug 'challenger-deep-theme/vim', { 'as': 'challenger-deep' }
|
||||
Plug 'cocopon/iceberg.vim'
|
||||
Plug 'tyrannicaltoucan/vim-deep-space'
|
||||
call plug#end()
|
||||
|
||||
|
||||
@@ -4,15 +4,15 @@ let $VIMRC="$VIMDIR/vimrc"
|
||||
" Load plugins
|
||||
source $VIMDIR/plugins.vim
|
||||
|
||||
" Load plugin configurations
|
||||
source $VIMDIR/plugin_config.vim
|
||||
|
||||
" Load VIM Configurations
|
||||
source $VIMDIR/configs.vim
|
||||
|
||||
" Load Keybindings
|
||||
source $VIMDIR/key_maps.vim
|
||||
|
||||
" Load plugin configurations
|
||||
source $VIMDIR/plugin_config.vim
|
||||
|
||||
" Load Autocommand
|
||||
source $VIMDIR/autocommands.vim
|
||||
|
||||
|
||||
Reference in New Issue
Block a user