From f40cb1bc702cfdb7f76d6a34fd7a679179ab9dd0 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 20 Oct 2020 20:53:19 +0200 Subject: init.vim rework --- .config/nvim/settings.vim | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .config/nvim/settings.vim (limited to '.config/nvim/settings.vim') diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim new file mode 100644 index 0000000..b75ed78 --- /dev/null +++ b/.config/nvim/settings.vim @@ -0,0 +1,28 @@ +set bg=dark +set clipboard^=unnamedplus +set encoding=utf-8 +set go=a +set hidden +set makeprg=gmake +set mouse=a +set nocompatible +set nohlsearch +set number +set shiftwidth=4 +set shortmess+=c +set softtabstop=4 +set ruler +set tabstop=4 +set undodir=/tmp +set undofile +set wildmode=longest,list,full +syntax on +filetype plugin indent on +autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE +colorscheme gruvbox-material +let mapleader="\\" +let maplocalleader="\\" +" Disables automatic commenting on newline: +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +" Reopen Startify on close +autocmd BufDelete * if empty(filter(tabpagebuflist(), '!buflisted(v:val)')) | Startify | endif -- cgit v1.2.3