2013-07-29 51 views
0

我自己辯論是否將它發佈在SuperUser上,但我在這裏做了。 當我有這個在CSS中,VIM編輯它:當我在編輯CSS時按下Enter鍵並創建一個新行時,它給了我兩個選項卡,而不是一個

#container { 

然後我在托架壓回給我一個新的生產線,它發出的光標兩個標籤的左邊的下一行:

#container { 
     | 

而不是像這樣,我想要它。

#container { 
    | 

我怎麼能編輯.vimrc文件給我在下一行而不是兩個新的選項卡?

我的.vimrc文件。

set ts=4 
imap <C-Return> <CR><CR><C-o>k<Tab> 
set cindent 
set nocompatible 
filetype indent plugin on 
syntax on 
set hidden 
set wildmenu 
set showcmd 
set hlsearch 
set ignorecase 
set smartcase 
set backspace=indent,eol,start 
set autoindent 
set nostartofline 
set ruler 
set laststatus=2 
set confirm 
set visualbell 
set t_vb= 
set mouse=a 
set cmdheight=2 
set number 
set notimeout ttimeout ttimeoutlen=200 
set pastetoggle=<F11> 
set shiftwidth=2 
set tabstop=1 

map Y y$ 
nnoremap <C-L> :nohl<CR><C-L> 

謝謝。

+3

你的設置是什麼?你能過去輸出:set? – tristan

+1

如果你想在你的vimrc上尋求幫助,請告訴我們你的vimrc。 – romainl

+0

對不起,遲到了,不得不離開我的電腦 – BitLion

回答

1

我相信你的問題是你的shiftwidth是你的tabstop的兩倍。您還底部設置tabstop兩次,一次在頂部4次的1

嘗試tabstop設置shiftwidth相同的,真的是你想要這兩個是不是很多的情況下不同。

+0

謝謝,它解決了問題! – BitLion

相關問題