Created
March 5, 2022 19:22
-
-
Save CreaturePhil/a0d99f9aaf3395897c2ef0423d727a32 to your computer and use it in GitHub Desktop.
vimrc on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unlet! skip_defaults_vim | |
source $VIMRUNTIME/defaults.vim | |
call plug#begin() | |
Plug 'junegunn/fzf' | |
Plug 'morhetz/gruvbox' | |
Plug 'tpope/vim-dispatch' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'ervandew/supertab' | |
call plug#end() | |
" Start maximized | |
au GUIEnter * simalt ~x | |
colorscheme gruvbox | |
set noswapfile | |
" Enable switching buffer without saving file | |
set hidden | |
" Tab key uses spaces | |
set expandtab | |
" Tab key represents 4 spaces | |
set tabstop=4 | |
" 4 spaces for cindent | |
set shiftwidth=4 | |
" Backspace on indent spaces removes indent | |
set softtabstop=4 | |
set guifont=Droid_Sans_Mono:h10:cANSI:qDRAFT | |
set cursorline | |
" Stop blinking cursor | |
set guicursor=a:blinkon0 | |
set makeprg=build.bat | |
" Remove menu bar | |
set guioptions-=m | |
" Remove tool bar | |
set guioptions-=T | |
" Remove left and right scrollbars | |
set guioptions-=r | |
set guioptions-=L | |
" Remove status line | |
set laststatus=0 | |
nnoremap U :e $MYVIMRC<CR> | |
nnoremap B :b#<CR> | |
nnoremap J <C-D> | |
nnoremap K <C-U> | |
nnoremap <Tab> <C-w>w | |
nnoremap M :Make<CR> | |
nnoremap E :FZF<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment