Skip to content

Instantly share code, notes, and snippets.

@zorchenhimer
Last active February 25, 2021 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zorchenhimer/d9c8b2f53d41ab3eec7ef5e6c74b0d9c to your computer and use it in GitHub Desktop.
Save zorchenhimer/d9c8b2f53d41ab3eec7ef5e6c74b0d9c to your computer and use it in GitHub Desktop.
syntax on
filetype on
filetype indent on
filetype plugin on
set autochdir
set autoindent
set backspace=2
set backspace=indent,eol,start
set expandtab
set enc=utf-8
set ff=unix
set fileencoding=utf-8
set fileformats=unix,dos,mac
set list
set listchars=tab:>.,trail:.
set nocompatible
set nowrap
set number
set ruler
set scrolloff=5
set shiftwidth=4
set showmatch
set softtabstop=4
set tabstop=4
set ttyfast
" Go uses tabs, not spaces
au BufNewFile,BufRead *.go setlocal noet ts=4 sw=4 sts=4
syntax on
filetype on
filetype indent on
filetype plugin on
set autochdir
set autoindent
set backspace=2
set backspace=indent,eol,start
set expandtab
set enc=utf-8
set ff=unix
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,sjis,default,latin1
set fileformats=unix,dos,mac
set list
set listchars=tab:>.,trail:.
set nocompatible
set nowrap
set number
set ruler
set scrolloff=5
set shiftwidth=4
set showmatch
set softtabstop=4
set tabstop=4
set ttyfast
set backup
set backupdir=C:\\Users\\nick\\vimfiles\\backup
set dir=C:\\Users\\nick\\vimfiles\\backup
"colorscheme gruvbox
" Turn off that middle-mouse paste bullshit.
map <MiddleMouse> <Nop>
map <2-MiddleMouse> <Nop>
map <3-MiddleMouse> <Nop>
map <4-MiddleMouse> <Nop>
imap <MiddleMouse> <Nop>
imap <2-MiddleMouse> <Nop>
imap <3-MiddleMouse> <Nop>
imap <4-MiddleMouse> <Nop>
nmap Q <Nop>
au BufNewFile,BufRead *.go setlocal noet ts=4 sw=4 sts=4
let filetype_i = "asm"
augroup Binary
au!
au BufReadPre *.prg,*.bin,*.exe,*.nes,*.studybox let &bin=1
au BufReadPost *.prg,*.bin,*.exe,*.nes,*.studybox if &bin | %!xxd
au BufReadPost *.prg,*.bin,*.exe,*.nes,*.studybox set ft=xxd | endif
au BufWritePre *.prg,*.bin,*.exe,*.nes,*.studybox if &bin | %!xxd -r
au BufWritePre *.prg,*.bin,*.exe,*.nes,*.studybox endif
au BufWritePost *.prg,*.bin,*.exe,*.nes,*.studybox if &bin | &!xxd
au BufWritepost *.prg,*.bin,*.exe,*.nes,*.studybox set nomod | endif
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment