사용자 도구

사이트 도구


vim

문서의 이전 판입니다!


Vim

.vimrc

set tabstop=4 shiftwidth=4 expandtab
set nu
set ff=unix
.vimrc
" Python 파일일 경우 tab 설정, 폴딩설정
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile *.py setlocal foldmethod=indent
 
set expandtab           " 탭을 스페이스 처리
set tabstop=4           " 탭당 4개 스페이스
set softtabstop=4
set shiftwidth=4        " Auto indent에서 스페이스 개수
set autoindent          " Auto indent
 
" 백스페이스 강화
set backspace=indent,eol,start
 
set ruler               " show line and column number
set showcmd             " show (partial) command in status line
 
" Syntax Highlighting
if has("syntax")
    syntax on
endif
 
set nu                  " 라이번호
set hlsearch            " 검색어 하이라이팅
set showmatch           " 일치하는 괄호 하이라이팅
 
" Vim Color schema
colorscheme jellybeans
 
" 마지막 편집 위치 복원 기능
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "norm g`\"" |
\ endif
 
set laststatus=2 " 상태바 표시를 항상한다
set statusline=\ %<%l:%v\ [%P]%=%a\ %h%m%r\ %F\
 
 
# 출처: http://greatkim91.tistory.com/196 [행복한 아빠]

^M 문자 제거

Neovim

vim.1593704607.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)