Skip to content

Instantly share code, notes, and snippets.

@ghosh
Created October 14, 2024 08:08
Show Gist options
  • Save ghosh/92890b6c1e610021f6a5bf7b7cda5c7a to your computer and use it in GitHub Desktop.
Save ghosh/92890b6c1e610021f6a5bf7b7cda5c7a to your computer and use it in GitHub Desktop.
Vimrc for Raspberry
" ---------------------------------------------
" Appearance Settings
" ---------------------------------------------
" Don't check compatibility
set nocompatible
" Enable syntax highlighting
syntax on
" Show line numbers
set number
" Change line numbers to gray
:highlight LineNr ctermfg=grey
" Highlight cursor line
set ruler
" Show matching brackets when text indicator is over them
set showmatch
" How many tenths of a second to blink when matching brackets
set mat=2
" Add a bit extra margin to the left
set foldcolumn=0
" Use spaces instead of tabs
set expandtab
" 1 tab == 4 spaces
set shiftwidth=4
set tabstop=4
" Set proper encoding
set encoding=utf-8
" Disable annoying beeps
set noerrorbells
" Visual bell instead of beeping
" set visualbell
" Turn backup off, since most stuff is in SVN, git etc
set nobackup
set nowb
set noswapfile
" Make backspace work like most other programs
set backspace=indent,eol,start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment