1 > Hard setting
" setting linux kernel coding style
set cindent
set cinoptions=:0,l1,t0,g0,(0
set tabstop=8
set softtabstop=8
set shiftwidth=8
Tips: don't set "set filetype plugin indent on
2 > Plugin
Ref: vim-linux-coding-style/linuxsty.vim at master · vivien/vim-linux-coding-style · GitHub
博客介绍了Linux内核编码风格的Vim设置,包括设置cindent、cinoptions、tabstop等参数,还给出了不要设置“set filetype plugin indent on”的提示,同时提供了相关插件的参考链接。
370

被折叠的 条评论
为什么被折叠?



