aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-05-26 16:46:31 -0400
committerTeddy Wing2014-05-26 16:46:31 -0400
commitc57c5f3414c70ec26fa1c2e28da4523ca19cebed (patch)
treec5e8d451e5869f0f792c49b27fd8653a24b48ee1 /vimrc
parent5f9e0aa4e524097c5e2428b96c21c4f92a2a3b9f (diff)
downloaddotvim-c57c5f3414c70ec26fa1c2e28da4523ca19cebed.tar.bz2
vimrc: delete `Stab` command
Remove the `Stab` command now that I moved it to a self-contained plugin.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc32
1 files changed, 2 insertions, 30 deletions
diff --git a/vimrc b/vimrc
index 951e641..fb20d0d 100644
--- a/vimrc
+++ b/vimrc
@@ -160,6 +160,8 @@
" 2014.05.26:
" * Add :cnext and :cprevious mappings for easier navigation in the
" quickfix window. Key pairs taken from Tim Pope's unimpaired.vim.
+" * Delete `Stab` command now that I moved it to its own plugin. Makes
+" for better code organisation and a leaner vimrc.
"
@@ -445,36 +447,6 @@ nnoremap [q :cprevious<cr>
" Commands
" ========
-" Set tabstop, softtabstop and shiftwidth to the same value
-" http://vimcasts.org/episodes/tabs-and-spaces/
-command! -nargs=* Stab call Stab()
-function! Stab()
- let l:tabstop = 1 * input('set tabstop = softtabstop = shiftwidth = ')
- if l:tabstop > 0
- let &l:sts = l:tabstop
- let &l:ts = l:tabstop
- let &l:sw = l:tabstop
- endif
- call SummarizeTabs()
-endfunction
-
-function! SummarizeTabs()
- try
- echohl ModeMsg
- echon 'tabstop='.&l:ts
- echon ' shiftwidth='.&l:sw
- echon ' softtabstop='.&l:sts
- if &l:et
- echon ' expandtab'
- else
- echon ' noexpandtab'
- endif
- finally
- echohl None
- endtry
-endfunction
-
-
" Swap between soft wrapping and no wrapping
" http://vimcasts.org/episodes/soft-wrapping-text/
command! -nargs=* Wrap set wrap linebreak nolist