summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2015-03-20 10:44:14 +0100
committerHugues Hiegel <hugues@hiegel.fr>2015-04-17 16:00:19 +0200
commit71f208a4d409fa666bad9f7aff4ded69e30cbbba (patch)
treef4eca3736da8b8bd1759c28a06f8c5d9fc43ea93
parent0a7571836cb9633fa45eee420457c8edb720897c (diff)
DimInactiveWindows: annoying. commented out.
-rw-r--r--vimrc50
1 files changed, 25 insertions, 25 deletions
diff --git a/vimrc b/vimrc
index 452294c..b355a43 100644
--- a/vimrc
+++ b/vimrc
@@ -83,31 +83,31 @@ set splitbelow
" This tends to slow down redrawing, but is very useful.
" Based on https://groups.google.com/d/msg/vim_use/IJU-Vk-QLJE/xz4hjPjCRBUJ
" XXX: this will only work with lines containing text (i.e. not '~')
-if v:version > 703
-function! s:DimInactiveWindows()
- for i in range(1, tabpagewinnr(tabpagenr(), '$'))
- let l:range = ""
- if i != winnr()
- if &wrap
- " HACK: when wrapping lines is enabled, we use the maximum number
- " of columns getting highlighted. This might get calculated by
- " looking for the longest visible line and using a multiple of
- " winwidth().
- let l:width=256 " max
- else
- let l:width=winwidth(i)
- endif
- let l:range = join(range(1, l:width), ',')
- endif
- call setwinvar(i, '&colorcolumn', l:range)
- endfor
-endfunction
-augroup DimInactiveWindows
- au!
- au WinEnter * call s:DimInactiveWindows()
-augroup END
-endif
-
+"if v:version > 703
+"function! s:DimInactiveWindows()
+" for i in range(1, tabpagewinnr(tabpagenr(), '$'))
+" let l:range = ""
+" if i != winnr()
+" if &wrap
+" " HACK: when wrapping lines is enabled, we use the maximum number
+" " of columns getting highlighted. This might get calculated by
+" " looking for the longest visible line and using a multiple of
+" " winwidth().
+" let l:width=256 " max
+" else
+" let l:width=winwidth(i)
+" endif
+" let l:range = join(range(1, l:width), ',')
+" endif
+" call setwinvar(i, '&colorcolumn', l:range)
+" endfor
+"endfunction
+"augroup DimInactiveWindows
+" au!
+" au WinEnter * call s:DimInactiveWindows()
+"augroup END
+"endif
+"
" remaps C-j & C-k to C-y and C-e (buffer up/down line-by-line)
noremap <C-k> <C-y>
noremap <C-j> <C-e>