dotfiles/.vimrc
Trysdyn Black 8aeab7241d Gut vim configs to remove external deps
Now that we use Helix, let's pare back vim a bit. This mainly drops
vundle and anything depending on something installed by vundle. Doing
this removes the external plugins, closes a security concern, reduces
the number of steps I need to take to bootstrap my homedir on a new
host, and cuts a lot of cruft out of my homedir.

The only loss here is ALE on systems that lack Helix, but if I'm going
to use vim to write code, I should use vim-lsp or something instead for
consistency with Helix.
2023-12-30 20:34:47 -08:00

52 lines
1.5 KiB
VimL

" Hack my TERM to get around vim ignoring terminfo
if &term=="alacritty"
let &term="xterm-256color"
endif
" Ensure certain plugins work by removing vi compatable modes
set nocompatible
" Make backspace work as expected on all platforms
set backspace=indent,eol,start
" Visual themeing
set termguicolors "Enable 256 colors
set t_Co=256 "Limit vim to 256 colors
set scrolloff=5 "Always display 5 lines below cursor when scrolling
colorscheme base16 "Use my custom built color scheme
set background=dark "Inform vim I use a black background terminal
" Set UTF-8 default
set encoding=utf-8
" Stop mouse support from interfering with copy/paste
set mouse=
set ttymouse=
" Searching Modifications
set hlsearch "highlight search matches
set incsearch "enable incremental search
set ignorecase "ignore case in search
set smartcase " ...unless you specify case yourself
" Tabs and Whitespace
set breakindent "add soft indents when soft wrapping
set autoindent "try to figure out automatic indents while writing code
set smartindent " ...and try to figure it out based on language
set nowrap "don't soft wrap by default
set tabstop=4
set shiftwidth=4
"display special glyphs for tabs and trailing whitespace
set list listchars=tab:»·,trail
" dmenu style command completion
set wildmenu
set wildignorecase
" Syntax Highlighting
syntax on
" Unfold everything by default
set foldlevel=99