In MacVim 8.0, ctrl-f brings up a search window instead of scrolling forward in a buffer by one full screen. ctrl-F (i.e. pressing the SHIFT key also) gives the same result.
Is there a troubleshooting step or a repair step I can take?
In MacVim 8.0, ctrl-f brings up a search window instead of scrolling forward in a buffer by one full screen. ctrl-F (i.e. pressing the SHIFT key also) gives the same result.
Is there a troubleshooting step or a repair step I can take?
I don't know about the MacVim. But I had experienced same situation at window gvim.
I mean when I press "Ctrl+F" I don't want to see search window.
I found the below at "C:\Program Files (x86)\Vim\vim81\mswin.vim".
To resolve your problem, all you have to do is just comment the below line, that's it.
if has("gui")
" CTRL-F is the search dialog
noremap <expr> <C-F> has("gui_running") ? ":promptfind\<CR>" : "/"
inoremap <expr> <C-F> has("gui_running") ? "\<C-\>\<C-O>:promptfind\<CR>" : "\<C-\>\<C-O>/"
cnoremap <expr> <C-F> has("gui_running") ? "\<C-\>\<C-C>:promptfind\<CR>" : "\<C-\>\<C-O>/"
" CTRL-H is the replace dialog,
" but in console, it might be backspace, so don't map it there
nnoremap <expr> <C-H> has("gui_running") ? ":promptrepl\<CR>" : "\<C-H>"
inoremap <expr> <C-H> has("gui_running") ? "\<C-\>\<C-O>:promptrepl\<CR>" : "\<C-H>"
cnoremap <expr> <C-H> has("gui_running") ? "\<C-\>\<C-C>:promptrepl\<CR>" : "\<C-H>"
endif
I think what happened is that gvim 8.0 has a mapping for <Ctrl-f>
in mswin.vim, but the previous version of gvim does not have that mapping in mswin.vim
I use both versions (on different computers), and so got surprised by the <Ctrl-f>
mapping in the gvim 8.0 version.
My vimrc sources mswin.vim because I like the copy-paste functionality.