Browse Source

increase and decrease indent

toggle expandtab
pull/1/head
Harish.K 12 years ago
parent
commit
df8ec3af1d
  1. 13
      home/.vimrc

13
home/.vimrc

@ -8,8 +8,8 @@
map <F8> :TlistToggle<CR> map <F8> :TlistToggle<CR>
nmap <F2> :wa<Bar>exe "mksession! " . v:this_session<CR> nmap <F2> :wa<Bar>exe "mksession! " . v:this_session<CR>
set mouse=a set mouse=a
cmap cwd lcd %:p:h
cmap cd. lcd %:p:h
" cmap cwd lcd %:p:h
" cmap cd. lcd %:p:h
set timeout timeoutlen=1000 ttimeoutlen=100 set timeout timeoutlen=1000 ttimeoutlen=100
: " } : " }
@ -49,6 +49,9 @@
set expandtab " Tabs are spaces, not tabs set expandtab " Tabs are spaces, not tabs
set tabstop=4 " An indentation every four columns set tabstop=4 " An indentation every four columns
set softtabstop=4 " Let backspace delete indent set softtabstop=4 " Let backspace delete indent
nmap <Leader>tt :let &expandtab=!&expandtab<CR>
nmap <Leader>tj :let &shiftwidth=&shiftwidth-2\|let &tabstop=&tabstop-2\|let &softtabstop=&softtabstop-2\|echo 'tabstop=' &tabstop<CR>
nmap <Leader>tk :let &shiftwidth=&shiftwidth+2\|let &tabstop=&tabstop+2\|let &softtabstop=&softtabstop+2\|echo 'tabstop=' &tabstop<CR>
" } " }
" for java { " for java {
@ -148,10 +151,13 @@
Bundle 'amirh/HTML-AutoCloseTag' Bundle 'amirh/HTML-AutoCloseTag'
Bundle 'tpope/vim-surround' Bundle 'tpope/vim-surround'
Bundle 'vim-scripts/AutoComplPop' Bundle 'vim-scripts/AutoComplPop'
" Bundle 'Shougo/eocomplcache'
Bundle 'spf13/vim-autoclose' Bundle 'spf13/vim-autoclose'
Bundle 'scrooloose/nerdtree' Bundle 'scrooloose/nerdtree'
Bundle 'harish2704/harish2704-vim' Bundle 'harish2704/harish2704-vim'
" Bundle 'Shougo/neocomplcache' " Bundle 'Shougo/neocomplcache'
Bundle 'digitaltoad/vim-jade'
Bundle 'mustache/vim-mode'
@ -159,6 +165,7 @@
Bundle 'honza/vim-snippets' Bundle 'honza/vim-snippets'
" Bundle 'int3/vim-taglist-plus' " Bundle 'int3/vim-taglist-plus'
Bundle 'vim-scripts/EasyGrep' Bundle 'vim-scripts/EasyGrep'
Bundle 'briancollins/vim-jst'
Bundle 'vim-scripts/matchit.zip' Bundle 'vim-scripts/matchit.zip'
Bundle 'vim-scripts/adt.vim' Bundle 'vim-scripts/adt.vim'
" Bundle 'tpope/eclim' " Bundle 'tpope/eclim'
@ -237,7 +244,7 @@
" } " }
" gides { " gides {
let g:indent_guides_start_level = 2
" let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1 let g:indent_guides_guide_size = 1
let g:indent_guides_enable_on_vim_startup = 1 let g:indent_guides_enable_on_vim_startup = 1
" } " }

Loading…
Cancel
Save