Nvim support changes
This commit is contained in:
parent
f21157994c
commit
bd28feb6b8
@ -10,12 +10,20 @@
|
|||||||
" * Launch vim and run :PluginInstall
|
" * Launch vim and run :PluginInstall
|
||||||
" * To install from command line: vim +PluginInstall +qall
|
" * To install from command line: vim +PluginInstall +qall
|
||||||
|
|
||||||
" Vundle Installation {{{
|
" Plug Installation {{{
|
||||||
" Bootstrap Vundle if it's not installed
|
" Bootstrap Plug if it's not installed
|
||||||
if empty(glob("~/.vim/autoload/plug.vim"))
|
if has("nvim")
|
||||||
echo "No vim-plug, getting it ..."
|
if empty(glob("~/.config/nvim/autoload/plug.vim"))
|
||||||
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
echo "No vim-plug, getting it ..."
|
||||||
echo "Getting vim-plug ... done"
|
execute '!curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
echo "Getting vim-plug ... done"
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
if empty(glob("~/.vim/autoload/plug.vim"))
|
||||||
|
echo "No vim-plug, getting it ..."
|
||||||
|
execute '!curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
echo "Getting vim-plug ... done"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
# --------------------------------
|
# --------------------------------
|
||||||
# Shell RC
|
# Shell RC
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
# If git-prompt does not exist, get it with following command:
|
||||||
|
#
|
||||||
|
# $ wget https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh
|
||||||
if [ -f /etc/bash_completion.d/git-prompt ]; then
|
if [ -f /etc/bash_completion.d/git-prompt ]; then
|
||||||
source /etc/bash_completion.d/git-prompt
|
source /etc/bash_completion.d/git-prompt
|
||||||
fi
|
fi
|
||||||
if [ -f ~/git-prompt.sh ]; then
|
if [ -f ~/bin/git-prompt.sh ]; then
|
||||||
source ~/git-prompt.sh
|
source ~/bin/git-prompt.sh
|
||||||
fi
|
fi
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 " %s") \[\033[0m\]$ '
|
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\] \w\[\033[01;35m\]$(__git_ps1 " %s") \[\033[0m\]$ '
|
||||||
@ -14,7 +17,6 @@ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;92m\]$(hostname)\[\033[01;34m\]
|
|||||||
# Variables
|
# Variables
|
||||||
#
|
#
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
export GOPATH=~/lang/go
|
|
||||||
export PATH=~/bin:$PATH
|
export PATH=~/bin:$PATH
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -25,6 +27,7 @@ alias q=exit
|
|||||||
alias a=clear
|
alias a=clear
|
||||||
alias h=history
|
alias h=history
|
||||||
alias e=$EDITOR
|
alias e=$EDITOR
|
||||||
|
alias n=nvim
|
||||||
|
|
||||||
#
|
#
|
||||||
# Functions
|
# Functions
|
||||||
|
Loading…
Reference in New Issue
Block a user