Moved VIM plugin config to a separate file. IdeaVimrc & NVIM refers to the new file

This commit is contained in:
Pratik Tripathy
2024-03-09 22:13:04 +05:30
parent 617a620e70
commit fa80a208dd
5 changed files with 19 additions and 0 deletions

View File

@@ -27,6 +27,7 @@
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
source ~/.vim/configs.vim
source ~/.vim/key_maps.vim
source ~/.vim/plugin_config.vim
" Because :noh does not work in Jetbrains
nnoremap <esc> <esc>

View File

@@ -1,3 +1,4 @@
require("config.keymaps")
require("config.options")
require("config.autocmd")
require("config.vim_plugin_config")

View File

@@ -0,0 +1,5 @@
-- Load Plugin configs from VIM
local vim_plugin_config = os.getenv("HOME") .. "/.vim/plugin_config.vim"
if vim.loop.fs_stat(vim_plugin_config) then
vim.cmd("source " .. vim_plugin_config)
end

View File

@@ -0,0 +1,9 @@
" NERDTree Plugin configurations
let g:NERDTreeShowHidden = 1
let g:NERDTreeWinSize = 25
" Quickscope
" Trigger a highlight in the appropriate direction when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
let g:qs_accepted_chars = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']

View File

@@ -4,6 +4,9 @@ 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