Update vim to better vim and sort out clipboard stuff

This commit is contained in:
1jamesthompson1
2025-09-25 20:03:23 +12:00
parent ea2f41e009
commit 73ea02927c
2 changed files with 20 additions and 2 deletions

18
.vimrc
View File

@@ -42,7 +42,6 @@ set undofile
" ----------------------------
" Line numbers and cursor line
set number
set cursorline
" Highlight search matches
set hlsearch
@@ -72,6 +71,23 @@ set smartcase
" Enable mouse support
set mouse=a
" ---------------------------
" Clipboard settings
" ---------------------------
" Use system clipboard
set clipboard=unnamedplus
nnoremap x "+x
nnoremap dd "_dd
nnoremap D "_D
nnoremap C "_C
" Paste clipboard below as new line
nnoremap <leader>p :put +<CR>
" Paste clipboard above as new line
nnoremap <leader>P :put! +<CR>
" ----------------------------
" Filetype-specific settings
" ----------------------------