Reorder and add indentation settings in .vimrc
This commit is contained in:
parent
9c2025d5a8
commit
919ae94cb2
1 changed files with 11 additions and 3 deletions
14
.vimrc
14
.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' <bar> edit!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue