" vi compatibility set nocompatible " locale language en_US.UTF-8 " Encoding set encoding=utf-8 " Color scheme (terminal) set t_Co=256 " Syntax highlighting syntax off " Blink cursor on error instead of beeping (grr) set visualbell " How many lines of command history to remember? set history=1000 " Show status line set laststatus=2 " Show menu for completion set wildmenu " Show cursor position set ruler " Reread file changed outside vim set autoread " Delete comment character when joining commented lines set formatoptions+=j " Wrapping set wrap " Wrap at word boundary set lbr " Whitespace set textwidth=0 set formatoptions=tcqrn1 set tabstop=8 set shiftwidth=8 set softtabstop=8 set noexpandtab set noshiftround set smarttab " How to indicate whitespace set listchars=tab:⟶\ ,trail:▸,extends:⟶,precedes:⟵,nbsp:+ " Incremental search set incsearch " Highlight search set hlsearch " For plugins to load correctly filetype plugin indent on " limelight let g:limelight_conceal_ctermfg = 'gray' let g:limelight_conceal_ctermfg = 240 " Use space for keyboard shortcuts nnoremap let mapleader=" " " toggle syntax on/off nnoremap s exists("syntax_on") ? ':syntax off' : ':syntax on' " toggle background light/dark nnoremap d &background == 'light' ? ':set background=dark' : ':set background=light' " toggle listing of whitespace nnoremap w ':set list!' " clear search highlight nnoremap c ':noh' " insert timestamp map t :put =strftime('%Y-%m-%d %a, %H:%M') " toggle Goyo nnoremap G ':Goyo' " toggle Limelight nnoremap L ':Limelight!!'