$ sudo apt update
$ sudo apt install "packagename"
$ sudo apt remove "packagename"
$ sudo apt search "packagename"
$ sudo apt download "packagename"
$ tree -L 3 ─╯
.
├── control
├── control.tar.xz
├── data.tar.xz
├── debian-binary
├── htop_2.2.0-2build1_amd64.deb
├── md5sums
└── usr
├── bin
│ └── htop
└── share
├── applications
├── doc
├── man
└── pixmaps
7 directories, 7 files
let mapleader=" "
set nu
syntax on
set hlsearch
set tabstop=4
set autoindent
set cursorline
set wrap
set showcmd
set wildmenu " command completion
set hlsearch
exec "nohlsearch"
set incsearch
set ignorecase
set smartcase
noremap K 10k
noremap J 10j
noremap :nohlsearch
" key mapping
map s
map S :w
map Q :q
map R :source $MYVIMRC
imap jk
map sh :split
map sv :vsplit
map h h
map j j
map k k
map l l
nnoremap >
nnoremap <
nnoremap +
nnoremap -
map :m -2
map :m +1
map tu :tabe
map tn :+tabnext
map tp :-tabnext
call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'ghifarit53/tokyonight-vim'
call plug#end()
let g:tokyonight_style = 'night'
let g:tokyonight_enable_italic = 1
colorscheme tokyonight
{
"tasks": [
{
"type": "cppbuild",
"label": "wangyang",
"command": "/usr/bin/clang++",
"args": [
"-std=c++17",
"-stdlib=libc++",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "调试器生成的任务。"
}
],
"version": "2.0.0"
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "C/C++: clang++ build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb",
"preLaunchTask": "wangyang"
}
]
}
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}