Add _vimrc for GViM for Windows
This commit is contained in:
commit
049d10ec2b
76
_vimrc
Normal file
76
_vimrc
Normal file
|
|
@ -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 <F2> :NERDTreeToggle<CR>
|
||||
map <F11> <Esc>:call libcallnr("C:\\Users\\auditor\\vimfiles\\plugged\\gvimfullscreen_win32\\gvimfullscreen.dll", "ToggleFullScreen", 0)<CR>
|
||||
|
||||
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 <tab> 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 <silent><expr> <Tab>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<Tab>" :
|
||||
\ coc#refresh()
|
||||
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
1
_vimrc.path
Normal file
1
_vimrc.path
Normal file
|
|
@ -0,0 +1 @@
|
|||
%USERPROFILE%\_vimrc
|
||||
Loading…
Reference in a new issue