graphene-os-server-infrastr.../home/.config/nvim/init.vim
2024-11-18 14:03:46 -05:00

35 lines
779 B
VimL

set title
set mouse=a
set cursorline
set number
set whichwrap+=<,>,[,]
set virtualedit=block
set scrolloff=3
set shortmess=atToOI
" double slash to use full path to file
set backup backupdir=~/.local/state/nvim/backup//
set undofile
set wildmode=list:longest,full
set expandtab softtabstop=4 shiftwidth=4
set cinoptions=(0
set ignorecase
set smartcase
let mapleader = ","
nnoremap gb :ls<CR>:b<Space>
colorscheme gruvbox
" highlight trailing whitespace, except when typing at eol
highlight ExtraWhitespace ctermbg=darkred guibg=darkred
match ExtraWhitespace /\s\+$/
autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()