On 21/11/11 01:44, Henry Hertz Hobbit wrote:
I use these function keys on Linux with no problems (the zz
is lower case, not upper case and was done to get rid of some
strange behavior on OpenSuse 11.2 until I altered what caused
it not to come back to where I was at but shoved the line to the
bottom of the window).
map <F5> :n<CR>zz
map <F6> :rew<CR>zz
map <F7> :wn<CR>zz
map <F8> :w!<CR>zz
map <F12> :x!<CR>
These function keys do not work with 7.3 on Windows.
Which patchlevel? (Mine is 7.3.353, on openSUSE 12.1.) See :intro
I cannot
remember for sure but I think they did work with 7.2. I have the
_vimrc file in these two locations:
%UserProfile%\_vimrc
%ProgramFiles%\Vim
The Wiki mentions $Home for Windows. You have your choide
of these two environment variables: %UserProfile% and
%HomePath%. I prefer the former because it has the drive
letter and I am frequently on E:, a FAT32 file system and
F:, a USB FAT32 file system. I also have these environment
variables
Vim=C:\Program Files\Vim
VimRunTime=C:\Program Files\Vim\vim73
(the second had vim72 when I was using GVim 7.2)
Here is the contents of the_vimrc file:
http://www.securemecca.com/tmp/vimrc.txt
I am normally starting vim via a gvimi.bat file in cmd.exe.
Here is what is in that file:
http://www.securemecca.com/tmp/gvimi.txt
However, even when I just right click on a file and select edit with
gvim the function keys still don't work. If anybody knows why it
doesn't work and knows what I am doing wrong please let us all
know the right way to do it.
Cross e-mail me to hhhobbit(gnat)gmail.com <http://gmail.com> since I
only read the
digest version and may miss the answer.
Thanks.
I think that environment variable names are case-sensitive. Try using
%USERPROFILE%, VIM and VIMRUNTIME, and check in a running Vim what
$USERPROFILE, $HOME, $VIM and $VIMRUNTIME (all these in all caps) point
to. I'm not sure about %ProgramFiles% vs. %PROGRAMFILES%.
Bet regards,
Tony.
--
Bare feet magnetize sharp metal objects so they point upward from the
floor -- especially in the dark.
--
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