Created
March 18, 2015 00:43
-
-
Save HSchmale16/0ba3b2c92449d41f1266 to your computer and use it in GitHub Desktop.
My VimRc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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