Skip to content
Browse files

Add 2/4 tab stop mappings

  • Loading branch information...
1 parent e2751a8 commit 78d47caf47d4fb8aeffa6ffecf2a71070bbd7a42 @wting committed
Showing with 4 additions and 2 deletions.
  1. +4 −1 .vimrc
  2. +0 −1 bundle/localvimrc
View
5 .vimrc
@@ -55,7 +55,7 @@ Bundle 'Lokaltog/vim-powerline'
" Add Additional Features
Bundle 'tpope/vim-surround'
Bundle 'scrooloose/nerdcommenter'
-Bundle 'localvimrc'
+Bundle 'embear/vim-localvimrc'
Bundle 'wincent/Command-T'
" ctrlp: Command-T replacement written entirely in VimL
@@ -268,6 +268,9 @@ set tabstop=4
set shiftwidth=4
set shiftround "use multiples of shiftwidth when using < or >
+nnoremap <S-Up> :set sw=2 ts=2 sts=2 et<CR>
+nnoremap <S-Down> :set sw=4 ts=4 sts=4 et<CR>
+
"Move tabs left/right http://stackoverflow.com/a/7192324/195139
nnoremap <silent> <S-Left> :execute 'silent! tabmove ' . (tabpagenr()-2)<CR>
nnoremap <silent> <S-Right> :execute 'silent! tabmove ' . tabpagenr()<CR>
1 bundle/localvimrc
@@ -1 +0,0 @@
-Subproject commit feb956eab4d65c3a6b4cc10c4262847274d7536a

0 comments on commit 78d47ca

Please sign in to comment.
Something went wrong with that request. Please try again.