Skip to content

Instantly share code, notes, and snippets.

@syachi
Last active April 26, 2019 03:13
Show Gist options
  • Save syachi/5bc1b0dc258d6f85e21ebd36b2e120a4 to your computer and use it in GitHub Desktop.
Save syachi/5bc1b0dc258d6f85e21ebd36b2e120a4 to your computer and use it in GitHub Desktop.
syntax on
set mouse-=a
set tabstop=4
set autoindent
set expandtab
set shiftwidth=4
if exists('&ambiwidth')
set ambiwidth=double
endif
nmap n nzz
nmap N Nzz
nmap * *zz
nmap # #zz
nmap g* g*zz
nmap g# g#zz
augroup vimrcEx
au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" | endif
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment