From 7a519e601f47fbbb224f613a15a2ba6e52d68235 Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 9 Apr 2014 08:07:12 -0400 Subject: [PATCH] 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. --- vim/colors/darkcloud.vim | 18 ++++++++++-------- vim/config/keyboard.vim | 18 ++++++++++-------- vim/config/plugins.vim | 38 +++++++++++++++++++++----------------- vim/config/settings.vim | 18 ++++++++++-------- vimrc | 37 ++++++++++++++++++++----------------- 5 files changed, 71 insertions(+), 58 deletions(-) diff --git a/vim/colors/darkcloud.vim b/vim/colors/darkcloud.vim index da24a77..9564d61 100644 --- a/vim/colors/darkcloud.vim +++ b/vim/colors/darkcloud.vim @@ -1,11 +1,13 @@ -"========================" -" " -" Darkcloud Vim Theme: " -" " -" Maintainer: Prurigro " -" License: MIT " -" " -"========================" +"============================================================" +" " +" Darkcloud Vim Config: theme +" " +" Maintainer: Prurigro (prurigro-at-gmail-dot-com) " +" Website: https://github.com/prurigro/darkcloud-vimconfig " +" " +" License: MIT " +" " +"============================================================" " " Acknowledgements: " diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index be9a9f2..9f28a02 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -1,11 +1,13 @@ -"===========================" -" " -" Keyboard Configuration: " -" " -" Maintainer: Prurigro " -" License: MIT " -" " -"===========================" +"============================================================" +" " +" Darkcloud Vim Config: keyboard settings " +" " +" Maintainer: Prurigro (prurigro-at-gmail-dot-com) " +" Website: https://github.com/prurigro/darkcloud-vimconfig " +" " +" License: MIT " +" " +"============================================================" " " Note: " *The default key is: \ diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 49ce4ac..681f4f5 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -1,11 +1,13 @@ -"==========================" -" " -" Plugins Configuration: " -" " -" Maintainer: Prurigro " -" License: MIT " -" " -"==========================" +"============================================================" +" " +" Darkcloud Vim Config: plugin settings " +" " +" Maintainer: Prurigro (prurigro-at-gmail-dot-com) " +" Website: https://github.com/prurigro/darkcloud-vimconfig " +" " +" 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', diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 92939e3..89c9e95 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -1,11 +1,13 @@ -"===============================" -" " -" Vim Settings Configuration: " -" " -" Maintainer: Prurigro " -" License: MIT " -" " -"===============================" +"============================================================" +" " +" Darkcloud Vim Config: main settings " +" " +" Maintainer: Prurigro (prurigro-at-gmail-dot-com) " +" Website: https://github.com/prurigro/darkcloud-vimconfig " +" " +" License: MIT " +" " +"============================================================" "COMPATIBILITY SETTINGS: DOCUMENT AND ENVIRONMENT SETTINGS {{{ set nocompatible "enable vim specific capabilities diff --git a/vimrc b/vimrc index 3bd4ca8..9f15d58 100644 --- a/vimrc +++ b/vimrc @@ -1,12 +1,13 @@ -"=========================" -" " -" Darkcloud Vim Config: " -" vimrc " -" " -" Maintainer: Prurigro " -" License: MIT " -" " -"=========================" +"============================================================" +" " +" Darkcloud Vim Config: vimrc " +" " +" Maintainer: Prurigro (prurigro-at-gmail-dot-com) " +" Website: https://github.com/prurigro/darkcloud-vimconfig " +" " +" 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 -"}}}