From 919ae94cb23d347f4af749bccb7f40ec2c2198fc Mon Sep 17 00:00:00 2001 From: reo6 Date: Fri, 6 Sep 2024 12:30:45 +0300 Subject: [PATCH] Reorder and add indentation settings in .vimrc --- .vimrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index d8545b2..fb149a2 100644 --- a/.vimrc +++ b/.vimrc @@ -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' edit!