有一个问题How to set .vimrc for c programs?,但没有什么特别有趣的。
通过.vimrc
选项,您可以在Linux中促进C
开发吗? (例如建筑物,标签,标签......)欢迎任何想法,尤其是“外部建筑与制作”。
答案 0 :(得分:3)
怎么样?
http://mislav.uniqpath.com/2011/12/vim-revisited/
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
答案 1 :(得分:1)
https://github.com/jslim89/dotfiles
这是我的回购。里面已经有了几种类型的vim插件,包括c.vim,ctags,autocomplete等。
答案 2 :(得分:0)