>>106963976
okay but it's maybe slightly niggerlicious, I don't really use vim much on this system, but neovim integrated into vscode.
" Source defaults.vim
unlet! skip_defaults_vim
source $VIMRUNTIME/defaults.vim
" There is no need for compatibility with the Vi way of things
se nocompatible
" Show line and column number of the cursor position
se ruler
" Matched string is highlighted while you search
se incsearch
" Show line number for each line
se nu
" Show partial command in last line of the screen
se showcmd
" When <Tab> is pressed to invoke completion, possible matches are shown
se wildmenu
se expandtab
se tabstop=4
se shiftwidth=4
se cindent
" I strongly dislike C++ namespace indentation and (0 for ffmpeg work.
se cino=(0,N-s
" Allow tabs in Makefiles.
autocmd FileType make,automake se noexpandtab shiftwidth=8 softtabstop=8
" Trailing whitespace and tabs are forbidden, so highlight them.
highlight ForbiddenWhitespace ctermbg=red guibg=red
match ForbiddenWhitespace /\s\+$\|\t/
" Do not highlight spaces at the end of line while typing on that line.
autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/
" Don't use the mouse for selecting lines
if has('mouse')
se mouse=r
endif
" vim-plug plugin configuration
call plug#begin()
Plug 'rafi/awesome-vim-colorschemes'
Plug 'whatyouhide/vim-gotham'
call plug#end()
" My theme of choice for regular Vim, possibly overridden by gvimrc
colo afterglow
" Color 80th column to help with code formatting
se colorcolumn=80