Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

84 lines (75 sloc) 1.969 kb
"
if has('win32') || has('win64')
set shellslash
endif
" add local .vim directory to runtimepath
let s:local_dot_vim_dir_path = expand('<sfile>:h:h') . '/vim/dot.vim'
execute 'set runtimepath+=' . s:local_dot_vim_dir_path
" initial settings (edit for yourself){{{
" my mapleader (default '\')
let mapleader = ','
noremap \ ,
" color scheme setting {{{
set t_Co=256
syntax enable
let g:solarized_termcolors= 256
let g:solarized_termtrans = 0
let g:solarized_degrade = 0
let g:solarized_bold = 1
let g:solarized_underline = 1
let g:solarized_italic = 1
let g:solarized_contrast = "normal"
let g:solarized_visibility= "normal"
if has('gui_running')
set background=light
else
set background=dark
endif
colorscheme solarized
hi ColorColumn ctermbg=DarkRed
"}}}
"}}}
" local settings
let s:profiles_dir_path = expand('<sfile>:h:h') . '/vim/profiles/'
let s:profile_names = [
\ 'default',
\ 'appends',
\ 'unite',
\ 'neocomplcache',
\ 'maps',
\ 'plugins',
\ 'local-appends',
\ 'local-bundles',
\ 'local-maps',
\ 'local-extensions',
\]
" local functions {{{
function! s:source_profile(name)"{{{
let l:path = printf('%s%s.vim', s:profiles_dir_path, a:name)
if filereadable(l:path)
execute printf('source %s', l:path)
endif
endfunction"}}}
function! s:source_profiles(names)"{{{
for l:name in a:names
call s:source_profile(l:name)
endfor
endfunction"}}}
function! s:call_source_profiles(args)"{{{
call s:source_profiles(split(a:args, '[, :]'))
endfunction"}}}
command! -nargs=+ ResourceProfile call s:call_source_profiles(<q-args>)
"}}}
" initialize VimrcAutoCmd augroup
augroup VimrcAutoCmd
autocmd!
augroup END
" source bundles at first
call s:source_profile('bundles')
" source profiles
call s:source_profiles(s:profile_names)
" source local settings at last
let g:path_to_vimrc_profile = '~/.vimrc_profile'
if filereadable(expand(g:path_to_vimrc_profile))
execute printf('source %s', expand(g:path_to_vimrc_profile))
endif
Jump to Line
Something went wrong with that request. Please try again.