Skip to content

Instantly share code, notes, and snippets.

@HSchmale16
Created March 18, 2015 00:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HSchmale16/0ba3b2c92449d41f1266 to your computer and use it in GitHub Desktop.
Save HSchmale16/0ba3b2c92449d41f1266 to your computer and use it in GitHub Desktop.
My VimRc
autocmd! bufwritepost .vimrc source%
autocmd! BufNewFile,BufRead *.ino setlocal ft=arduino
autocmd! BufNewFile,BufRead *.pde setlocal ft=arduino
autocmd! BufNewFile,BufRead *.job setlocal ft=dosini
autocmd! BufNewFile,BufRead *.md setlocal ft=pandoc
set nocompatible
"Henry's Tab Settings"
set expandtab
set tabstop=4
set shiftwidth=4
set smartindent
" HL Color Scheme
set cul
hi CursorLine term=none cterm=none ctermbg=16
" Line Numbers
set number
" cmd mode shortcuts
nore ; :
nore , ;
" Improved Keyboard Mappings
"
" Save with <F2> in norm mode
nmap <F2> :w<CR>
" Save with <F2> in insert mode
imap <F2> <ESC>:w<CR>i
" Swp Buffers with <F3> and <F4> in insert mode
imap <F3> <ESC>:w<CR>;:bprevious<CR>i
imap <F4> <ESC>:w<CR>;:bnext<CR>i
" Make prgm
map <F7> :make<CR>
map <F8> :make clean all<CR>
:set nonumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment