Skip to content

Instantly share code, notes, and snippets.

@Mimickal
Created May 20, 2022 03:06
Show Gist options
  • Save Mimickal/38c7dc7851410238bbddff305322b54b to your computer and use it in GitHub Desktop.
Save Mimickal/38c7dc7851410238bbddff305322b54b to your computer and use it in GitHub Desktop.
A version of my .vimrc without the plugins
" Use a color scheme that works with flux
syntax on
colorscheme zellner
" Use a not-dumb tab size
set tabstop=4
" Show tabs as something cool
set list
set listchars=tab:>-
" Show line numbers
set number
" Show trailing whitespace
set hlsearch
highlight TrailingSpace ctermbg=DarkMagenta ctermfg=Black
call matchadd('TrailingSpace', '\s\+$', -1)
" Show warnings for long lines (at 80 and 100)
highlight LengthWarn ctermbg=DarkBlue
call matchadd('LengthWarn', '\%<101v.\%>81v', -2)
highlight LengthLong ctermbg=DarkRed
call matchadd('LengthLong', '\%101v.\+', -2)
set colorcolumn=101
" Set auto-text wrap
set textwidth=80
" Don't select line numbers when copying (doesn't work in tmux though)
se mouse+=a
set rtp+=~/.fzf
" Because we need to manually enable backspace, like cave men
set backspace=indent,eol,start
" Stop that annoying auto-indent bullshit
filetype plugin indent off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment