This repository has been archived on 2021-12-21. You can view files and clone it, but cannot push or open issues/pull-requests.
neovim-config/init/settings.vim

59 lines
1.7 KiB
VimL
Raw Normal View History

2021-02-02 10:33:34 +01:00
" Terminal
" As I often use non-standard shells, certain things can break if this isn't
" explicitely set
" TODO maybe use which to find the executable?
set shell=/bin/bash
2020-08-08 20:27:01 +02:00
" Colorscheme
" This forces (Neo)Vim to assume the terminal supports 256 colors.
" Without this, some colorschemes (including mine) don't work properly.
2020-08-08 20:27:01 +02:00
set termguicolors
" Set colorscheme
2020-10-30 10:56:11 +01:00
colorscheme flattened_dark
hi Normal guibg=NONE ctermbg=NONE
hi LineNr ctermfg=NONE ctermbg=NONE
2020-08-08 20:27:01 +02:00
" Line numbers
" I use the combination of absolute and relative line numbers. On the
" current line, it shows the absolute; on all the others, the relative.
2021-02-01 10:31:18 +01:00
set number relativenumber
2020-08-08 20:27:01 +02:00
" Splits
" I prefer the logic of 'open your main window first, and all other
2021-02-01 10:31:18 +01:00
" afterwards', so this makes a new file open below or to the right of the
" current one.
set splitbelow splitright
2020-08-08 20:27:01 +02:00
" Indentation
2021-02-01 10:31:18 +01:00
" I only use four spaces as indentation. This configures Vim to always use four
" spaces, for both manual tabs and automatic indentation.
set expandtab tabstop=4 shiftwidth=4
2020-08-08 20:27:01 +02:00
" Search functionality
" Show matches as pattern is being typed
set incsearch
" Ignore case as long as there are no capital letters in the pattern
set smartcase
" Don't hightlight search results after search is finished
set nohlsearch
" autocmd BufReadPre * call SetDirs()
" Turn on swap files
set swapfile
set directory=./.vim/swap//
" Create file backups
" set backup
" Store backups in .vim directory, next to swap files
" set backupdir=./.vim/backup/,
" Temporary, until I've found a fix
set nobackup
" Create an undo file for each file; this makes undo persistent
set undofile
set undodir=./.vim/undo//
" Increases speed of CoC and Gitgutter
set updatetime=250
2021-02-01 09:41:32 +01:00
" Make Vim use pipes instead of temp files when running commands
" set noshelltemp