Skip to content

Instantly share code, notes, and snippets.

@jaredpar
Created June 9, 2013 16:43
Show Gist options
  • Save jaredpar/5744216 to your computer and use it in GitHub Desktop.
Save jaredpar/5744216 to your computer and use it in GitHub Desktop.
jaredpar vimrc file
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
@dapngn
Copy link

dapngn commented Aug 2, 2013

Yes, this is sparse. Is this what you use as your .vsvimrc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment