dotfiles/.vimrc.settings

71 lines
1.3 KiB
Text
Raw Permalink Normal View History

2019-02-22 15:50:11 +00:00
" global settings
2019-03-01 10:12:32 +00:00
set autoread
2019-02-22 15:50:11 +00:00
set nocompatible
set noswapfile
set undofile
set undodir=$HOME/.vim/undo
set spell spelllang=en_gb
2020-09-06 00:21:46 +01:00
set updatetime=300
set nobackup
set nowritebackup
2019-02-22 15:50:11 +00:00
" buffers can be switched despite having changes
set hidden
" file settings
set encoding=utf-8
" special chars
set listchars=tab:▸\ ,eol:¬
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
" tabs and spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" line ending
set fileformats=unix,dos
" colours
set t_Co=256
syntax enable
set background=dark
highlight clear SignColumn
2019-02-22 16:08:40 +00:00
colorscheme solarized
2019-02-22 15:50:11 +00:00
" appearance
set number
set relativenumber
set laststatus=2
set noshowmode
set showtabline=1 "only show tabline when more than 1 tab
2019-06-13 08:14:21 +01:00
set updatetime=300
2019-02-22 15:50:11 +00:00
2021-09-22 13:41:05 +01:00
" Don't pass messages to |ins-completion-menu|.
set shortmess+=c
" Give more space for displaying messages.
set cmdheight=2
" Always show the signcolumn, otherwise it would shift the text each time
" diagnostics appear/become resolved.
if has("nvim-0.5.0") || has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
2019-02-22 15:50:11 +00:00
" exclude quickfix from the buffers list
augroup qf
autocmd!
autocmd FileType qf set nobuflisted
augroup END
" vimdiff
set diffopt+=iwhite
2019-02-22 16:08:40 +00:00
set diffexpr=""