]> git.rmz.io Git - dotfiles.git/commitdiff
vim: co# should be local
authorSamir Benmendil <me@rmz.io>
Thu, 15 Sep 2016 14:28:54 +0000 (15:28 +0100)
committerSamir Benmendil <me@rmz.io>
Thu, 15 Sep 2016 14:28:54 +0000 (15:28 +0100)
vim/vimrc

index cd9103633930136b4f454ddb4f3dc9e1868f9a04..de47d4c21ec708805846df7acac2beae50856782 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -468,7 +468,7 @@ nnoremap [oe :set expandtab<CR>
 nnoremap ]oe :set noexpandtab<CR>
 
 for idt in range(1,8)
-  exe 'nnoremap co'.idt.' :set tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'<CR>'
+  exe 'nnoremap co'.idt.' :setlocal tabstop='.idt.' shiftwidth='.idt.' softtabstop='.idt.'<CR>'
 endfor
 
 " toggle auto format of text