Created
June 9, 2013 16:43
-
-
Save jaredpar/5744216 to your computer and use it in GitHub Desktop.
jaredpar vimrc file
This file contains 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
set nobackup | |
set nocp | |
set tabstop=4 | |
set shiftwidth=4 | |
set et | |
set ignorecase | |
set hlsearch | |
set ai | |
set ruler | |
set showcmd | |
set incsearch | |
set dir=$temp " Make swap live in the %TEMP% directory | |
syn on | |
" Load the color scheme | |
colo inkpot | |
" Setup some common abbreviations | |
iabbrev #c //============================================================================== | |
" Filetype settings | |
filetype plugin on | |
filetype indent on | |
" Source a Couple of scripts | |
source ~\vimfiles\matchit.vim | |
source ~\vimfiles\plugin\fswitch.vim | |
" --- | |
" C++ Options and Functions | |
" --- | |
au BufNewFile,BufRead *.cpp call <SID>CppSetup() | |
au BufNewFile,BufRead *.h call <SID>CppSetup() | |
func! <SID>CppSetup() | |
" Enable quick switching between buffers | |
nmap <silent> <C-F4> :FSTab<CR> | |
endfunc | |
" --- | |
" C# Options and Functions | |
" --- | |
au BufNewFile,BufRead *.cs call <SID>CSharpSetup() | |
func! <SID>CSharpSetup() | |
" Match #region/#endregion | |
let b:match_words = '\s*#\s*region:\s*#\s*endregion' | |
endfunc | |
au BufNewFile,BufRead *.txt call <SID>TextSetup() | |
func! <SID>TextSetup() | |
set lbr " Break on words rather that column width | |
set nolist " Don't show whitespace information | |
endfunc | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, this is sparse. Is this what you use as your .vsvimrc?