Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 493aa2e26d155d34596f4fd22d49b0a696536c9f
parent 4b3e7707047690d95efade654725e74db8c9b6b2
Author: Janis Pagel <>
Date:   Tue, 28 Apr 2020 20:41:24 +0200

Enable coyping and pasting to the clipboard in vim

Also disable arrow and page keys

Mvim/vimrc | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -38,6 +38,7 @@ set splitbelow splitright " Sensible splitting behavior set nocompatible set nomodeline set cursorline +set clipboard+=unnamedplus " Yank and Paste directly to and from clipboard " Enable file autocompletion and fuzzy find set wildmode=longest,list,full set wildmenu @@ -151,6 +152,21 @@ nnoremap <Leader>ev :vsp ~/.vimrc<CR> nnoremap <Leader>sv :source ~/.vimrc <bar> :doautocmd BufRead<CR> " }}} +" Disable arrow and page keys {{{ +noremap <Down> <Nop> +noremap <Left> <Nop> +noremap <Right> <Nop> +noremap <Up> <Nop> +noremap <PageUp> <Nop> +noremap <PageDown> <Nop> +noremap! <Down> <Nop> +noremap! <Left> <Nop> +noremap! <Right> <Nop> +noremap! <Up> <Nop> +noremap! <PageUp> <Nop> +noremap! <PageDown> <Nop> +" }}} + " Folding {{{ set foldenable set foldlevelstart=10