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!