filp to plug and vimfiler

This commit is contained in:
Barak Michener 2017-09-19 11:16:15 -07:00
parent bcb6cfdd44
commit 628a3926d7
5 changed files with 2581 additions and 261 deletions

2503
.vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,89 +0,0 @@
#!/bin/sh
# Standalone installer for Unixs
# Original version is created by shoma2da
# https://github.com/shoma2da/neobundle_installer
if [ $# -ne 1 ]; then
echo "You must specify the installation directory!"
exit 1
fi
# Convert the installation directory to absolute path
case $1 in
/*) PLUGIN_DIR=$1;;
*) PLUGIN_DIR=$PWD/$1;;
esac
INSTALL_DIR="${PLUGIN_DIR}/repos/github.com/Shougo/dein.vim"
echo "Install to \"$INSTALL_DIR\"..."
if [ -e "$INSTALL_DIR" ]; then
echo "\"$INSTALL_DIR\" already exists!"
fi
echo ""
# check git command
type git || {
echo 'Please install git or update your path to include the git executable!'
exit 1
}
echo ""
# make plugin dir and fetch dein
if ! [ -e "$INSTALL_DIR" ]; then
echo "Begin fetching dein..."
mkdir -p "$PLUGIN_DIR"
git clone https://github.com/Shougo/dein.vim "$INSTALL_DIR"
echo "Done."
echo ""
fi
# write initial setting for .vimrc
echo "Please add the following settings for dein to the top of your vimrc (Vim) or init.vim (NeoVim) file:"
{
echo ""
echo ""
echo "\"dein Scripts-----------------------------"
echo "if &compatible"
echo " set nocompatible \" Be iMproved"
echo "endif"
echo ""
echo "\" Required:"
echo "set runtimepath+=$INSTALL_DIR"
echo ""
echo "\" Required:"
echo "if dein#load_state('$PLUGIN_DIR')"
echo " call dein#begin('$PLUGIN_DIR')"
echo ""
echo " \" Let dein manage dein"
echo " \" Required:"
echo " call dein#add('$INSTALL_DIR')"
echo ""
echo " \" Add or remove your plugins here:"
echo " call dein#add('Shougo/neosnippet.vim')"
echo " call dein#add('Shougo/neosnippet-snippets')"
echo ""
echo " \" You can specify revision/branch/tag."
echo " call dein#add('Shougo/vimshell', { 'rev': '3787e5' })"
echo ""
echo " \" Required:"
echo " call dein#end()"
echo " call dein#save_state()"
echo "endif"
echo ""
echo "\" Required:"
echo "filetype plugin indent on"
echo "syntax enable"
echo ""
echo "\" If you want to install not installed plugins on startup."
echo "\"if dein#check_install()"
echo "\" call dein#install()"
echo "\"endif"
echo ""
echo "\"End dein Scripts-------------------------"
echo ""
echo ""
}
echo "Done."
echo "Complete setup dein!"

View file

@ -1,89 +0,0 @@
#!/bin/sh
# Standalone installer for Unixs
# Original version is created by shoma2da
# https://github.com/shoma2da/neobundle_installer
if [ $# -ne 1 ]; then
echo "You must specify the installation directory!"
exit 1
fi
# Convert the installation directory to absolute path
case $1 in
/*) PLUGIN_DIR=$1;;
*) PLUGIN_DIR=$PWD/$1;;
esac
INSTALL_DIR="${PLUGIN_DIR}/repos/github.com/Shougo/dein.vim"
echo "Install to \"$INSTALL_DIR\"..."
if [ -e "$INSTALL_DIR" ]; then
echo "\"$INSTALL_DIR\" already exists!"
fi
echo ""
# check git command
type git || {
echo 'Please install git or update your path to include the git executable!'
exit 1
}
echo ""
# make plugin dir and fetch dein
if ! [ -e "$INSTALL_DIR" ]; then
echo "Begin fetching dein..."
mkdir -p "$PLUGIN_DIR"
git clone https://github.com/Shougo/dein.vim "$INSTALL_DIR"
echo "Done."
echo ""
fi
# write initial setting for .vimrc
echo "Please add the following settings for dein to the top of your vimrc (Vim) or init.vim (NeoVim) file:"
{
echo ""
echo ""
echo "\"dein Scripts-----------------------------"
echo "if &compatible"
echo " set nocompatible \" Be iMproved"
echo "endif"
echo ""
echo "\" Required:"
echo "set runtimepath+=$INSTALL_DIR"
echo ""
echo "\" Required:"
echo "if dein#load_state('$PLUGIN_DIR')"
echo " call dein#begin('$PLUGIN_DIR')"
echo ""
echo " \" Let dein manage dein"
echo " \" Required:"
echo " call dein#add('$INSTALL_DIR')"
echo ""
echo " \" Add or remove your plugins here:"
echo " call dein#add('Shougo/neosnippet.vim')"
echo " call dein#add('Shougo/neosnippet-snippets')"
echo ""
echo " \" You can specify revision/branch/tag."
echo " call dein#add('Shougo/vimshell', { 'rev': '3787e5' })"
echo ""
echo " \" Required:"
echo " call dein#end()"
echo " call dein#save_state()"
echo "endif"
echo ""
echo "\" Required:"
echo "filetype plugin indent on"
echo "syntax enable"
echo ""
echo "\" If you want to install not installed plugins on startup."
echo "\"if dein#check_install()"
echo "\" call dein#install()"
echo "\"endif"
echo ""
echo "\"End dein Scripts-------------------------"
echo ""
echo ""
}
echo "Done."
echo "Complete setup dein!"

157
.vimrc
View file

@ -1,4 +1,4 @@
" ___ _ _ _
" ___ _ _ _
" | _ ) __ _ _ _ __ _| |_( )___ __ _(_)_ __ _ _ __
" | _ \/ _` | '_/ _` | / //(_-< \ V / | ' \| '_/ _|
" |___/\__,_|_| \__,_|_\_\ /__/ (_)_/|_|_|_|_|_| \__|
@ -68,10 +68,72 @@ set t_Sb=ESC[4%dm
let $RUST_SRC_PATH="/usr/src/rust/src/"
" ** FILETYPE SETTINGS **
filetype off
"let g:ft_ignore_pat = '.org'
" Required:
set runtimepath+=/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim
" Required:
call plug#begin('/home/barak/.vim/bundle')
Plug '/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim'
Plug 'vim-scripts/DrawIt'
Plug 'tpope/vim-speeddating'
Plug 'vim-scripts/EasyGrep'
Plug 'chrisbra/NrrwRgn'
Plug 'hsitz/VimOrganizer'
Plug 'mattn/calendar-vim'
"Plug 'vim-scripts/fish-syntax'
Plug 'sjbach/lusty'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'rstacruz/sparkup'
Plug 'scrooloose/syntastic'
Plug 'kchmck/vim-coffee-script'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'lunaru/vim-less'
"Plug 'terryma/vim-multiple-cursors'
"Plug 'rodjek/vim-puppet'
Plug 'tpope/vim-unimpaired'
"Plug 'Valloric/YouCompleteMe'
Plug 'Shougo/deoplete.nvim'
Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
Plug 'zchee/deoplete-jedi'
Plug 'b4winckler/vim-angry'
Plug 'tristen/vim-sparkup'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'kien/ctrlp.vim'
Plug 'bling/vim-bufferline'
Plug 'majutsushi/tagbar'
Plug 'eagletmt/neco-ghc'
Plug 'eagletmt/ghcmod-vim'
Plug 'Shougo/vimproc.vim'
Plug 'Shougo/vimfiler.vim'
Plug 'Shougo/unite.vim'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
"Plug 'JuliaLang/julia-vim'
Plug 'tpope/vim-surround'
"Plug 'farseer90718/vim-taskwarrior'
Plug 'fatih/vim-go'
"Plug 't-yuki/vim-go-coverlay'
Plug 'tpope/vim-abolish'
Plug 'hylang/vim-hy'
Plug 'jiangmiao/auto-pairs'
Plug 'rust-lang/rust.vim'
Plug 'racer-rust/vim-racer'
Plug 'hashivim/vim-terraform'
call plug#end()
"NeoBundle 'eclim'
"https://git.wincent.com/command-t.git
filetype plugin indent on " required
syntax enable
"filetype plugin indent on
" If you prefer the Omni-Completion tip window to close when a selection is
" made, these lines close it on movement in insert mode or when leaving
@ -79,80 +141,6 @@ filetype off
autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
" Required:
set runtimepath+=/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/barak/.vim/bundle')
call dein#begin('/home/barak/.vim/bundle')
" Let dein manage dein
" Required:
call dein#add('/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim')
" Add or remove your plugins here:
"call dein#add('Shougo/neosnippet.vim')
"call dein#add('Shougo/neosnippet-snippets')
" You can specify revision/branch/tag.
"call dein#add('Shougo/vimshell', { 'rev': '3787e5' })
call dein#add('vim-scripts/DrawIt')
call dein#add('tpope/vim-speeddating')
call dein#add('vim-scripts/EasyGrep')
call dein#add('chrisbra/NrrwRgn')
call dein#add('hsitz/VimOrganizer')
call dein#add('mileszs/ack.vim')
call dein#add('mattn/calendar-vim')
"call dein#add('vim-scripts/fish-syntax')
call dein#add('sjbach/lusty')
call dein#add('scrooloose/nerdcommenter')
call dein#add('scrooloose/nerdtree')
call dein#add('rstacruz/sparkup')
call dein#add('scrooloose/syntastic')
call dein#add('kchmck/vim-coffee-script')
call dein#add('tpope/vim-fugitive')
call dein#add('airblade/vim-gitgutter')
call dein#add('lunaru/vim-less')
"call dein#add('terryma/vim-multiple-cursors')
"call dein#add('rodjek/vim-puppet')
call dein#add('tpope/vim-unimpaired')
"call dein#add('Valloric/YouCompleteMe')
call dein#add('Shougo/deoplete.nvim')
call dein#add('zchee/deoplete-go', {'build': {'unix': 'make'}})
call dein#add('zchee/deoplete-jedi')
call dein#add('b4winckler/vim-angry')
call dein#add('tristen/vim-sparkup')
call dein#add('vim-airline/vim-airline')
call dein#add('vim-airline/vim-airline-themes')
call dein#add('kien/ctrlp.vim')
call dein#add('bling/vim-bufferline')
call dein#add('majutsushi/tagbar')
call dein#add('eagletmt/neco-ghc')
call dein#add('eagletmt/ghcmod-vim')
call dein#add('Shougo/vimproc.vim')
call dein#add('SirVer/ultisnips')
call dein#add('honza/vim-snippets')
"call dein#add('JuliaLang/julia-vim')
call dein#add('tpope/vim-surround')
"call dein#add('farseer90718/vim-taskwarrior')
call dein#add('fatih/vim-go')
"call dein#add('t-yuki/vim-go-coverlay')
call dein#add('tpope/vim-abolish')
call dein#add('hylang/vim-hy')
call dein#add('jiangmiao/auto-pairs')
call dein#add('rust-lang/rust.vim')
call dein#add('racer-rust/vim-racer')
" Required:
call dein#end()
call dein#save_state()
endif
"NeoBundle 'eclim'
"https://git.wincent.com/command-t.git
filetype plugin indent on " required
" Sources
"source ~/.vim/supertab.vim
"source ~/.vim/charm.vim
@ -233,13 +221,19 @@ let g:bufferline_show_bufnr = 1
let g:bufferline_rotate = 1
" * NERDTree
let g:NERDChristmasTree = 1
let g:NERDChristmasTree = 1
"let g:NERDChristmasTree = 1
"let g:NERDChristmasTree = 1
let g:NERDTreeQuitOnOpen = 1
let g:NERDTreeWinPos = "right"
let g:NERDTreeWinSize = 40
let g:NERDTreeDirArrows=0
let g:NERDTreeMarkBookmarks = 0
let g:NERDTreeMinimalUI = 1
" * VimFiler
let g:vimfiler_tree_indentation = 2
" * Tagbar plugin settings
let g:tagbar_width = 40
let g:tagbar_autofocus = 1
@ -515,7 +509,8 @@ endfunction
"nnoremap gp gT
" I don't know how I came up with gt for opening the tree, but it stuck.
nmap gt :NERDTreeToggle<CR>
"nmap gt :NERDTreeToggle<CR>
nmap gt :VimFilerExplorer -winwidth=40 -toggle -direction=rightbelow -parent -status<CR>
" The same for the TagList, useful for large C files.
"nmap gb :TlistToggle<CR>
nmap gb :TagbarToggle<CR>

4
bin/pk
View file

@ -2,7 +2,7 @@
search () {
shift
if which pacman >/dev/null; then
pacman -Ss $1 || aurget -Ss $1
pacman -Ss $1 || yay -Ss $1
elif which port >/dev/null; then
port search $1
elif which portmaster >/dev/null; then
@ -31,7 +31,7 @@ update () {
install () {
shift
if which pacman >/dev/null; then
sudo pacman -S $* || aurget -S $*
sudo pacman -S $* || yay -S $*
elif which port >/dev/null; then
sudo port install $*
elif which portmaster >/dev/null; then