When I type :set inc
it doesn't work and below status bar shows include=^\s*\(from\|import\)
. Even when I turn on GVim it shows include=^\s*#\s*include
error.
Here is my .vimrc
file
set nocp
filetype plugin indent on
set hls inc ar ai wrap lbr nu rnu et magic sc acd aw sb spr mouse=a sw=4 sts=4 ts=4 ls=2 bs=indent,eol,start
autocm BufNewFile *.cpp -r ~/Templates/CP_C++.cpp
let mapleader = ","
nnoremap <F9> :w<BAR>:!clear && g++ -Wall -g -std=gnu++14 -static -DLOCAL "%:p" && ./a.out<CR>
imap <F9> <ESC><F9>
nnoremap <leader>b :ls<CR>:buffer<Space>
inoremap <leader>; <ESC>
nnoremap <leader>f :let @+ = expand("%:p")<CR>
noremap <leader>a ggVG
noremap <leader>c "+y
noremap <leader>d "_d
inoremap {<CR> {<CR>}<ESC>O
inoremap ( ()<left>
inoremap [ []<left>
inoremap " ""<left>
inoremap ' ''<left>
vnoremap fb <ESC>`>a)<ESC>`<i(<ESC>
vnoremap qq <ESC>`>a"<ESC>`<i"<ESC>
'include'
option (short name'inc'
) is currently set to. Were you trying to enable'incsearch'
instead? If so, you needset incsearch
or you can shorten it toset is
.:set is
is short form ofset incsearch
. Thank you very much. Should I remove my question as this is a silly mistake? or you will post that as answer?