237 lines · 6.7 KB
vim9script

&directory = $HOME .. '/.config/vim/swap'
&backupdir = $HOME .. '/.config/vim/backup'
&viewdir = $HOME .. '/.config/vim/view'

g:mapleader = ' '

set nobackup
set nowritebackup
set noswapfile
set shell=bash            # keep Vim from freaking out under weird shells (like Fish)
set autoread              # re-read files when they're changed externally
set termguicolors
set tabstop=4
set shiftwidth=4
set softtabstop=4
set history=1000
set tabpagemax=50
set expandtab
set autoindent
set smarttab
set smartindent
set shiftround
set timeoutlen=250        # time to wait for a command (after leader, for example)
set hidden                # change buffer without saving
set showmatch             # show matching brackets
set matchtime=2           # how many tenths of a second to blink
set modeline
set modelines=5
set ruler
set nowrap
set number
set laststatus=2
set report=0
set listchars=tab:\▸\ ,trail:·,eol:¶
set colorcolumn=80
set sessionoptions-=options
set scrolloff=5
set sidescrolloff=5