Skip to content

Instantly share code, notes, and snippets.

@rlaace423
Last active August 31, 2023 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rlaace423/ebedd4119379b779360327e1da1ff3f5 to your computer and use it in GitHub Desktop.
Save rlaace423/ebedd4119379b779360327e1da1ff3f5 to your computer and use it in GitHub Desktop.
vim 기초설정
" 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