Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn off insearch in VIM?

Tags:

vim

everybody. This afternoon I've read through VIM's tutorial. But there is a question left, I've tried google and search on stackflow, no relevant answers.

I know :set hls is to open highlight search and insearch function. And I also know, I can use :set nohls to turn off highlight search But when I try to use :set nois or :set noinsearch 'Whoops!' comes

Could anyone who passed by can told me how to turn off insearch? Thank you!

like image 332
Mario Avatar asked Jan 11 '14 08:01

Mario


1 Answers

You can toggle a setting with a bang!

:set is!

Or if you aren't sure of the current status, prefix with no:

:set nois

These should work for you. If not, you have something with your setup or vim. Also note that the long form of the setting is spelled incsearch with a c.

like image 50
mike3996 Avatar answered Oct 15 '22 00:10

mike3996