Skip to content

Instantly share code, notes, and snippets.

@z16
Created October 2, 2020 07:07
Show Gist options
  • Save z16/6b3fbc4d6ddebbba7a6154d1e18c729b to your computer and use it in GitHub Desktop.
Save z16/6b3fbc4d6ddebbba7a6154d1e18c729b to your computer and use it in GitHub Desktop.
autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif
set nocompatible
set number
set autoindent
set showcmd
set incsearch
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set scrolloff=4
set sidescrolloff=10
set nowrap
filetype on
filetype plugin on
filetype plugin indent on
nnoremap . m`A;<Esc>``
nnoremap , m`A,<Esc>``
nnoremap n nzz
nnoremap N Nzz
nnoremap j gj
nnoremap k gk
nnoremap $ g$
nnoremap ^ g^
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
syntax on
colorscheme desert
set clipboard=unnamed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment