Skip to content

vimuxx/.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

git clone --recursive https://github.com/vimuxx/.vim.git ~/.vim/
echo source ~/.vim/vimrc >> ~/.vimrc
 
LSP bash npm install -g bash-language-server
c apt install clangd
python npm install -g pyright
   
cscope apt install cscope
   
cs ln -s ~/.vim/pack/foo/start/cscope_maps.vim/cs ~/.local/bin/
 

Update

git fetch
git checkout origin/master
git submodule update --init

Key Bindings

    LSP LSP cmd   cscope cscope cmd   ctags
                 
Code Action   Ctrl_\ A :LspCodeAction          
Call   Ctrl_\ C :LspCallHierarchyIncoming   Ctrl_\ c :cs f c ...    
File         Ctrl_\ f :cs f f ...    
Definaion   Ctrl_\ G :LspDefinition   Ctrl_\ g :cs f g ...   Ctrl_]
Diagnostics     :LspDocumentDiagnostics          
Hover   Ctrl_\ H :LspHover          
Hover Down   Ctrl_j            
Hover Up   Ctrl_k            
Snippet   Ctrl_l            
Rename   Ctrl_\ R :LspRename          
References   Ctrl_\ S :LspReferences   Ctrl_\ s :cs f s ...    
Status     :LspStatus          
                 
text string         Ctrl_\ t :cs f t ...    
egrep pattern         Ctrl_\ e :cs f e ...    
                 
go back               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    
 

Additionally

One .clangd example

CompileFlags:
  Remove:
    - -mabi=lp64
    - -fconserve-stack
    - -fno-ipa-sra
    - -fno-var-tracking-assignments
    - -mno-thumb-interwork
    - -mno-sched-prolg
    - -mno-sched-prolog
    - -mapcs
Diagnostics:
  Suppress:
    - '*'

About

~/.vim/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published