linux
Linux使用
- find : $ find . -name ‘my*’ 搜索当前目录(含子目录,以下同)中,所有文件名以my开头的文件。 http://www.ruanyifeng.com/blog/2009/10/5_ways_to_search_for_files_using_the_terminal.html
ubuntu wifi热点
http://blog.csdn.net/sunmc1204953974/article/details/45740853
删除build文件
find . -name "build" | xargs rm -rf
VIM
vim-plug Installation
1 |
|
https://github.com/junegunn/vim-plug
coc.nvim plugin
~/.vimrc
1 |
|
https://www.youtube.com/watch?v=7-dfpQ5sexk
debug
requirement
vim > 8.1
need gdb installed
cloop.c
1 |
|
compile
1 |
|
g++ works too
plugin load
命令模式下
1 |
|
1 |
|
https://sourceware.org/gdb/current/onlinedocs/gdb/
https://medium.com/swlh/debugging-c-programs-in-vim-683ec257b9e2
Vim TermDebug Plugin - YouTube
Vim Techniques 03 - GDB Debugging right inside Vim - YouTube
prepare nodejs
1 |
|
reformat code
As soon you open a file in VIM, just press the “g” key twice. This should move the cursor to the beginning of the file. Then hit the “=” key. Finally, hold “shift” and hit the “g” key again.
Search
1. Move to the Next Match:
After the first match is found, to move to the next match, press:
1 |
|
This will move the cursor to the next occurrence of the search pattern.
2. Move to the Previous Match:
If you want to move to the previous match, press:
1 |
|
3. Search Backwards:
If you want to search backward (from your current cursor position toward the beginning of the file), use:
1 |
|
Then, use n
to move to the previous match (in the reverse direction) and N
to move in the opposite direction.