# user
git clone --recursive https://github.com/vimuxx/.vim.git ~/.vim/
echo source ~/.vim/vimrc >> ~/.vimrc
# global
git clone --recursive https://github.com/vimuxx/.vim.git /usr/share/vim/vimfiles
echo source /usr/share/vim/vimfiles/vimrc >> /etc/vim/vimrc.local
| |
| LSP |
bash |
npm install -g bash-language-server |
| c |
apt install clangd |
| python |
npm install -g pyright |
| |
|
| cs |
ln -s ~/.vim/pack/foo/start/cs.vim/cs ~/.local/bin/ |
| |
|
| cscope |
apt install cscope |
| |
git fetch
git checkout origin/master
git submodule update --init
(case sensitive)
| |
|
LSP |
LSP cmd |
|
cscope |
cscope cmd |
|
ctags |
| |
|
|
|
|
|
|
|
|
| Code Action |
|
|
:LspCodeAction |
|
|
|
|
|
| Call |
|
Ctrl-\ C |
:LspCallHierarchyIncoming |
|
Ctrl-\ c |
:cs f c ... |
|
|
| Diagnostics |
|
|
:LspDocumentDiagnostics |
|
|
|
|
|
| Egrep Pattern |
|
|
|
|
|
:cs f e ... |
|
|
| File |
|
|
|
|
Ctrl-\ f |
:cs f f ... |
|
|
| Definition |
|
Ctrl-\ G |
:LspDefinition |
|
Ctrl-\ g |
:cs f g ... |
|
Ctrl-] |
| Hover |
|
Ctrl-\ H |
:LspHover |
|
|
|
|
|
| Hover Down |
|
Ctrl-j |
|
|
|
|
|
|
| Hover Up |
|
Ctrl-k |
|
|
|
|
|
|
| Snippet |
|
Ctrl-l |
|
|
|
|
|
|
| Rename |
|
|
:LspRename |
|
|
|
|
|
| References |
|
Ctrl-\ S |
:LspReferences |
|
Ctrl-\ s |
:cs f s ... |
|
|
| Status |
|
|
:LspStatus |
|
|
|
|
|
| Text String |
|
|
|
|
Ctrl-\ t |
:cs f t ... |
|
|
| |
|
|
|
|
|
|
|
|
| Tag stack |
|
|
|
|
|
|
|
Ctrl-t |
| |
Insert mode (for linux kernel)
| |
|
printk |
level |
color |
| |
|
|
|
|
PK! |
|
pr_alert |
1 |
red |
PK@ |
|
pr_crit |
2 |
green |
PK# |
|
pr_err |
3 |
brown |
PK$ |
|
pr_warn |
4 |
blue |
PK% |
|
pr_notice |
5 |
magenta |
PK^ |
|
pr_info |
6 |
cyan |
PK& |
|
WARN |
|
white |
PK* |
|
print_hex_dump |
|
|
| |