Skip to content

Instantly share code, notes, and snippets.

@mrjk
Last active November 13, 2024 15:43
Show Gist options
  • Save mrjk/1d146a701b201e77279ea4e7c5d075a5 to your computer and use it in GitHub Desktop.
Save mrjk/1d146a701b201e77279ea4e7c5d075a5 to your computer and use it in GitHub Desktop.
System wide Debian sane vimrc for devops
" Source: https://gist.github.com/mrjk/1d146a701b201e77279ea4e7c5d075a5
" Last update: 2024/11/13
" Place this in /etc/vim/vimrc.local for debian based distros
" Place this in /etc/vimrc.local for rhel based distros
" Debian specifities
if filereadable("/usr/share/vim/vim80/defaults.vim")
source /usr/share/vim/vim80/defaults.vim
endif
" now set the line that the defaults file is not reloaded afterwards!
let g:skip_defaults_vim = 1
" Base options
set showcmd " Show (partial) command in status line.
set showmatch " Show matching brackets.
set incsearch " Incremental search
set autowrite " Automatically save before commands like :next and :make
set ttymouse= " Disable mouse tty
set mouse= " Disable mouse for good
" Color support
syntax on
set background=dark
set nu
" Enable indentation rules per files
filetype plugin indent on
" Vim sane tabs
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set backspace=indent,eol,start " Proper backspace behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment