aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/%HOME%
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-01-27 09:49:15 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-01-27 09:54:57 +0100
commitc67ffceb707ddfbeabc5074ee0bc2f91935a3843 (patch)
tree929c3f7d0af2f5846ee396b01bce4f6b1aba2f21 /%HOME%
parentremove .docker/config.json (diff)
downloadlinux-home-c67ffceb707ddfbeabc5074ee0bc2f91935a3843.tar.gz
linux-home-c67ffceb707ddfbeabc5074ee0bc2f91935a3843.zip
vim: enable settings explicitly
On my new macOS, some settings aren't enabled by default in vimrc_example.vim.
Diffstat (limited to '%HOME%')
-rw-r--r--%HOME%/.vimrc12
1 files 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 <S-Enter> O<Esc>