From e6946b70a708868eb27ec88fbd83ed572f0e4923 Mon Sep 17 00:00:00 2001 From: candifloss Date: Mon, 23 Dec 2024 15:17:34 +0530 Subject: [PATCH] nvim config --- README.md | 11 +++++++++-- init.vim | 9 +++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 init.vim diff --git a/README.md b/README.md index 994d23c..63addf0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ -# dotfiles_nvim +# Neovim editor -NeoVim configs \ No newline at end of file +Very basic config - no plugins or themes yet, as I like the current(default) look. +The current config is compatible with vim, too. +Might change later. + +## Nvim config file location + +For user-specific config: `~/.config/nvim/init.vim` +For system-wide config: `/etc/xdg/nvim/init.vim` \ No newline at end of file diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..6e7c08b --- /dev/null +++ b/init.vim @@ -0,0 +1,9 @@ +set nocompatible " disable compatibility to old-time vi +set ignorecase " case insensitive +set mouse=v " middle-click paste with +set incsearch " incremental search +set tabstop=4 " number of columns occupied by a tab +set softtabstop=4 " see multiple spaces as tabstops so does the right thing +set shiftwidth=4 " width for autoindents +filetype plugin indent on "allow auto-indenting depending on file type +syntax on " syntax highlighting \ No newline at end of file