commit e0953318013c3f25abf0c736d81677c42f199577 Author: Oliver Hartmann Date: Sat Dec 22 17:16:26 2018 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6a65871 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ + .ycm_extra_conf.pyc +.netrwhist +vim.bundle +.VimballRecord +plugged +rplugin.vim diff --git a/ginit.vim b/ginit.vim new file mode 100644 index 0000000..cf89b33 --- /dev/null +++ b/ginit.vim @@ -0,0 +1,9 @@ +" set mouse=a + +" Paste with middle mouse click +vmap "*ygv + +" Paste with + +imap * + +:set guioptions=mlrb diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..fd5c3d2 --- /dev/null +++ b/init.vim @@ -0,0 +1,69 @@ +" =============Plugins================== +call plug#begin() +Plug 'morhetz/gruvbox' +Plug 'tomtom/tcomment_vim' +Plug 'bling/vim-airline' +Plug 'vim-airline/vim-airline-themes' +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'tpope/vim-fugitive' +Plug 'airblade/vim-gitgutter' +call plug#end() +" =============Settings================== +filetype plugin on +filetype indent on +set nocompatible +set ignorecase " Case sensitive off +set incsearch +set encoding=utf-8 +set nobackup +set noswapfile +set mouse=a +set spelllang=en,de +set spellsuggest=double,10 +set list +set icon +set listchars=tab:>.,trail:.,extends:#,nbsp:. +set showmatch " Show pair braces +set hlsearch "Highlight search +syntax on +set number +set scrolloff=2 + +if has("win32") + " set rop=type:directx + let g:loaded_matchparen = 1 +end + +" =================Look and feel======================= +colorscheme gruvbox + +" =================Windows and Tabs==================== +" Open a new tab with F2 +map :tabnew :Explore +imap :tabnew :Explore +map :tabnext +map :tabprevious +nmap :wincmd k +nmap :wincmd j +nmap :wincmd h +nmap :wincmd l +" Open a new vertical split window with Ctrl - F2 +map :vsplit . +imap :vsplit . +" Open a new horizontal split window with Shift - F2 +map :split . +imap :split . + +" =================save shortcut======================= +map :wa +imap :wa + +" =================Comments============================ +map :TComment + +" =================Python============================== +let g:python3_host_prog="f:\\Tools\\Python\\python.exe" +let g:python_host_prog="f:\\Tools\\Python27\\python.exe" + +" =========================Deoplete==================== +let g:deoplete#enable_at_startup = 1