From 0a791230aee18781fe197b02e74a9aebe6bb5c6b Mon Sep 17 00:00:00 2001 From: oli Date: Thu, 31 Jan 2019 15:29:44 +0100 Subject: [PATCH] Removed clipboard unnamedplus. added simvis, simcfg file types --- init.vim | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index 2a8b1aa..c0b2580 100644 --- a/init.vim +++ b/init.vim @@ -62,13 +62,28 @@ if has("win32") let g:loaded_matchparen = 1 end -set clipboard+=unnamedplus " use system clipboard +" set clipboard+=unnamedplus " use system clipboard +" " Copy to clipboard +vnoremap y "+y +nnoremap Y "+yg_ +nnoremap y "+y +nnoremap yy "+yy + +" " Paste from clipboard +nnoremap p "+p +nnoremap P "+P +vnoremap p "+p +vnoremap P "+P " =================Look and feel======================= set termguicolors set background=dark colorscheme gruvbox - +" =================Filetypes=========================== +au BufRead,BufNewFile *.simvis set filetype=xml +au BufRead,BufNewFile *.simcfg set filetype=cfg +au BufRead,BufNewFile *.simcon set filetype=cfg +au BufRead,BufNewFile *.simudex set filetype=cfg " =================Windows and Tabs==================== " Open a new tab with F2 map :tabnew :Explore