User Tools

Site Tools


Writing /home/donghee/dh8.kr/wiki/data/meta/vim.meta failed
Unable to save metadata file. Hint: disk full; file permissions; safe_mode setting.
vim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vim [2019/02/04 09:02] dongheevim [2026/06/11 05:52] (current) – external edit 127.0.0.1
Line 7: Line 7:
   * highlight syntax for xml :set filetype=xml   * highlight syntax for xml :set filetype=xml
   * set autoindent :set autoindent\_ | \_:set ai   * set autoindent :set autoindent\_ | \_:set ai
-      * spellcheck :setlocal spell spelllang=en<sub>gb</sub>+  * spellcheck :setlocal spell spelllang=en<sub>gb</sub>
   * Set tab width to 4 spaces :set tabstop=4   * Set tab width to 4 spaces :set tabstop=4
   * edit a file in a new tab :tabedit {file}   * edit a file in a new tab :tabedit {file}
Line 20: Line 20:
   * Go to last line of file G (normal mode)   * Go to last line of file G (normal mode)
  
-<code c++> +<code>
-static SerialPort sp1(port1,baudRate1),sp2(port2,baudRate2); +
-sp1.open_serial(); +
-sp2.open_serial(); +
-static char buffer1[BUFFER_LENGTH],buffer2[BUFFER_LENGTH];+
  
-signal(SIGINT, signal_callback_handler); // for exit process 
- 
-thread([](){ 
-    while(true){ 
-        int l = sp2._read_port(buffer2,BUFFER_LENGTH); 
-        if(l>0){ 
-            sp1._write_port(buffer2, l); 
-        } 
-        usleep(5*1000); 
-    } 
- 
-}).detach(); 
- 
-while(true){ 
-    int l = sp1._read_port(buffer1,BUFFER_LENGTH); 
-    if(l>0){ 
-        sp2._write_port(buffer1, l); 
-    } 
-    usleep(5*1000); 
- 
-} 
-</code> 
- 
-             
-<code> 
 * vi 에디터 사용법은 어떻게 되나요? * vi 에디터 사용법은 어떻게 되나요?
  
vim.1549270923.txt.gz · Last modified: 2026/06/11 05:52 (external edit)