Last active
August 31, 2023 19:44
-
-
Save rlaace423/ebedd4119379b779360327e1da1ff3f5 to your computer and use it in GitHub Desktop.
vim 기초설정
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
" no VI compatible mode | |
set nocompatible | |
" indentation | |
set autoindent | |
filetype plugin indent on | |
" numbers to be saved commands, search patterns | |
set history=100 | |
" show current cursor position | |
set ruler | |
" save last cursor position | |
autocmd BufReadPost * | |
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' | |
\ | exe "normal! g`\"" | |
\ | endif | |
" show command | |
set showcmd | |
" show results immediately while entering the search pattern | |
set incsearch | |
" highlight search | |
set hlsearch | |
" Syntax highlighting | |
if has("syntax") | |
syntax on | |
endif | |
" tab size | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
" tab --> space | |
set expandtab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment