]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: cpp files can have a textwidth of 100
[dotfiles.git] / vim / vimrc
index 1d929256d6b47b82eb2a8d562727c2e8901f6699..de47d4c21ec708805846df7acac2beae50856782 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -70,6 +70,7 @@ Plugin 'vim-latex/vim-latex'
 Plugin 'alx741/vinfo'
 Plugin 'derekwyatt/vim-protodef'
 Plugin 'ram-z/vim-clang-format'
+Plugin 'sgeb/vim-diff-fold'
 " needs editing colorscheme
 " Plugin 'jeaye/color_coded'
 " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp
@@ -467,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