Coding, Filming, and Nothing

 

1. ~ 에다가 .vimrc 생성

2. 아래 내용 입력

if has("syntax")
	syntax on
endif

set hlsearch
set nu
set autoindent
set ts=4
set sts=4
set cindent
set laststatus=2
set shiftwidth=4
set showmatch
set smartcase
set smarttab
set smartindent
set ruler
set fileencodings=utf8,euc-kr

다른 버전

" [세부 정보 출력]
set nu
set title
set showmatch                                                                                                                                
set ruler                                                                                                                                    
                                                                                                                                             
" [색깔 설정]                                                                                                                                 
syntax on
set t_Co=256
" colorscheme slate

" [들여쓰기 설정]
set autoindent
" set smartindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set smarttab
set expandtab

" [괄호 자동 완성 설정]
inoremap { {}<ESC>ha

" [붙여넣기 설정]
"set paste
set mouse-=a

" [한글 입력 설정]
set encoding=utf-8
set termencoding=utf-8

" [커서가 있는 줄을 강조함]
set cursorline

" [검색 설정]
set ignorecase

" [Markdown 문법 설정 (Git 에서 사용)]
augroup markdown

    " remove previous autocmds
    autocmd!

    " set every new or read *.md buffer to use the markdown filetype
    autocmd BufRead,BufNew *.md setf markdown

augroup END

 

alias 등록하기 

1. ~으로 이동 ~/.bashrc 열기

2. 아래 내용 복붙 

alias gnn="conda activate GNN"
alias nv="nvidia-smi"
alias onv="watch -d -n 1 nvidia-smi"
alias c="clear"

3. source ~/.bashrc 로 클리어

profile

Coding, Filming, and Nothing

@_안쑤

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!