From 6dbfd3a1da55b99bc75b35c74020b698e195204d Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 20 Aug 2024 19:17:51 +0400 Subject: nvim config added --- config/nvim/init.vim | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 config/nvim/init.vim (limited to 'config/nvim/init.vim') diff --git a/config/nvim/init.vim b/config/nvim/init.vim new file mode 100644 index 0000000..54f6297 --- /dev/null +++ b/config/nvim/init.vim @@ -0,0 +1,36 @@ +" Suleyman's minimal vim config for servers +" at https://git.farajli.net/slcf + +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) +:set nowrap " Disable wrapping +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 -- cgit v1.2.3