From 281f3f2f9368beb3c568564c8434d91ab211147e Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 10 Sep 2021 00:53:54 +0300 Subject: feat(rpi): add basic nvim config --- raspberry/.config/nvim/init.vim | 54 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 raspberry/.config/nvim/init.vim (limited to 'raspberry') diff --git a/raspberry/.config/nvim/init.vim b/raspberry/.config/nvim/init.vim new file mode 100644 index 0000000..98bd4ef --- /dev/null +++ b/raspberry/.config/nvim/init.vim @@ -0,0 +1,54 @@ +" Neovim minimal configuration for raspberry pi +" TODO: find a way re-use the main config + +" Enter the current millenium +set nocompatible +syntax enable +filetype plugin on + +" General stuff +set number relativenumber +set ignorecase smartcase +set splitbelow splitright +set termguicolors +set cursorline +set hidden +set nowrap +set ruler +set mouse=a +set clipboard=unnamedplus +set scrolloff=3 +set conceallevel=0 + +" Indentation +set smarttab expandtab +set smartindent autoindent +set tabstop=2 +set shiftwidth=2 +set showtabline=2 + +" Built-in fuzzy-finder +set path=.,** +set wildmenu +set wildignore+=**/node_modules/**,**/build/**,**/dist/**,**/__pycache__/** +set wildmode=longest,list,full + +" Easier window navigation +nnoremap h +nnoremap j +nnoremap k +nnoremap l + +" Easier indentation +vnoremap < >gv + +" Remove trailing whitespace on save +autocmd BufWritePre * %s/\s\+$//e + +" Vimrc management +nnoremap ev :vs $MYVIMRC +nnoremap sv :source $MYVIMRC + +" Colorscheme +colorscheme murphy -- cgit v1.2.3