diff --git a/modules/stuff/vim.nix b/modules/stuff/vim.nix index 78f79a5..3147330 100644 --- a/modules/stuff/vim.nix +++ b/modules/stuff/vim.nix @@ -18,6 +18,15 @@ in { extraConfig = '' set laststatus=0 set shiftwidth=4 smarttab expandtab + + let &t_SI = "\e[6 q" + let &t_EI = "\e[2 q" + set t_u7= + autocmd VimLeave * silent !echo -ne "\e[6 q" + autocmd VimEnter * silent !echo -ne "\e[2 q" + set ttimeout + set ttimeoutlen=1 + set ttyfast ''; }; };