Skip to content

Instantly share code, notes, and snippets.

@KMikeeU
Created November 2, 2021 13:17
Show Gist options
  • Save KMikeeU/436307d21ce731033379ecf72efd07f3 to your computer and use it in GitHub Desktop.
Save KMikeeU/436307d21ce731033379ecf72efd07f3 to your computer and use it in GitHub Desktop.
Simple sane vim config intended for servers
#!/bin/bash
echo 'Installing sane vim...';
touch ~/.vimrc
mkdir -p ~/.vim/colors
echo 'Downloading themes...'
curl https://raw.githubusercontent.com/crusoexia/vim-monokai/master/colors/monokai.vim -o ~/.vim/colors/monokai.vim
cat << EOF > ~/.vimrc
set hls
set nu rnu
set linebreak
set showbreak=+++
set showmatch
set visualbell
set ignorecase
set smartcase
set incsearch
set gdefault
set autoindent
set expandtab
set shiftwidth=4
set softtabstop=4
set smartindent
set smarttab
set ruler
set undolevels=1000
set backspace=indent,eol,start
set autoread
set title
set encoding=utf-8
set showcmd
set mouse=a
set cursorline
set diffopt+=iwhite
set laststatus=2
set ttyfast
colo monokai
EOF
echo 'DONE!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment