Skip to content

Instantly share code, notes, and snippets.

@thcipriani
Created April 18, 2017 18:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thcipriani/429610e36a35c3fabffa51d5c6c862ec to your computer and use it in GitHub Desktop.
Save thcipriani/429610e36a35c3fabffa51d5c6c862ec to your computer and use it in GitHub Desktop.
" SetSpaces ------------------------------------------------------------ {{{
function! SetSpaces(arg)
echo "settings spaces to: " . a:arg
execute 'set tabstop=' . a:arg
execute 'set shiftwidth=' . a:arg
execute 'set softtabstop=' . a:arg
endfunction
command! -nargs=1 SetSpaces :call SetSpaces(<f-args>)
" }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment