From a581203ebca16653a8b77cee3adaf3f74a208fe7 Mon Sep 17 00:00:00 2001 From: krizej Date: Tue, 3 Dec 2024 18:30:23 +0100 Subject: [PATCH] some vim stuffs --- modules/stuff/vim.nix | 9 +++++++++ 1 file changed, 9 insertions(+) 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 ''; }; };