-
Vim-라인 접기fold명령어단축키z로 시작Vim_Editor_IDE/Vim단축키정리 2022. 2. 16. 16:32728x90
run
:set foldmethod=indent.
암기 하자!!!!
https://www.linux.com/training-tutorials/vim-tips-folding-fun/Vim tips: Folding fun - Linux.com
The problem with writing and editing on a computer, versus having words on paper, is that it’s usually hard to compare text from different sections of a document when they don’t fit on the screen together. One way to do it is to use Vim’s viewport
www.linux.com
접은거 저장 잊지 말자!!
Saving folds
After you’ve gone to all the trouble of creating several folds in a longer document, it’d be a shame to lose them when you close the file. If you’d like to save the folds before you leave the file, run :mkview. When you reload the file, run :loadview, and Vim will restore the folds to the state the file was in at the time you ran :mkview.
공식 문서
http://vimdoc.sourceforge.net/htmldoc/options.html#'foldmethod'
https://youtu.be/pnc9_d1k5-4
zf 접기 만들기
zo 접힌거 열기
zc 열린거 닫기
그외에 세팅
미리 해주기
폴더도 만들기
폴딩 사용하기
zi - 접는기능 사용 토글
zv - 커서 줄 보기
zo - 부분 펴기
zc - 부분 접기
zM - 모두 접기
zR - 모두 펴기
zd - folding 영역 삭제
등등
출처: https://kukuta.tistory.com/7vim editor - foldmethod
/** 수천 줄이나 되는 코드라인을 쳐다 보고 있노라면 막막하니 스크롤 하는것 조차도 힘이 든다. 이럴경우에는 vim에서 제공하는 foldmethod 를 이용한다면 상당히 편하다. */ 1. 사용법 보기 vim 편집
kukuta.tistory.com
[HardCore in Programming]
Vim Full Course - FreeCodeCamp
https://youtu.be/RZ4p-saaQkc
Vim Cheat Sheet(vim 정리 끝판왕 )
https://vim.rtorr.com/lang/koVim Cheat Sheet
Tip 레지스터는 ./viminfo에 저장되고, 다음 Vim 재시작 때 다시 읽어들입니다. Tip 특수 레지스터: 0 - 최근 복사 레지스터 " - 최근 사용 레지스터 % - 현재 파일명 # - 대체 파일명 * - 클립보
vim.rtorr.com
반응형'Vim_Editor_IDE > Vim단축키정리' 카테고리의 다른 글
Advanced Vim Workflows (0) 2022.02.17 Vim 창 나눠서 바로 새파일 만들기:vs newfile.rs(rs의 확장자newfile 바로 만들어짐 편함 ㅎ (0) 2022.02.17 Vim-빨리 입력하는거 단축키 연구 ::coc install 하는거 단서 나옴 :: 2개가 들어가도 되네 ㅎㅎ (0) 2022.02.17 Vim]autocommands & YAML (0) 2022.02.17 Vim_tabs으로 여러파일 띄우고 관련 명령어 (0) 2022.02.15 Vim]러스트_Rust용_태크바죽인다.#tagfunclsp#complete_tagfunc (0) 2022.02.15 Vim] J 대문자J끝-밑에 있는 코드 현재 라인 뒤에 그대로 붙이기join line below to the current line (0) 2022.02.14 Vim_ 단어 바꿀때 하나하나 물어보고 바꿈 개꿀6분36초%s/first/second/gc) (0) 2022.02.14