ํ๋ฌ๊ทธ์ธ ์์ด vim์ ์ต์ ์ค์ ์ผ๋ก ์ฌ์ฉํ๊ธฐ
์๊ฒฉ์ง์์ vi(m)์ ์ฌ์ฉํ ๋ ๊ฐ๋จํ ํธ์ง์ ๊ด์ฐฎ์ผ๋ ์ฝ๋๋ฅผ ์์ ํ๊ฑฐ๋ ํ ๋์๋ ๋ถํธํ๋ค. ํ์ง๋ง ํ๋ฌ๊ทธ์ธ๊ณผ ๋ง์ ์ค์ ์ ํ ๊ฒฝ์ฐ ๋ฒ๊ฑฐ๋กญ๊ธฐ๋ ํ๊ณ ๋ฌด๊ฑฐ์์ง๊ธฐ๋ ํ๋ค. ํ๊ฐ์ง ๋ฐฉ๋ฒ์ ๋ก์ปฌ์ ํ๊ฒฝ์์ scp๋ฅผ ์ด์ฉํด ํธ์งํ๋ ๋ฐฉ๋ฒ์ด๋ค. nvim scp ์ฐธ์กฐ. ๋ ๋ค๋ฅธ ๋ฐฉ๋ฒ์ ์์ฃผ ๋ถํธํ์ง ์๋ ์ ์์ ํ๊ฒฝ์ ์ค์ ํ๊ณ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ด๋ค. ์ด ๊ฒฝ์ฐ ํ๋ฌ๊ทธ์ธ ์ฌ์ฉ์ ํ์ง ์๊ณ , ์ต์ํ์ ์ค์ ๋ง ํ๋ ๊ฒ์ด๋ค. ์ฅ์ ์ ๊ฐ๋ณ๊ณ ๋น ๋ฅด๋ฉด์ ํ๊ฒฝ์ค์ ๋ ์ต์ํ์ผ๋ก ํ ์ ์์ด ํธ๋ฆฌํ๋ค. ํนํ ์๊ฒฉ์ง๊ฐ ์ ์ฌ์ ์ปดํจํฐ์ด๊ฑฐ๋ ๋ผ์ฆ๋ฒ ๋ฆฌํ์ด ๋ฑ์ผ ๋ ์ ๋นํ๋ค. Setup how to setup # Install vim or nvim sudo apt install vim # Setup for (v)vim vi ~/.vimrc # Use vi ~/myproject/myfile.c .vimrc " " minimal vimrc with no (extra) plugins " "load system defaults if filereadable(expand('$VIMRUNTIME/defaults.vim')) unlet! g:skip_defaults_vim source $VIMRUNTIME/defaults.vim endif "regular settings "---------------- " ui set number set ruler set wildmenu set showcmd set showmatch " encoding/format set encoding=utf-8 set fileformats=unix,dos,mac " searching set hlsearch set incsearch set ignorecase set smartcase " indent set shiftwidth=4 set tabstop=4 set softtabstop=4 set autoindent " key timeout values set esckeys set ttimeoutlen=20 set timeoutlen=1000 " allow syntax and filetype plugins syntax enable filetype plugin indent on runtime macros/matchit.vim " autocmds "--------- augroup general autocmd! "keep equal proportions when windows resized autocmd VimResized * wincmd = "save cursor position in a file autocmd BufReadPost * if line("'\"") > 1 && line("'\"") \ <= line("$") | exe "normal! g'\"" | endif augroup END augroup languages autocmd! autocmd BufNewFile,BufRead *.bash set syntax=sh autocmd FileType python xnoremap <leader>r <esc>:'<,'>:w !python3<CR> autocmd FileType go set noexpandtab autocmd FileType html :syntax sync fromstart autocmd FileType html,javascript,css,json,yaml,sh \ setlocal ts=2 sts=2 sw=2 expandtab augroup END REFERENCE A minimal Vimrc - https://madjam.dev/posts/a-minimal-vimrc/