From 049d10ec2b344b2b493289e7319097901581d124 Mon Sep 17 00:00:00 2001 From: DaLynX Date: Wed, 27 Oct 2021 18:25:15 +0200 Subject: [PATCH] Add _vimrc for GViM for Windows --- _vimrc | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ _vimrc.path | 1 + 2 files changed, 77 insertions(+) create mode 100644 _vimrc create mode 100644 _vimrc.path diff --git a/_vimrc b/_vimrc new file mode 100644 index 0000000..d631d71 --- /dev/null +++ b/_vimrc @@ -0,0 +1,76 @@ +set mouse=a +set clipboard=unnamed + +set tabstop=4 +set shiftwidth=4 +set expandtab +set number +set encoding=utf8 +syntax on + +set autoindent +set hlsearch +set incsearch +set showmatch +set nocompatible + +" Command-line autocompletion +set wildmenu +"set wildmode=longest:list,full + +call plug#begin() +Plug 'dracula/vim' +Plug 'Yggdroot/indentLine' +Plug 'ryanoasis/vim-devicons' +Plug 'preservim/nerdtree' +Plug 'itchyny/lightline.vim' +Plug 'derekmcloughlin/gvimfullscreen_win32' +Plug 'neoclide/coc.nvim', {'branch': 'release'} +call plug#end() + +" Settings for indentLine plugin +let g:indentLine_char = '│' +let g:indentLine_color_term = 4 + +" Settings for lightline plugin +set laststatus=2 +set noshowmode + +" Settings for NERDTree plugin +let NERDTreeShowBookmarks = 1 " Show the bookmarks table +let NERDTreeShowHidden = 1 " Show hidden files +let NERDTreeShowLineNumbers = 0 " Hide line numbers +let NERDTreeMinimalMenu = 1 " Use the minimal menu (m) +let NERDTreeWinPos = "left" " Panel opens on the left side +let NERDTreeWinSize = 31 " Set panel width to 31 columns + +nmap :NERDTreeToggle +map :call libcallnr("C:\\Users\\auditor\\vimfiles\\plugged\\gvimfullscreen_win32\\gvimfullscreen.dll", "ToggleFullScreen", 0) + +set guifont=SauceCodePro\ NF:h11 +set guioptions-=m " Remove menubar +set guioptions-=T " Remove toolbar +set guioptions-=r " Remove scrollbar +set guioptions-=L " Remove NERDTree scrollbar +colorscheme dracula + +" open new split panes to right and below +set splitright +set splitbelow + +autocmd GUIEnter * call libcallnr("C:\\Users\\auditor\\vimfiles\\plugged\\gvimfullscreen_win32\\gvimfullscreen.dll", "ToggleFullScreen", 0) + +" coc autocomplete settings +" use for trigger completion and navigate to the next complete item +function! s:check_back_space() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~ '\s' +endfunction + +inoremap + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() + +inoremap pumvisible() ? "\" : "\" +inoremap pumvisible() ? "\" : "\" diff --git a/_vimrc.path b/_vimrc.path new file mode 100644 index 0000000..635c268 --- /dev/null +++ b/_vimrc.path @@ -0,0 +1 @@ +%USERPROFILE%\_vimrc