自从第一天使用Vim 3年以来,这个避风港一直困扰着我.每当我尝试通过Shift+ 缩进一行>时,当行的第一个字符以"#"开头时,它根本不起作用,无论文件类型(.php,.txt等)如何.因为#用于PHP中的注释,我也用它来装饰文本文件,例如:
# This is a comment ### 1. Instruction one # ------------ this is an sample --------------
我在Ubuntu中使用Vim 7.2进行以下.vimrc设置
syntax on
set t_Co=256
set incsearch
set hlsearch
set number
set nowrap
set nowrapscan
set ignorecase
set et
set sw=4
set smarttab
set smartindent
set autoindent
set textwidth=0
set noequalalways
set formatoptions=1
set lbr
set vb
set foldmethod=marker
Run Code Online (Sandbox Code Playgroud)
谢谢!