Skip to content

Instantly share code, notes, and snippets.

@zorchenhimer
Last active Feb 25, 2021
Embed
What would you like to do?
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