Last active
March 1, 2021 11:07
-
-
Save mpern/039a568c131f9eb2f0f73948e4dfe38f to your computer and use it in GitHub Desktop.
Minimal .vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set autoread " reload on external file changes | |
set backspace=indent,eol,start " backspace behaviour | |
set clipboard=unnamed,unnamedplus " enable clipboard | |
set encoding=utf8 " enable utf8 support | |
set hidden " hide buffers, don't close | |
set mouse=a " enable mouse support | |
set nowrap " disable wrapping | |
set number " show line numbers | |
set term=xterm-256color " terminal type | |
set wildmenu wildmode=longest:full,full " wildmode settings | |
filetype plugin indent on " enable filetype detection | |
set listchars=eol:¶,trail:•,tab:▸\ " whitespace characters | |
set scrolloff=999 " center cursor position vertically | |
set showbreak=¬\ " Wrapping character | |
set showmatch " show matching brackets | |
syntax on " enable syntax highlightning | |
set list | |
colorscheme desert " set colorscheme | |
hi Normal guibg=NONE ctermbg=NONE| " transparency fix | |
set laststatus=2 | |
set ruler | |
set autoindent expandtab " autoindentation & tabbing | |
set shiftwidth=2 softtabstop=2 tabstop=2 " 1 tab = 2 spaces | |
set hlsearch ignorecase incsearch smartcase " search options | |
set nobackup noswapfile nowritebackup " disable backup/swap files | |
set undofile undodir=~/.vim/undo undolevels=9999 " undo options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment