From d8ae4c1315e335b5d5fa7891402c3bc8421fa696 Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Wed, 1 Dec 2021 13:51:58 -0700 Subject: [PATCH] Added neovim config --- .config/.gitignore | 2 ++ .config/nvim/init.vim | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 .config/nvim/init.vim diff --git a/.config/.gitignore b/.config/.gitignore index 2adbf03..85bb777 100644 --- a/.config/.gitignore +++ b/.config/.gitignore @@ -30,6 +30,8 @@ !flameshot/** !neofetch/ !neofetch/** +!nvim/ +!nvim/** !.gitignore polybar/default diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..7e068e1 --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,31 @@ +set nocompatible " choose no compatibility with legacy vi +syntax enable +set encoding=utf-8 +set showcmd " display incomplete commands +filetype plugin indent on " load file type plugins + indentation + +"" Whitespace +set nowrap " don't wrap lines +set tabstop=4 shiftwidth=4 " a tab is 4 spaces +set expandtab " use spaces, not tabs +set backspace=indent,eol,start " backspace through everything in insert mode +autocmd BufWritePre * :%s/\s\+$//e " Trim whitespace on file save + +"" Searching +set hlsearch " highlight matches +set incsearch " incremental searching +set ignorecase " searches are case insensitive... +set smartcase " ... unless they contain at least one capital letter + +"" Code Editing Stuff +set number +""set cursorline + +"" Copy and paste +vnoremap "+y +map "+P + +"" Misc +set mouse=a +set ttyfast +set backupdir=~/.cache/vim