summaryrefslogtreecommitdiff
path: root/.config/vim/vimrc
diff options
context:
space:
mode:
authorCryxtalix <fgx8p9t@protonmail.com>2024-11-13 04:47:34 +0800
committerCryxtalix <fgx8p9t@protonmail.com>2024-11-13 04:47:34 +0800
commitc51520da989e5658d04c2dc7ca163f63d20b1a13 (patch)
tree909915ef75d9f436d5ebcd84e066c6244ab6a2a0 /.config/vim/vimrc
parentdc839e971ad6a724bc99bccc6dfaa11ee8a1eaa9 (diff)
Update
Diffstat (limited to '.config/vim/vimrc')
-rw-r--r--.config/vim/vimrc17
1 files changed, 15 insertions, 2 deletions
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
index 6903329..313b19e 100644
--- a/.config/vim/vimrc
+++ b/.config/vim/vimrc
@@ -25,5 +25,18 @@ nnoremap <Left> <NOP>
inoremap <Left> <NOP>
nnoremap <Right> <NOP>
inoremap <Right> <NOP>
-map <ScrollWheelUp> <NOP>
-map <ScrollWheelDown> <NOP>
+
+" Non hardcoded vimrc directory path
+let data_dir = fnamemodify(resolve(expand('<sfile>:p')), ':h')
+
+" Install vim-plug if not found
+if empty(glob(data_dir . '/autoload/plug.vim'))
+ silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
+ autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
+endif
+
+call plug#begin()
+
+" List your plugins here
+
+call plug#end()