Reorder and add indentation settings in .vimrc

This commit is contained in:
reo6 2024-09-06 12:30:45 +03:00
parent 9c2025d5a8
commit 919ae94cb2

14
.vimrc
View file

@ -1,7 +1,4 @@
syntax on
set tabstop=4
set softtabstop=4
set expandtab
set autoindent
set smartindent
set copyindent
@ -10,6 +7,10 @@ set ai
set si
set wrap
set expandtab
set shiftwidth=4
set tabstop=4
set number
if has('mouse')
@ -21,3 +22,10 @@ command W w
command WQ wq
command Q q
set wildmenu
filetype plugin on
filetype indent on
" :W sudo saves the file
" (useful for handling the permission-denied error)
command! W execute 'w !sudo tee % > /dev/null' <bar> edit!