Update vim to better vim and sort out clipboard stuff
This commit is contained in:
18
.vimrc
18
.vimrc
@@ -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
|
||||
" ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user