diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2025-11-21 21:58:21 +0000 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2025-11-21 21:58:21 +0000 |
| commit | 93a20c8baf24d21120fa3f9d9d33156d3108360f (patch) | |
| tree | 3e19c1e319cde7191da2b49e23346366ed792a9d | |
| parent | abe2513ed1e3a242d52db2fcfbbbc47d029a2130 (diff) | |
WIP .vimrc
| -rw-r--r-- | .vimrc | 63 |
1 files changed, 63 insertions, 0 deletions
@@ -0,0 +1,63 @@ +set nocompatible " This fixes the problem where arrow keys do not function properly on some systems. +let mapleader=' ' " Use space for leader key + +" General visual look of Vim +set number +set ruler +set noerrorbells +set laststatus=2 +set showmode +let &fillchars ..= ',eob: ' " Hide tildes at EOF +set splitbelow splitright + +" Text searching options +set incsearch +set ignorecase +set smartcase +set showmatch + +" Syntax and formatting +syntax on +set encoding=utf-8 +set hidden + +" Tabs and indenting +set smartindent +set tabstop=4 +set shiftwidth=4 +set softtabstop=4 +set expandtab +set noshiftround +set scrolloff=3 + +" Command line completion options +set showcmd +set wildmenu +filetype plugin on +set omnifunc=syntaxcomplete#Complete +set completeopt=menuone,noselect " Don't autoselect the completion + +" Setup undo history +if !isdirectory($HOME."/.vim") + call mkdir($HOME."/.vim", "", 0770) +endif +if !isdirectory($HOME."/.vim/undo-dir") + call mkdir($HOME."/.vim/undo-dir", "", 0700) +endif +set undodir=~/.vim/undo-dir +set undofile + +" Colors +set background=dark +hi Normal guibg=NONE ctermbg=NONE " Set background transparent + +" Plugins +call plug#begin() + +" Plugins listed below +Plug 'morhetz/gruvbox' + +call plug#end() + +" Call after plugin is loaded +colorscheme gruvbox |
