Skip to content

Instantly share code, notes, and snippets.

@carlinmack
Last active July 2, 2020 12:19
Show Gist options
  • Save carlinmack/3615cf5d449fbe0e9e293c078943ac09 to your computer and use it in GitHub Desktop.
Save carlinmack/3615cf5d449fbe0e9e293c078943ac09 to your computer and use it in GitHub Desktop.
" show the filename in the window titlebar
set title
" set encoding
set encoding=utf-8
" line numbers
set number
highlight LineNr ctermfg=DarkGrey
" syntax highlighting
syntax on
" highlight cursor line
set cursorline
" wrapping stuff
set textwidth=80
set linebreak " Break lines at word (requires Wrap lines)
set showbreak=+++ " Wrap-broken line prefix
" Be able to arrow key and backspace across newlines
set whichwrap=bs<>[]
" show '> ' at the beginning of lines that are automatically wrapped
set showbreak=>\ \ \
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" Advanced
set undolevels=1000 " Number of undo levels
set backspace=indent,eol,start " Backspace behaviour
" Mouse mode
" set mouse=a
" Use ; instead of : for commands
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment