Browse Source

add softtabstop default and for different syntaxes

Kevin Heinicke 10 năm trước cách đây
mục cha
commit
d40a405efd
4 tập tin đã thay đổi với 6 bổ sung0 xóa
  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!