From 22a63e84f72e74c88d454ee6730ac8005c4a0175 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Tue, 9 Feb 2021 21:55:17 +0100 Subject: [PATCH] nvim: cleanup, return git plugins and better default theme --- config/nvim/init.vim | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index ba0f460..80cb4cb 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -11,6 +11,14 @@ call plug#begin('~/.local/share/nvim/plugged') Plug 'tpope/vim-sleuth' Plug 'ntpeters/vim-better-whitespace' +" Interface +Plug 'tpope/vim-vinegar' +Plug 'jeffkreeftmeijer/vim-dim' + +" Git +Plug 'tpope/vim-fugitive' +Plug 'airblade/vim-gitgutter' + "Better syntax Plug 'lervag/vimtex', {'for': 'tex'} Plug 'vivien/vim-linux-coding-style' @@ -19,12 +27,14 @@ Plug 'vim-python/python-syntax' Plug 'rust-lang/rust.vim', {'for': 'rust'} Plug 'dag/vim-fish', {'for': 'fish'} Plug 'LnL7/vim-nix', {'for': 'nix'} -Plug 'chikamichi/mediawiki.vim' +Plug 'chikamichi/mediawiki.vim', { 'for' : 'wiki' } Plug 'cespare/vim-toml' +Plug 'JuliaEditorSupport/julia-vim', { 'for' : 'julia' } call plug#end() -"" TeX and co stuff +colorscheme dim + " disable TeX commands concealing let g:tex_conceal = '' @@ -32,33 +42,30 @@ let g:tex_conceal = '' let mapleader = "\" let maplocalleader = "\\" -" set line numbering set number - -" Set place for backups set nobackup - -" Swap for slacks set noswapfile " autosmartident set ai set si - -" Expand tabs to spaces set tabstop=4 set shiftwidth=4 set softtabstop=4 set noexpandtab - -" show indentation set list -" Enlarge your Undo! +" arrows for visual line identation +imap gk +imap gj +nmap gk +nmap gj +vmap gk +vmap gj + set history=999 set undolevels=999 -" Copying and pasting " Copy to clipboard vnoremap y "+y nnoremap Y "+yg_ @@ -70,7 +77,6 @@ nnoremap P "+P vnoremap p "+p vnoremap P "+P -" Update more often set updatetime=107 " Activate linux coding style helper only in certain dirs @@ -97,5 +103,3 @@ nnoremap U :echo "NOPE!" " do not conceal stuff set conceallevel=0 - -set laststatus=1