i tried to split a vim in 2 buffers with 2 different files
vim file1.txt :sp file2.txt
but ctrl + w is not working to switch between them.
giving below error
E486: Pattern not found: modification history
anyone knows how to help it.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
The command to move to the next window is Ctrl-W Ctrl-W; cp.
:help CTRL-W_CTRL-W. There are several more window commands all starting with Ctrl-W:
E486 error results from a search command, with the previously used search pattern. That should not have been triggered by Ctrl-W, but you may have a plugin or mapping that changed this. Check with
:verbose map <C-w>
and remap / disable if necessary.
You can also switch windows via
:wincmd w (followed by Enter), but that's not a practical solution.