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