有一个问题How to set .vimrc for c programs?,但没有什么特别有趣的地方。.vimrc for C developers
通过什么.vimrc
选项是否方便您在Linux中开发C
? (例如建筑物,标签,标签......)任何想法都欢迎,特别是对于“外部建筑物与制造”。
有一个问题How to set .vimrc for c programs?,但没有什么特别有趣的地方。.vimrc for C developers
通过什么.vimrc
选项是否方便您在Linux中开发C
? (例如建筑物,标签,标签......)任何想法都欢迎,特别是对于“外部建筑物与制造”。
这个怎么样?
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
你可能还想'设置autoindent`和`设置cindent`来获得自动tab(或启用'filetype indent on`?) – m0tive 2011-12-17 13:33:18
https://github.com/jslim89/dotfiles
这是我的回购协议。里面已经有几种类型的vim插件,包括c.vim,ctags,自动完成等等。
如果你有做'你自己.vimrc`,你准备好在vim中编写`C`。 – kev 2011-12-17 09:43:28
尝试学习如何编写vim脚本。语法很简单,学习进度会很开心。 – 2011-12-17 10:59:32