Hello I found out the reason
It is because of showpairs.vim plug in. I was using 1.1 version, I will now check latest version. Regards Sanjeev Ext : 2852 -----Original Message----- From: Sanjeev Sapre [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 3:18 PM To: [email protected] Subject: Problem with horizontal scroll bar Hello List, I am facing problem with horizontal scroll bar. Vim Version 7 OS Windows XP SP2 I have enabled the bottom scroll bar. If I drag the scroll bar to right, after 2-3 seconds the scroll bar comes back to left most position, if I move it again then it remains there. That is.. it does not reset itself. Same thing happens if I move to any other line. For the first time it resets itself but in second attempt it remains in the position. Please suggest what changes in settings are needed here. Note : The cursor is not going out of focus when I move scrollbar Here is the _vimrc file that I use. ------------------------------------------------------------------------ ---- " Following line removes the toolbar, set go-=T "default search color set to more pleasant ":hi Search guibg=LightBlue " added for scp to work let g:netrw_cygwin= 0 :map <F2> /^.*[^\s].*$<cr>:nohls<cr> " .buf file of sqlplus to be identified as .sql for syntax and indentation purpose au BufNewFile,BufRead *.sql,*.buf,*.plb,*.code,*.pkg,*.ctl set ft=sql " Following two lines added in apr-2005, try on foldings, All files with plb " and sql ext will save folders created manually automatically and load auto when files open again au BufWinLeave *.sql,*.plb,*.pkg mkview au BufWinEnter *.sql,*.plb,*.pkg silent loadview " following command opens the window maximized au GUIEnter * simalt ~x " ------------------------------ SET COMMANDS SECTION --------------------------- " searching is case insensitive :set ignorecase " tab and soft tab are set for 4 characters set et set sw=4 set smarttab set nocompatible set nowrap " following line ensures that ctrl+n, ctrl+p ke yword completion commands " also goes through dictionary completion :set complete-=k complete+=k "set the dictionary file path :set dict=c:\\vim\\custom_dict.vim " whenever we change a file and save, a copy is created with filename~ by default it is in the same dir " to put such backup files in specific dir create desired dir and set it as below. NOTE : use of \\ :set bdir=c:\\vim\\temp " ------------------------------ MAPPING SECTION --------------------------- " exit without save for f9 :map <F9> :q!<Enter> :map! <F9> <esc>:q!<Enter> " save exit when f12 is pressed :map <F12> :wq<ENTER> :map! <F12> <Esc>:wq<ENTER> "copy current filename with path to clipboard map <F8> :let @* = expand('%:p')<cr> map! <F8> <Esc>:let @* = expand('%:p')<cr> " put word below cursor onto clipboard map <F4> :let @* = expand('<cword>')<cr> map! <F4> <Esc>:let @* = expand('<cword>')<cr> " WOK: CTRL-SPACE: keyword completion, map <C-space> <C-n> map! <C-space> <C-n> map <C-S-space> <C-p> map! <C-S-space> <C-p> " change case of selection vmap <F3> ~ "map <C-Right> ^i-- map <leader>r :MRU<ENTER> " WOK: Visual C++ like TAB " (indent/unindent block in visual/select mode with TAB: keeps last selection!) vmap <TAB> :><cr>gv vmap <S-TAB> :<<cr>gv source $VIMRUNTIME/vimrc_example.vim source $VIMRUNTIME/mswin.vim behave mswin " confirm this is required or not :runtime !indent.vim "following line opens the explorer display with size and date of the file let g:explDetailedList=1 " my favourite - selected text is in my fav colours hi Visual term=reverse cterm=reverse gui=reverse guifg=lightblue guibg=white set go=gbhrm "set virtualedit=all " try of version management "set backup "set patchmode=.clean set ut=3000 :nnoremap <silent> <F11> :YRShow<CR> set diffexpr=MyDiff() function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif let arg1 = v:fname_in if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif let arg2 = v:fname_new if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif let arg3 = v:fname_out if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif silent execute '!C:\Vim\vim63\diff ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3 endfunction " following mapping allows to search for selected text :vnoremap * y/<C-R>"<CR> :se cursorline :hi CursorLine term=none cterm=none ctermbg=3 guibg=LightGreen :autocmd InsertLeave * hi CursorLine term=none cterm=none ctermbg=3 :autocmd InsertEnter * hi CursorLine term=none cterm=none ctermbg=4 ------------------------------------------------------------------------ ---- Regards Sanjeev
