在Vim中,当我通过输入/ x I进行“x”的增量搜索,然后按n跳转到下一个事件。如果我刚刚匹配文件中的最后一次,当我按n时,光标将开始在文件的开头寻找一个匹配 – 它会循环回到开头。我不想让它循环回到开始。我想要n在最终发生之后根本找不到任何更多的比赛。我想要这个行为的原因是,我可以很容易地看到,当我搜索整个文件。
有谁知道如何影响这个行为?
FYI:我使用以下.vimrc选项:
colorscheme zenburn " zenburn colorscheme set nocompatible " prevent Vim from emulating Vi's bugs set scrolloff=5 " keeps cursor away from top/bottom of screen set nobackup " don't make automatic backups set incsearch " incremental searching set ignorecase " case insensitive matching set smartcase " smart case matching set showmatch " show matching bracket set autoindent " indentation set smartindent " indentation set cindent " indenting for C code set tabstop=4 " 4-space tabs set shiftwidth=4 " 4-space tabs Syntax on " Syntax highlighting filetype on " behavior based on file type filetype plugin on " behavior based on file type filetype indent on " behavior based on file type set visualbell " replace beeping with flashing screen set gfn=Lucida_Sans_Typewriter:h10:cANSI
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。