2024-01-06 14:31:03 +00:00
|
|
|
" Supported by almost all vi implementations.
|
|
|
|
set autoindent
|
|
|
|
set number
|
|
|
|
set ruler
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
set showmatch
|
|
|
|
set exrc
|
|
|
|
|
2024-03-16 14:51:44 +00:00
|
|
|
" vim-specific options
|
2024-01-09 23:09:26 +00:00
|
|
|
|
2024-03-16 14:51:44 +00:00
|
|
|
"set compatible " Be compatible with vi (not supported in nvim)
|
2024-01-09 23:09:26 +00:00
|
|
|
|
|
|
|
set fileformat=unix
|
|
|
|
set encoding=UTF-8
|
|
|
|
|
2024-01-06 14:31:03 +00:00
|
|
|
set syntax=on
|
2024-04-02 12:19:52 +00:00
|
|
|
set colorcolumn=80,100
|
|
|
|
set textwidth=80
|
2024-01-06 14:31:03 +00:00
|
|
|
|
2024-01-09 23:09:26 +00:00
|
|
|
set autoread
|
2024-04-02 12:19:52 +00:00
|
|
|
" set spell
|
2024-01-09 23:09:26 +00:00
|
|
|
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
|
|
|
|
set showcmd
|
|
|
|
set showmode
|
2024-03-16 14:51:44 +00:00
|
|
|
|
|
|
|
" nvim-specific options
|
|
|
|
|
|
|
|
set mouse= " Disable mouse support
|
|
|
|
|
2024-04-02 12:19:52 +00:00
|
|
|
" Prevent the terminal from swallowing ESC
|
|
|
|
tnoremap <Esc> <C-\><C-n>
|