Skip to content

Instantly share code, notes, and snippets.

@hardyscc
Last active September 19, 2022 11:08
Show Gist options
  • Save hardyscc/f640d856e79a36a3b7c29a36b1329682 to your computer and use it in GitHub Desktop.
Save hardyscc/f640d856e79a36a3b7c29a36b1329682 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
" Auto install VimPlug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Keep Plug commands between plug#begin() and plug#end().
call plug#begin()
Plug 'morhetz/gruvbox' " Best color scheme
Plug 'vim-airline/vim-airline' " Vim powerline
" All of your Plugins must be added before the following line
call plug#end() " required
filetype plugin indent on " required
" Activate color scheme
silent! colorscheme gruvbox
" Look and Feel settings
syntax enable
set background=dark
" Numbers
set number
set relativenumber
" Indentation
set autoindent
set cindent
set smartindent
" Set default encoding to utf-8
set encoding=utf-8
set termencoding=utf-8
" Disable backups and swap files
set nobackup
set nowritebackup
set noswapfile
" Allow copy and paste from system clipboard
set clipboard=unnamed
" jk to exit insert mode
imap jk <Esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment