Added more complete and descriptive headers to the config files,

including the URL the config can be downloaded. Added a new variable
that determines whether the filer will autostart on empty buffers or
not. Set powerline fonts not to load by default. Changed the order to
load the config files so the user config settings are applied to
plugins.
This commit is contained in:
Kevin 2014-04-09 08:07:12 -04:00
parent eb68dfc486
commit 7a519e601f
5 changed files with 71 additions and 58 deletions

View file

@ -1,11 +1,13 @@
"========================"
"============================================================"
" "
" Darkcloud Vim Theme: "
" Darkcloud Vim Config: theme
" "
" Maintainer: Prurigro (prurigro-at-gmail-dot-com) "
" Website: https://github.com/prurigro/darkcloud-vimconfig "
" "
" Maintainer: Prurigro "
" License: MIT "
" "
"========================"
"============================================================"
"
" Acknowledgements:
"

View file

@ -1,11 +1,13 @@
"==========================="
"============================================================"
" "
" Keyboard Configuration: "
" Darkcloud Vim Config: keyboard settings "
" "
" Maintainer: Prurigro (prurigro-at-gmail-dot-com) "
" Website: https://github.com/prurigro/darkcloud-vimconfig "
" "
" Maintainer: Prurigro "
" License: MIT "
" "
"==========================="
"============================================================"
"
" Note:
" *The default <Leader> key is: \

View file

@ -1,11 +1,13 @@
"=========================="
"============================================================"
" "
" Plugins Configuration: "
" Darkcloud Vim Config: plugin settings "
" "
" Maintainer: Prurigro (prurigro-at-gmail-dot-com) "
" Website: https://github.com/prurigro/darkcloud-vimconfig "
" "
" Maintainer: Prurigro "
" License: MIT "
" "
"=========================="
"============================================================"
"PATHOGEN BUNDLED EXTENSIONS PLUGIN: {{{
execute pathogen#infect('bundle/{}', 'bundle.user/{}')
@ -85,11 +87,10 @@
"}}}
"SYNTASTIC: {{{
"syntax checker autostart default: 1
"autostart syntax checking when vim opens to a compatible filetype (default: 1)
if !exists("g:autostartchecker")
let g:autostartchecker=1
endif
if (g:autostartchecker == 1)
let g:syntastic_mode_map = {'mode':'active','active_filetypes':[],'passive_filetypes':[]}
let g:syntastic_check_on_open=1
@ -104,11 +105,10 @@
"}}}
"TAGBAR: {{{
"tagbar sidebar autostart default: 1
"autostart tagbar when vim opens to a compatible filetype (default: 0)
if !exists("g:autostarttagbar")
let g:autostarttagbar=0
endif
if (g:autostarttagbar == 1)
autocmd VimEnter * nested :call tagbar#autoopen(1)
endif
@ -119,6 +119,14 @@
"}}}
"VIM FILER: {{{
"autostart filer when vim opens to an empty buffer (default: 1)
if !exists("g:autostartfiler")
let g:autostartfiler=1
endif
if (g:autostartfiler == 1)
autocmd VimEnter * if !argc() | VimFiler -quit -project | endif
endif
let g:vimfiler_as_default_explorer=1
let g:vimfiler_safe_mode_by_default=0
let g:vimfiler_enable_auto_cd=1
@ -133,9 +141,6 @@
"edit files by double clicking them, and justify the cursor on the left
autocmd FileType vimfiler setlocal nonumber nocursorcolumn
"open automatically if vim was run without any files
autocmd VimEnter * if !argc() | VimFiler -quit -project | endif
"load the list of file extensions and handlers if it exists
if filereadable(glob("~/.vim/filetypes.vim"))
source ~/.vim/filetypes.vim
@ -216,11 +221,10 @@
call lightline#update()
endfunction
"status bar config with and without powerline fonts (defaults to off)
"status bar config with and without powerline fonts (default: 0)
if !exists("g:powerlinefonts")
let g:powerlinefonts=0
endif
if (g:powerlinefonts == 1)
let g:lightline = {
\ 'colorscheme': 'darkcloud',

View file

@ -1,11 +1,13 @@
"==============================="
"============================================================"
" "
" Vim Settings Configuration: "
" Darkcloud Vim Config: main settings "
" "
" Maintainer: Prurigro (prurigro-at-gmail-dot-com) "
" Website: https://github.com/prurigro/darkcloud-vimconfig "
" "
" Maintainer: Prurigro "
" License: MIT "
" "
"==============================="
"============================================================"
"COMPATIBILITY SETTINGS: DOCUMENT AND ENVIRONMENT SETTINGS {{{
set nocompatible "enable vim specific capabilities

29
vimrc
View file

@ -1,12 +1,13 @@
"========================="
"============================================================"
" "
" Darkcloud Vim Config: "
" vimrc "
" Darkcloud Vim Config: vimrc "
" "
" Maintainer: Prurigro (prurigro-at-gmail-dot-com) "
" Website: https://github.com/prurigro/darkcloud-vimconfig "
" "
" Maintainer: Prurigro "
" License: MIT "
" "
"========================="
"============================================================"
"DARKCLOUD VIM CONFIG FOLDER PATH: {{{
" If you want to use darkcloud-vimconfig as a package without symlinking
@ -28,6 +29,9 @@
" it created, then toggle these settings there to override these and no
" avoid conflicting with updates.
"Filer File Manager On Empty Buffers: (1:empty buffer loads filer | 0:buffer remains empty)
let g:autostartfiler=1
"Syntax Checking Autostart: (1:start toggled on | 0: start toggled off)
let g:autostartchecker=1
@ -35,7 +39,7 @@
let g:autostarttagbar=0
"Powerline Font Support: (1:enabled | 0:disabled)
let g:powerlinefonts=1
let g:powerlinefonts=0
"GVim Font Selection: (term font set by terminal)
set guifont=Droid\ Sans\ Mono\ 12
@ -51,16 +55,15 @@
"Load Plugins:
runtime bundle/vim-pathogen/autoload/pathogen.vim
"Load Plugin Configuration:
runtime config/plugins.vim
"Load Keymappings:
runtime config/keyboard.vim
"Load User Config:
runtime vimrc.user
"Load Plugin Configuration:
runtime config/plugins.vim
"Load Colour Scheme:
colorscheme darkcloud
"}}}
"LOAD USER CONFIG FILE: {{{
runtime vimrc.user
"}}}