]> us-delaporte.pagekite.me Git - dotfiles.git/commitdiff
Get vimrc working on Windows.
authorEdward Delaporte <delaport@illinois.edu>
Thu, 28 Jan 2021 21:12:28 +0000 (15:12 -0600)
committerEdward Delaporte <delaport@illinois.edu>
Thu, 28 Jan 2021 21:12:28 +0000 (15:12 -0600)
bootstrap.ps1
vimrc
win_vimrc [new file with mode: 0644]

index 2dab24f6090fee1282d5c61f2d2bb7fc605ca9ba..f534badaf1754e9482cf092990c4460ad89f8670 100644 (file)
@@ -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
 # 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 51c45f405f50015434cef26878da3a79379dd741..c5abfc2b1ca70164e5ce3c62388551cda471b5a2 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -27,25 +27,26 @@ filetype off                  " required
 call plug#begin('~/.vim/plugged')
 
 " Markdown highlighting
 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.
 " let g:markdown_github_languages = ['sh', 'python']
 
 " Distraction free writing.
-Plugin 'junegunn/goyo.vim'
-nnoremap <leader>w :Goyo<Cr>
-
+Plug 'junegunn/goyo.vim'
 
 " Better status line.
 
 " Better status line.
-Plugin 'bling/vim-airline'
+Plug 'bling/vim-airline'
 
 " Plugin 'Windows-PowerShell-Syntax-Plugin'
 
 " PowerShell Highlighting and detection
 
 " 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
 
 filetype plugin indent on     " required for Vundle Bundle
 
+nnoremap <leader>w :Goyo<Cr>
+
 " If not something else, then assume Markdown
 set filetype=markdown
 set syntax=markdown
 " 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 (file)
index 0000000..36c674c
--- /dev/null
+++ b/win_vimrc
@@ -0,0 +1 @@
+so c:/src/dotfiles/vimrc