From 90e36ef8aa94a5c8deada77e058de64fd48b2ec4 Mon Sep 17 00:00:00 2001 From: swytch Date: Wed, 26 Aug 2020 13:06:21 +0200 Subject: [PATCH] cleanup: reorganize nvim settings --- .config/nvim/init.vim | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 756b54e..de0de0a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -50,12 +50,6 @@ set updatetime=250 " Detect filetypes plugins and indent rules filetype plugin indent on -" To recognize groff filetype -au BufNewFile,BufRead *.mom set filetype=groff - -" Always use LaTeX flavor -au BufNewFile,BufRead *.tex set filetype=tex - " Defining the let mapleader = " " @@ -95,6 +89,10 @@ set termguicolors set background=dark colorscheme polyjuice +" Change cursor behaviour when entering insert mode +let &t_SI.="\e[6 q" "SI = INSERT mode // steady bar +let &t_SR.="\e[4 q" "SR = REPLACE mode // underline + "" Text, tab and indent """""""""""""""""""""""""""""""""""""""""""""""""" " Do not use spaces instead of tabs @@ -111,9 +109,6 @@ set wrap " Stop auto-commenting new line autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o -" Change cursor behaviour when entering insert mode -let &t_SI.="\e[6 q" "SI = INSERT mode // steady bar -let &t_SR.="\e[4 q" "SR = REPLACE mode // underline " Enable autocompletion set wildmode=longest,full @@ -121,6 +116,12 @@ set wildmode=longest,full " Automatically remove all trailing whitespaces on save autocmd BufWritePre * %s/\s\+$//e +" To recognize groff filetype +au BufNewFile,BufRead *.mom set filetype=groff + +" Always use LaTeX flavor +au BufNewFile,BufRead *.tex set filetype=tex + "" Status line """"""""""""""""""""""""""""""""""""""""""""""""""" "Don't show editor mode