Skip to content

Commit

Permalink
Add option toggle for expandtab (yoe)
Browse files Browse the repository at this point in the history
Adds `[oe`, `]oe`, and `yoe` bindings to set and toggle `expandtab`.
  • Loading branch information
iliekturtles authored and Boutin, Michael committed Jan 29, 2021
1 parent 4afbe5e commit 4af199b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/unimpaired.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ On Off Toggle Option
*[ob* *]ob* *yob* 'background' (dark is off, light is on)
*[oc* *]oc* *yoc* 'cursorline'
*[od* *]od* *yod* 'diff' (actually |:diffthis| / |:diffoff|)
*[oe* *]oe* *yoe* 'expandtab'
*[oh* *]oh* *yoh* 'hlsearch'
*[oi* *]oi* *yoi* 'ignorecase'
*[ol* *]ol* *yol* 'list'
Expand Down
1 change: 1 addition & 0 deletions plugin/unimpaired.vim
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ call s:option_map('<Bar>', 'cursorcolumn', 'setlocal')
call s:map('n', '[od', ':diffthis<CR>')
call s:map('n', ']od', ':diffoff<CR>')
call s:map('n', 'yod', ':<C-R>=&diff ? "diffoff" : "diffthis"<CR><CR>')
call s:option_map('e', 'expandtab', 'setlocal')
call s:option_map('h', 'hlsearch', 'set')
call s:option_map('i', 'ignorecase', 'set')
call s:option_map('l', 'list', 'setlocal')
Expand Down

0 comments on commit 4af199b

Please sign in to comment.