Last active
January 23, 2020 00:07
-
-
Save vmleon/56758c9736b6949e2beadd33a72ef251 to your computer and use it in GitHub Desktop.
Vim config file
This file contains 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
set nocompatible | |
" Turn on syntax highlighting | |
syntax on | |
" Show line numbers | |
set number | |
" Show file stats | |
set ruler | |
" Blink cursor on error instead of beeping (grr) | |
set visualbell | |
set noerrorbells | |
" tabs are spaces | |
set expandtab | |
" highlight current line | |
set cursorline | |
" Encoding | |
set encoding=utf-8 | |
" Search | |
set hlsearch " Highlight all search result | |
set smartcase | |
set ignorecase | |
set incsearch " Searches for strings as you type | |
" Highlight matching brace | |
set showmatch | |
" add yaml stuffs | |
au! BufNewFile,BufReadPost *.{yaml,yml} set filetype=yaml | |
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment