diff options
author | Shipwreckt <shipwreckt@mailfence.com> | 2025-02-22 07:10:10 +0000 |
---|---|---|
committer | Shipwreckt <shipwreckt@mailfence.com> | 2025-02-22 07:10:10 +0000 |
commit | 971bbb74a02f83650c8cd0550fb91886c4d460fe (patch) | |
tree | d0d56e38ba28ddf37866ceb6b275ff5de48a0e40 /files/config/nvim/init.vim | |
parent | 749b69e71e0475bcf1f4d7067414f55f830c9e8d (diff) |
2nd initial commit
Diffstat (limited to 'files/config/nvim/init.vim')
-rw-r--r-- | files/config/nvim/init.vim | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/files/config/nvim/init.vim b/files/config/nvim/init.vim new file mode 100644 index 0000000..d933991 --- /dev/null +++ b/files/config/nvim/init.vim @@ -0,0 +1,46 @@ +syntax on + +" Sets file format and encoding +set fileformat=unix +set encoding=UTF-8 + +" Highlights the current line +highlight CursorLine guibg=#5f0087 +set cursorline + +" Enable search highlighting +set hlsearch + +" Show the status bar +set laststatus=2 + +" Tab and indentation settings +set tabstop=2 +set softtabstop=2 +set shiftwidth=2 +set expandtab +set autoindent +set smartindent +set smarttab + +" Line numbering +set number +set relativenumber + +" Keep 8 lines visible above/below the cursor when scrolling +set scrolloff=8 + +" Improved split navigation +nnoremap <C-h> <C-w>h +nnoremap <C-j> <C-w>j +nnoremap <C-k> <C-w>k +nnoremap <C-l> <C-w>l + +augroup reload_vimrc + autocmd! + autocmd BufWritePost init.vim source $MYVIMRC +augroup END + +" Use system clipboard +set clipboard=unnamedplus + |