Git

[Git] Vim꾸미기

인생은단짠단짠 2022. 9. 17. 14:53

 

순정 vim은 정말 불편한 사항이 많습니다.

행표시, tab등등 편리하게 vim을 사용하기 위해서는 vim 설정 파일을 직접 수정해줘야 합니다.

 

vim 설정파일을 만듬과 동시에 열어줍니다.

$ vi ~/.vimrc

 

그리고 밑의 코드를 복사 붙여넣기 해줍니다.

" Be iMproved
set nocompatible

" Use UTF-8 without BOM
set encoding=utf-8

syntax enable                               " syntax highlight

set t_Co=256                                " set 256 colors
"colorscheme wombat256mod                    " set color scheme

set number                                  " show line numbers
set ruler
set ttyfast                                 " terminal acceleration

set tabstop=4                               " 4 whitespaces for tabs visual presentation
set shiftwidth=4                            " shift lines by 4 spaces
set smarttab                                " set tabs for a shifttabs logic
set expandtab                               " expand tabs into spaces
set autoindent                              " indent when moving to the next line while writing code

set cursorline                              " shows line under the cursor's line
set showmatch                               " shows matching part of bracket pairs (), [], {}

set enc=utf-8	                            " utf-8 by default

set nobackup 	                            " no backup files
set nowritebackup                           " only in case you don't want a backup file while editing
set noswapfile 	                            " no swap files

set backspace=indent,eol,start              " backspace removes all (indents, EOLs, start) What is start?

set scrolloff=10                            " let 10 lines before/after cursor during scroll

set clipboard=unnamed                       " use system clipboard

set exrc                                    " enable usage of additional .vimrc files from working directory
set secure                                  " prohibit .vimrc files to execute shell, create files, etc...

set mouse=a

 

이를 저장하고 다시 vim 파일을 열어보면 바뀐 vim을 사용하실 수 있습니다.

'Git' 카테고리의 다른 글

[Git] 기본 브랜치를 main으로 변경하기  (0) 2022.12.16
[Git] 협업 연습  (0) 2022.09.17
[Git] Rename과 Revert  (0) 2022.09.16
[Git] Hexo를 통해 나만의 블로그 만들기  (0) 2022.09.16
[Git] Git flow 전략  (0) 2022.09.16