X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/57dd63ffa7e5b7dbdff96acdd23e0e55cf2fafab..7f07453d192475089c2b550f69292d4636edc62c:/vim/vimrc?ds=inline diff --git a/vim/vimrc b/vim/vimrc index bffc315..11a8823 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -381,10 +381,13 @@ map Q gq " break undo sequence before removing word inoremap u -nmap b :set expandtab tabstop=4 shiftwidth=4 softtabstop=4 -nmap B :set expandtab tabstop=8 shiftwidth=8 softtabstop=4 -nmap M :set noexpandtab tabstop=8 softtabstop=4 shiftwidth=4 -nmap m :set expandtab tabstop=2 shiftwidth=2 softtabstop=2 +nnoremap coe :set =&expandtab ? 'noexpandtab' : 'expandtab' +nnoremap [oe :set expandtab +nnoremap ]oe :set noexpandtab + +for idt in range(1,8) + exe 'nnoremap co'.idt.' :set tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'' +endfor " space will toggle current fold in normal mode nnoremap za