Last active
September 19, 2022 11:08
-
-
Save hardyscc/f640d856e79a36a3b7c29a36b1329682 to your computer and use it in GitHub Desktop.
curl -fsLo ~/.vimrc https://gist.githubusercontent.com/hardyscc/f640d856e79a36a3b7c29a36b1329682/raw/.vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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