Skip to content

Instantly share code, notes, and snippets.



Created Apr 6, 2017
What would you like to do?
my .vimrc file
set nocompatible
set encoding=utf-8
set number "show line numbers
set autoindent
set showmatch
set hlsearch
set incsearch
set backspace=2 "make backspace delete characters
set clipboard=unnamed "use system clpbarod
set virtualedit=onemore "cursor goes beyond last character
set history=100
set undolevels=400
set cursorline "highlight current line
set hidden "allow buffer switching without saving
set laststatus=2
set statusline=%<%f\ "filename
set statusline+=%w%h%m%r "options
set statusline+=\ [%{&ff}/%Y] "filetype
set statusline+=\ [%{getcwd()}] "current dir
set statusline+=%=%-14.(%l,%c%V%)\ %p%% "right aligned file nav info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment