From 0c3c05563ddaa39dafb20a48005128a415414a77 Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Tue, 17 Oct 2017 04:01:18 -0400 Subject: [PATCH] Setup gvim for lab comps. --- dotfiles/.bash_aliases | 7 +++++-- dotfiles/.gvimrc | 1 + dotfiles/.vimrc | 14 +------------- dotfiles/.vimrc-runtime | 11 +++++++++++ set-from-git.sh | 2 +- 5 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 dotfiles/.gvimrc create mode 100644 dotfiles/.vimrc-runtime diff --git a/dotfiles/.bash_aliases b/dotfiles/.bash_aliases index 2566994..e24c848 100644 --- a/dotfiles/.bash_aliases +++ b/dotfiles/.bash_aliases @@ -17,7 +17,7 @@ alias l5="cd ~/258/258-labs-self/l5" alias lab="cd ~/258/258-labs-self" # bash -alias vb="vim ~/.bash_aliases" +alias vb="gvim ~/.bash_aliases" alias rba=". ~/.bashrc" # git @@ -34,7 +34,10 @@ gc(){ git commit -m "$1" } -# redshift +g(){ + gvim $1 +} + rs(){ redshift -O $1 } diff --git a/dotfiles/.gvimrc b/dotfiles/.gvimrc new file mode 100644 index 0000000..09313ae --- /dev/null +++ b/dotfiles/.gvimrc @@ -0,0 +1 @@ +set guifont=Monospace\ 15 diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 974258d..a4f4632 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -1,15 +1,3 @@ -" set runtimepath+=~/.vim_runtime -" -" source ~/.vim_runtime/vimrcs/basic.vim -" source ~/.vim_runtime/vimrcs/filetypes.vim -" source ~/.vim_runtime/vimrcs/plugins_config.vim -" source ~/.vim_runtime/vimrcs/extended.vim -" -" try -" source ~/.vim_runtime/my_configs.vim -" catch -" endtry - set relativenumber set background=dark syntax on @@ -22,7 +10,7 @@ call plug#begin('h/u3/c7/05/mokkar/.vim/plugged') Plug 'vim-scripts/L9' Plug 'vim-scripts/FuzzyFinder' -" Plug 'whatyouhide/vim-gotham' +Plug 'whatyouhide/vim-gotham' call plug#end() diff --git a/dotfiles/.vimrc-runtime b/dotfiles/.vimrc-runtime new file mode 100644 index 0000000..7b16604 --- /dev/null +++ b/dotfiles/.vimrc-runtime @@ -0,0 +1,11 @@ +set runtimepath+=~/.vim_runtime + +source ~/.vim_runtime/vimrcs/basic.vim +source ~/.vim_runtime/vimrcs/filetypes.vim +source ~/.vim_runtime/vimrcs/plugins_config.vim +source ~/.vim_runtime/vimrcs/extended.vim + +try +source ~/.vim_runtime/my_configs.vim +catch +endtry diff --git a/set-from-git.sh b/set-from-git.sh index eaffdb2..6c892cf 100644 --- a/set-from-git.sh +++ b/set-from-git.sh @@ -1,4 +1,4 @@ -files=".bash_aliases .bashrc .inputrc .vimrc" +files=".bash_aliases .bashrc .inputrc .vimrc .gvimrc" dir=~/linux-config/dotfiles for file in $files; do