Created
February 14, 2023 04:26
-
-
Save frontrangerider2004/d595c3afbef76f1901ae19a1a3f6ebc4 to your computer and use it in GitHub Desktop.
A reasonable vimrc for macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Show line numbers | |
set number | |
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabkey | |
set smarttab | |
" 1 tab == 4 spaces | |
set shiftwidth=4 | |
set tabstop=4 | |
" Enable filetype plugins | |
filetype plugin on | |
filetype indent on | |
set ai "Auto indent | |
set si "Smart indent | |
set wrap "Wrap lines | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" Configure backspace so it acts as it should act | |
set backspace=eol,start,indent | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" How many tenths of a second to blink when matching brackets | |
set mat=2 | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
" Enable syntax highlighting | |
syntax enable | |
" Set utf8 as standard encoding and en_US as the standard language | |
set encoding=utf8 | |
" Use Unix as the standard file type | |
set ffs=unix,dos,mac | |
" Turn backup off, since most stuff is in SVN, git et.c anyway... | |
set nobackup | |
set nowb | |
set noswapfile | |
" Return to last edit position when opening files (You want this!) | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif | |
" Remember info about open buffers on close | |
set viminfo^=% | |
filetype plugin indent on | |
syntax on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment