Skip to content

Instantly share code, notes, and snippets.

View sakurawald's full-sized avatar
Focusing

sakurawald

Focusing
View GitHub Profile
@sakurawald
sakurawald / gist:46793f0c256dfa92484a614034a292c8
Created November 30, 2023 11:00
static/minimal-vimrc.vim
"
" A (not so) minimal vimrc.
"
" You want Vim, not vi. When Vim finds a vimrc, 'nocompatible' is set anyway.
" We set it explicitely to make our position clear!
set nocompatible
filetype plugin indent on " Load plugins according to detected filetype.
syntax on " Enable syntax highlighting.
" vim settings
set scrolloff=5
set history=1000
" status bar
set showmode
" find and replace
set hlsearch
set incsearch
$$ \boxed{@}
% Color %
\newcommand\c[2]{\textcolor{#1}{#2}}
\newcommand\r[1]{\textcolor{red}{#1}}
\newcommand\g[1]{\textcolor{green}{#1}}
\newcommand\b[1]{\textcolor{blue}{#1}}
\newcommand\red[1]{\textcolor{red}{#1}}
\newcommand\blue[1]{\textcolor{blue}{#1}}
\newcommand\green[1]{\textcolor{green}{#1}}