Skip to content

Commit

Permalink
vim: add a keymap to insert real tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Dec 24, 2023
1 parent 95d0125 commit a95ddc2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ au BufRead,BufNewFile *.opam
\ if match(getline(1), "This file is generated by dune") >= 1 |
\ set readonly |
\ endif

" Tab inserts spaces by default per the expandtab rule above
" So if we want real tabs (e.g. in Makefile) we need to be able to.
" Shift + Tab now inserts real tabs
inoremap <S-Tab> <C-V><Tab>

0 comments on commit a95ddc2

Please sign in to comment.