浏览代码

add softtabstop default and for different syntaxes

Kevin Heinicke 10 年之前
父节点
当前提交
d40a405efd
共有 4 个文件被更改,包括 6 次插入0 次删除
  1. 1 0
      .vim/after/ftplugin/c.vim
  2. 1 0
      .vim/after/ftplugin/html.vim
  3. 1 0
      .vim/after/ftplugin/tex.vim
  4. 3 0
      .vimrc

+ 1 - 0
.vim/after/ftplugin/c.vim

@@ -1,2 +1,3 @@
 setlocal shiftwidth=2
 setlocal tabstop=2
+setlocal softtabstop=2

+ 1 - 0
.vim/after/ftplugin/html.vim

@@ -1,2 +1,3 @@
 setlocal shiftwidth=2
 setlocal tabstop=2
+setlocal softtabstop=2

+ 1 - 0
.vim/after/ftplugin/tex.vim

@@ -1,2 +1,3 @@
 setlocal shiftwidth=4
 setlocal tabstop=4
+setlocal softtabstop=4

+ 3 - 0
.vimrc

@@ -26,6 +26,7 @@ Plugin 'suan/vim-instant-markdown'
 Plugin 'tpope/vim-markdown'
 Plugin 'KabbAmine/vCoolor.vim'
 Plugin 'nvie/vim-flake8'
+Plugin 'Raimondi/delimitMate'
 " Plugin 'Townk/vim-autoclose'
 " all three following plugins are needed for vim-snipmate
 Bundle "MarcWeber/vim-addon-mw-utils"
@@ -76,6 +77,8 @@ set number "Show line numbers
 syntax on "Set syntax highlighting on
 
 set tabstop=4 " width of tab
+set softtabstop=4
+set shiftwidth=4
 set expandtab " use 'tabstop' spaces instead of tab
 set colorcolumn=80 " Bar hinting for 80 chars
 set breakindent "baby, yeah!