:w: save changes to the file:q: quit Vim:wq: save changes and quit Vim/[string]: search the string from forward?[string]: search the string from backward:sp: divide the window horizontally:vs: divide the window verticallycmd + w -> w: move window-to-windowdd: delete the lineyy: copy the line:from,toy: copy from from line to to line. e.g. :2,5yp: pastevim ~/.vimrcset nu: display line numberset nonu: hide line numberset mouse=a: enable auto visible mode using mouseset mouse-=a: disable auto visible mode using mouseset autoindent: set automatic indentationset ts=[#]: adjust tap size
리눅스 환경에서는 brew 대신 sudo apt-get install ctags
Ctrl + ]: follow tagCtrl + T: back to last tag

리눅스 환경에서는 brew 대신 sudo apt-get install cscope
:cs find [type] [search]
0 or s: find this C symbol1 or g: find this definition2 or d: find functions called by this function3 or c: find functions calling this function4 or t: find assignments to e.g. :cs find c fecthing
📖 출처
- chat gpt
- 대학교 운영체제 강의자료