.vimrc: Add mapping for enabling soft tabs
authorTony Duckles <tony@nynim.org>
Sun, 25 Jul 2021 15:27:51 +0000
committerTony Duckles <tony@nynim.org>
Sun, 25 Jul 2021 15:27:51 +0000
.vimrc

diff --git a/.vimrc b/.vimrc
index 70ca9d195f2b4fd511ae291d468939f495e74f2f..c94e948de066f0bca7cbb4c19d701a526c1a89ae 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -429,6 +429,8 @@ nmap <leader>hu <Plug>GitGutterUndoHunk
 nmap <leader>hs <Plug>GitGutterStageHunk
 " goyo
 nnoremap <leader>G :Goyo<CR>
+" enable soft tabs
+nmap <leader>st :set tabstop=2 softtabstop=2 shiftwidth=2 expandtab<CR>
 
 " --------------------------------------------------------------------------
 " Functions