Skip to content

Instantly share code, notes, and snippets.

@delorenj
Created February 25, 2025 19:31
Show Gist options
  • Save delorenj/ffb1184356af9ebbe451edbbed2937bf to your computer and use it in GitHub Desktop.
Save delorenj/ffb1184356af9ebbe451edbbed2937bf to your computer and use it in GitHub Desktop.
vimrc
" 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