Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

backgroundによって色分けするように

  • Loading branch information...
commit d4deca6a2de2ccc11ad51b1f96af16993cbf2127 1 parent 29b9739
tsuruoka-n authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 vimrc
View
18 vimrc
@@ -503,10 +503,10 @@ function! s:on_FileType_php()
let s:class = '\(abstract\s\+\|final\s\+\)*class'
let s:interface = 'interface'
let s:section = '\(.*\%#\)\@!\_^\s*\zs\('.s:function.'\|'.s:class.'\|'.s:interface.'\)'
- exe 'nno <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>'
- exe 'nno <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>'
- exe 'ono <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>'
- exe 'ono <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>'
+ execute 'nno <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>'
+ execute 'nno <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>'
+ execute 'ono <buffer> <silent> [[ ?' . escape(s:section, '|') . '?<CR>:nohls<CR>'
+ execute 'ono <buffer> <silent> ]] /' . escape(s:section, '|') . '/<CR>:nohls<CR>'
""
" 同一ファイル内にある定義元の関数やクラスに移動
@@ -626,8 +626,14 @@ let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_color_change_percent = 30
let g:indent_guides_guide_size = 1
let g:indent_guides_auto_colors = 0
-hi IndentGuidesOdd ctermbg=234
-hi IndentGuidesEven ctermbg=233
+
+if &background == 'dark'
+ highlight IndentGuidesOdd ctermbg=234
+ highlight IndentGuidesEven ctermbg=233
+else
+ highlight IndentGuidesOdd ctermbg=134
+ highlight IndentGuidesEven ctermbg=133
+endif
""
" unite.vim
Please sign in to comment.
Something went wrong with that request. Please try again.