Created
February 25, 2025 19:31
-
-
Save delorenj/ffb1184356af9ebbe451edbbed2937bf to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Auto-install vim-plug if not present | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
" Initialize plugin system | |
call plug#begin('~/.vim/plugged') | |
" Install Gruvbox theme | |
Plug 'morhetz/gruvbox' | |
Plug 'NoahTheDuke/vim-just' | |
" Add any other plugins here | |
call plug#end() | |
" Enable syntax highlighting | |
syntax on | |
" Enable file type detection | |
filetype plugin indent on | |
" Set color scheme settings | |
set background=dark | |
let g:gruvbox_contrast_dark = 'medium' | |
colorscheme gruvbox | |
" Enable true color support if your terminal supports it | |
if exists('+termguicolors') | |
set termguicolors | |
endif | |
" Show line numbers | |
set number | |
" Enable auto-indentation | |
set autoindent | |
" Set tab width to 4 spaces | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" Enable ruler (shows cursor position) | |
set ruler | |
" Enable status line | |
set laststatus=2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment