From c67ffceb707ddfbeabc5074ee0bc2f91935a3843 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 27 Jan 2023 09:49:15 +0100 Subject: vim: enable settings explicitly On my new macOS, some settings aren't enabled by default in vimrc_example.vim. --- %HOME%/.vimrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/%HOME%/.vimrc b/%HOME%/.vimrc index cfce770..59f0def 100644 --- a/%HOME%/.vimrc +++ b/%HOME%/.vimrc @@ -1,6 +1,8 @@ source $VIMRUNTIME/vimrc_example.vim +filetype plugin on syntax enable + "set background=dark set background=light colorscheme solarized @@ -11,6 +13,8 @@ set nowrap " Don't wrap lines. set softtabstop=4 set shiftwidth=4 set expandtab +set autoindent +filetype indent on " C++'s public/private/protected keywords don't increase indentation level. set cinoptions+=g0 @@ -55,13 +59,17 @@ endif set exrc set secure -" Case-insensitive (more precisely, so-called smart) search. +" Search settings. set ignorecase set smartcase +set hlsearch +set incsearch -" Highlight current line. +" Line numbers & identification. set cursorline "set cursorcolumn +set number +set ruler " Insert newline without entering insert mode. nmap O -- cgit v1.2.3