From 772db85ccccf6f7f2e8c2cb0536c6b33a18273f7 Mon Sep 17 00:00:00 2001 From: Kevin Date: Mon, 7 Apr 2014 02:40:35 -0400 Subject: [PATCH] adding breeze configuration and key mappings, as well as the gitmodules file --- .gitmodules | 3 +++ vim/config/keyboard.vim | 18 ++++++++++++++++++ vim/config/plugins.vim | 19 ++++++++++++------- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/.gitmodules b/.gitmodules index fe3f6f4..81eef84 100644 --- a/.gitmodules +++ b/.gitmodules @@ -88,3 +88,6 @@ [submodule "vim/bundle/vim-c-cr"] path = vim/bundle/vim-c-cr url = https://github.com/jtmkrueger/vim-c-cr.git +[submodule "vim/bundle/breeze.vim"] + path = vim/bundle/breeze.vim + url = https://github.com/gcmt/breeze.vim.git diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index b9c8122..bc7a47b 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -192,6 +192,15 @@ " | (N) -> same as Up " h | (N) -> same as k " +" (breeze->html compat) +" _ | (N) -> move to the next sibling tag +" + | (N) -> move to the previous sibling tag +" - | (N) -> move to the first sibling tag +" = | (N) -> move to the last sibling tag +" _ | (N) -> move to the first child tag +" + | (N) -> move to the last child tag +" | (N) -> move to the parent tag +" " Aliases: " :wsudo -and- :sudow | (C) -> :SudoWrite (write the file as root using sudo) " :esudo -and- :sudoe | (C) -> :SudoRead (read a file as root using sudo) @@ -460,6 +469,15 @@ autocmd FileType gundo nmap l j autocmd FileType gundo nmap autocmd FileType gundo nmap h k + + "breeze compatible formats + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap _ ':BreezePrevSibling' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap + ':BreezeNextSibling' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap - ':BreezeFirstSibling' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap = ':BreezeLastSibling' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap _ ':BreezeFirstChild' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap + ':BreezeLastChild' + autocmd BufNewFile,BufRead *.html,*.htm,*.xhtml,*.xml,*.php,*.aspx nmap ':BreezeParent' "}}} "DISABLED MAPPINGS: {{{ diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index d1bc856..ad8859a 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -11,7 +11,12 @@ execute pathogen#infect('bundle/{}', 'bundle.user/{}') "}}} -"EMMET: CONFIGURE WHEN ZENCODING IS ENABLED {{{ +"BREEZE: HTML TAG HIGHLIGHTING AND NAVIGATION {{{ + let g:breeze_active_filetypes="*.html,*.htm,*.xhtml,*.xml,*.php,*.aspx" + let g:breeze_shade_color = "String" +"}}} + +"EMMET: ZENCODING FEATURES {{{ let g:user_emmet_install_global=0 let g:use_emmet_complete_tag=1 let g:user_emmet_mode='a' @@ -23,7 +28,7 @@ endif "}}} -"GUNDO: CONFIGURE SIDEBAR SETTINGS {{{ +"GUNDO: UNDO SIDEBAR {{{ let g:gundo_right=1 let g:gundo_width=35 let g:gundo_preview_height=10 @@ -31,7 +36,7 @@ autocmd FileType gundo setlocal nocursorcolumn "}}} -"LIGHTLINE: CONFIGURE THE LIGHTLINE STATUS BAR {{{ +"LIGHTLINE: STATUS BAR {{{ let g:unite_force_overwrite_statusline = 0 let g:vimfiler_force_overwrite_statusline = 0 @@ -161,12 +166,12 @@ endif "}}} -"MARKDOWN VIM MODE: SETTINGS {{{ +"MARKDOWN VIM MODE: MARKDOWN IMPROVEMENTS {{{ let g:vim_markdown_folding_disabled=0 let g:vim_markdown_initial_foldlevel=2 "}}} -"SYNTASTIC: CONFIGURE SYNTAX CHECKING {{{ +"SYNTASTIC: SYNTAX CHECKING {{{ if !exists("g:autostartchecker") let g:autostartchecker=1 endif @@ -184,7 +189,7 @@ let g:syntastic_loc_list_height=5 "}}} -"VIM FILER: SETTINGS {{{ +"VIM FILER: FILE MANAGER {{{ let g:vimfiler_as_default_explorer=1 let g:vimfiler_safe_mode_by_default=0 let g:vimfiler_enable_auto_cd=1 @@ -209,7 +214,7 @@ endif "}}} -"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: ENABLE AND CONFIGURE BEHAVIOUR {{{ +"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: AUTO COMPLETION {{{ let g:neocomplcache_enable_at_startup=1 let g:neocomplcache_enable_smart_case=1 let g:neocomplcache_min_syntax_length=3