add SpacesToTabs command

This commit is contained in:
Ray Elliott 2021-09-08 17:08:30 +01:00
parent 6af0c10297
commit ca70b402c4
2 changed files with 10 additions and 0 deletions

9
init.commands.vim Normal file
View File

@ -0,0 +1,9 @@
function! s:spacestotabs()
%s/^ / /e
%s/^ / /e
%s/^ / /e
%s/^ / /e
%s/^ / /e
%s/^ / /e
endfunction
command SpacesToTabs call s:spacestotabs()

View File

@ -8,6 +8,7 @@ source ~/.config/nvim/init.plugins.vim
source ~/.config/nvim/init.tabline.vim source ~/.config/nvim/init.tabline.vim
source ~/.config/nvim/init.auto-window.vim source ~/.config/nvim/init.auto-window.vim
source ~/.config/nvim/init.fold-text.vim source ~/.config/nvim/init.fold-text.vim
source ~/.config/nvim/init.commands.vim
" TODO - maybe separate some of these into own files too " TODO - maybe separate some of these into own files too
" #functions {{{ " #functions {{{