From: Edward Delaporte Date: Thu, 28 Jan 2021 21:12:28 +0000 (-0600) Subject: Get vimrc working on Windows. X-Git-Url: https://us-delaporte.pagekite.me/gitweb/dotfiles.git/commitdiff_plain/98b68d818954c6780ba42d48bc048a0a84d05ced?ds=sidebyside Get vimrc working on Windows. --- diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 2dab24f..f534bad 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -85,3 +85,6 @@ choco install vim # Install vim-plug iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |` ni $HOME/vimfiles/autoload/plug.vim -Force + +# Deploy a stub file to source my vimrc when on Windows. +cp win_vimrc ~/.vimrc diff --git a/vimrc b/vimrc index 51c45f4..c5abfc2 100644 --- a/vimrc +++ b/vimrc @@ -27,25 +27,26 @@ filetype off " required call plug#begin('~/.vim/plugged') " Markdown highlighting -Plugin 'tpope/vim-markdown' +Plug 'tpope/vim-markdown' " let g:markdown_github_languages = ['sh', 'python'] " Distraction free writing. -Plugin 'junegunn/goyo.vim' -nnoremap w :Goyo - +Plug 'junegunn/goyo.vim' " Better status line. -Plugin 'bling/vim-airline' +Plug 'bling/vim-airline' " Plugin 'Windows-PowerShell-Syntax-Plugin' " PowerShell Highlighting and detection -Plugin 'pprovost/vim-ps1' +Plug 'pprovost/vim-ps1' + +call plug#end() -call vundle#end() filetype plugin indent on " required for Vundle Bundle +nnoremap w :Goyo + " If not something else, then assume Markdown set filetype=markdown set syntax=markdown diff --git a/win_vimrc b/win_vimrc new file mode 100644 index 0000000..36c674c --- /dev/null +++ b/win_vimrc @@ -0,0 +1 @@ +so c:/src/dotfiles/vimrc