From 5a50591ea023f63649569638d45bf0f3bec0aef6 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 23 Jul 2024 12:02:17 +0400 Subject: Minimal vimrc added --- config/vim/vimrc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 config/vim/vimrc diff --git a/config/vim/vimrc b/config/vim/vimrc new file mode 100644 index 0000000..cfb9931 --- /dev/null +++ b/config/vim/vimrc @@ -0,0 +1,35 @@ +" Suleyman's minimal vim config with no plugin support + +let mapleader = " " +set number +set scrolloff=5 " Smooth scroll +set clipboard=unnamedplus " Use system clipboard +set shortmess+=I " Deactivate intro text +set fillchars=eob:\ " Remove "~" for empty lines (must end wit trailing a space) +autocmd BufwritePost * %s/\s\+$//e " Remove useless trailing spaces when saving +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Disable autocomments + +" Different cursor shapes for insert and normal modes +let &t_SI = "\e[6 q" +let &t_EI = "\e[2 q" +set ttimeout +set ttimeoutlen=1 +set ttyfast + +" Normal mode maps +map :w! +map q :wqa! +map :tabnew +map :tabclose! +map J :tabn +map K :tabp + +" Insert mode maps +inoremap +inoremap +inoremap gj +inoremap gk +inoremap o + +set background=dark +colorscheme lunaperche -- cgit v1.2.3