C++缩进在Vim上不起作用
问题描述:
我在Vim中缩进工作时遇到了问题。我使用C++编写代码。 我在Ubuntu 9.10上使用vim.nox 我在 上有文件类型插件缩进我也试过设置cident,设置autoindent,设置smartindent等 自动缩进似乎不起作用。C++缩进在Vim上不起作用
答
由于您没有显示您的~/.vimrc
,所以很难分辨出您的问题。你是否激活filetype plugin
?
set filetype plugin on
尝试“filetype plugin indent on” – momogentoo 2013-01-28 19:09:54