Skip to content

Instantly share code, notes, and snippets.

@ttowncompiled
Last active December 5, 2018 17:07
Show Gist options
  • Save ttowncompiled/b9083bf4ea1df769048c586c7e86f381 to your computer and use it in GitHub Desktop.
Save ttowncompiled/b9083bf4ea1df769048c586c7e86f381 to your computer and use it in GitHub Desktop.
A .vimrc file for Raspberry Pis in a Pi cluster.
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use a single double quote for comments
" Make sure you use a single single quote for values
" Lightline
Plug 'itchyny/lightline.vim'
" C/C++
Plug 'vim-scripts/c.vim'
" Spacegray
Plug 'git://github.com/ajh17/Spacegray.vim'
" Initialize plugin system
call plug#end()
" Configure Spacegrayk theme
set background=dark
colorscheme spacegray
set t_Co=256
let g:spacegray_underline_search = 1
let g:spacegray_use_italics = 1
" Configure lightline
set laststatus=2
" Convert tabs to 4 spaces
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 smarttab
" Shows numbers
set number
" Syntax highlighting
syntax on
autocmd BufWritePre * :%s/\s\+$//e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment