horizontal scroll bars
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Elias P. <el...@us...> - 2004-11-03 18:41:45
|
If I use this, as was suggested here: " function! Cream_wrap_init() " initialize wrap (for statusline) " don't change state in special buffers " opsplorer if bufname("%") == "_opsplorer" return endif " calendar if bufname("%") == "__Calendar" return endif " tag list if bufname("%") == "__Tag_List__" return endif " used before if exists("g:CREAM_WRAP") if g:CREAM_WRAP == 1 set wrap "set guioptions-=b else set nowrap execute "set lines=" . &lines - 2 set guioptions+=b endif else " initialize on set wrap set guioptions-=b let g:CREAM_WRAP = 1 endif endfunction function! Cream_wrap(mode) " toggle word wrap " should already be initialized, but check anyway if exists("g:CREAM_WRAP") if g:CREAM_WRAP == 1 let g:CREAM_WRAP = 0 set nowrap "execute "set lines=" . &lines - 2 set guioptions+=b else let g:CREAM_WRAP = 1 set wrap set guioptions-=b endif else " error call Cream_error_warning( \ "g:CREAM_WRAP not initialized in Cream_wrap()") endif if a:mode == "v" normal gv endif endfunction " I get horizontal scrollbars, but often get an error "E16: Invalid range: -2" when switching windows. Is there a solution to this? -- Elias Pschernig |