On Thu, 22 Jul 2010, Henry Hertz Hobbit wrote: > When I am using vim on OpenSuse 11.2 and switch from one buffer to > another I have already been in using the :rew or :n it has the very > disturbing behavior of positioning the cursor at the bottom of the > screen. At first I thought it was just a behavior that exists in an > xterm but then I found it also exists in gvim as well. I finally > mapped the following function keys to get rid of this strange behavior > (this my entire ~/.vimrc file): > > set hlsearch > set nobackup > set nocompatible > set noerrorbells > set nowrapscan > set showmatch > set showmode > map <F5> :n<CR>zz > map <F6> :rew<CR>zz > map <F7> :wn<CR>zz > map <F8> :w!<CR>zz > map <F12> :x!<CR> > " set so=999 > behave xterm >
I don't see that behavior on OpenSUSE 11.2 using the above .vimrc (saved as ~/vim-opensuse112-problem) with the following lines prepended: " avoid the stuff in my ~/.vim/ directory set rtp=/usr/share/vim/site,$VIMRUNTIME,/usr/share/vim/site/after And starting vim as: vim -u ~/vim-opensuse112-problem -U /etc/vimrc file1 file2 So, perhaps it's something else in your ~/.vim/ directory? (Plugins, etc.?) Or maybe something's installed in /usr/share/vim/site? Do you get the behavior if you use: vim -u NONE -U NONE -N file1 file2 (The -N disables plugins.) That's with vim-7.2-16.7 from the standard OpenSUSE 11.2 oss repository. First few lines of :version: VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Oct 24 2009 08:04:13) Included patches: 1-127, 257 Compiled by 'http://www.opensuse.org/' Huge version without GUI. > All they have are the following files in /etc: > > /etc/vimrc > /etc/skel/.vimrc > > I cannot find what is doing it in the /etc/vimrc file. What do I need > to do to turn this behavior of bottoming of the cursor off (other than > using the preceding Fn keys)?. If nothing else this argues for Bram > coming up with a standard that all Linux and Unix vendors should use > for the /etc files to give a minimal standard for everybody to proceed > from. Some turn on hlsearch (I prefer it) and some don't. I can > clearly see that is something that is optional that should probably be > off by default. That isn't the problem - I want all of these > differences to disappear and not have something like this happen > again. Generally distributions are decent about not doing things that would be surprising. The more I learn about Vim, though, and care about the defaults, the more landmines I find. (Gentoo = home, OpenSUSE = work, Ubuntu/Debian/Fedora = hobby). I've almost reached the point where I want to do: alias vi='vim -U NONE' (instead of just alias vi=vim) But, that's only because I've started caring. In general, I think the distro defaults are good for starting out. (Setting syntax and minor options.) > Or is it a bug that has been fixed? It doesn't happen on Ubuntu > 10.04. Please send me a personal answer if at all possible since I > only receive the Abridged summary. Overall, I've noticed the most differences (but admittedly haven't always been looking for them) when using Ubuntu. -- Best, Ben -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
