env/dotfiles/vimrc

33 lines
996 B
VimL

" env
" Written in 2023 by Lucas
" CC0 1.0 Universal/Public domain - No rights reserved
"
" To the extent possible under law, the author(s) have dedicated all
" copyright and related and neighboring rights to this software to the
" public domain worldwide. This software is distributed without any
" warranty. You should have received a copy of the CC0 Public Domain
" Dedication along with this software. If not, see
" <http://creativecommons.org/publicdomain/zero/1.0/>.
" Options from .nexrc.
set autoindent
set ignorecase smartcase
set nowrap
set ruler
set showmatch
set showmode
set wrapscan
" VIM-specific options.
set backspace=eol,indent
set encoding=utf-8
set rulerformat=%l,%v
set wildmode=list:longest
syntax off
filetype on
autocmd FileType python setl expandtab shiftwidth=4
autocmd FileType css,html,javascript,typescript setl expandtab shiftwidth=2
autocmd FileType json,yaml setl expandtab shiftwidth=2
autocmd FileType hcl,terraform,terraform-vars setl expandtab shiftwidth=2