changed plugin manager to vim-plug
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ tmp*
|
|||||||
.netrwhist
|
.netrwhist
|
||||||
.swp
|
.swp
|
||||||
vim/bundle/*
|
vim/bundle/*
|
||||||
|
vim/autoload/*
|
||||||
|
|||||||
@@ -5,5 +5,4 @@ zlorfi's dotfiles
|
|||||||
* create symlinks via the `make_my_dotfiles.sh` script
|
* create symlinks via the `make_my_dotfiles.sh` script
|
||||||
* install patched `Source Code Pro` font for the `vim-airline` plugin
|
* install patched `Source Code Pro` font for the `vim-airline` plugin
|
||||||
* change the font of your default terminal app to patched `Source Code Pro`
|
* change the font of your default terminal app to patched `Source Code Pro`
|
||||||
* clone Vundle repo `git clone git://github.com/gmarik/vundle.git ~/dotfiles/vim/bundle/Vundle.vim`
|
* launch `vim` with `vim +PlugInstall +qall` to install plugins
|
||||||
* launch `vim` with `vim +BundleInstall +qall`
|
|
||||||
|
|||||||
90
vimrc
90
vimrc
@@ -8,49 +8,48 @@ set history=1000
|
|||||||
" filetype plugin indent on
|
" filetype plugin indent on
|
||||||
filetype off
|
filetype off
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
" Load vim-plug if not already installed
|
||||||
set rtp+=~/dotfiles/vim/bundle/Vundle.vim
|
if empty(glob("~/.vim/autoload/plug.vim"))
|
||||||
call vundle#begin()
|
" Ensure all needed directories exist
|
||||||
|
execute 'mkdir -p ~/.vim/bundle'
|
||||||
|
execute 'mkdir -p ~/.vim/autoload'
|
||||||
|
" Download the actual plugin manager
|
||||||
|
execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
endif
|
||||||
|
|
||||||
" let Vundle manage Vundle, required
|
" Specify a directory for plugins
|
||||||
Plugin 'gmarik/Vundle.vim'
|
" - Avoid using standard Vim directory names like 'plugin'
|
||||||
|
call plug#begin('~/.vim/bundle')
|
||||||
|
|
||||||
" my plugins
|
" Show git status in the gutter
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plugin 'ctrlpvim/ctrlp.vim'
|
" Fuzzy file finder
|
||||||
" Plugin 'elixir-lang/vim-elixir'
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
Plugin 'ervandew/supertab'
|
" Tab support
|
||||||
" Plugin 'garbas/vim-snipmate'
|
Plug 'ervandew/supertab'
|
||||||
" Plugin 'ingydotnet/yaml-vim'
|
" autocomplete brackets
|
||||||
Plugin 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
" Plugin 'kchmck/vim-coffee-script'
|
" Undo
|
||||||
" Plugin 'MarcWeber/vim-addon-mw-utils'
|
Plug 'mbbill/undotree', { 'on': 'UndotreeToggle' }
|
||||||
" Plugin 'mustache/vim-mustache-handlebars'
|
" Comment function
|
||||||
" Plugin 'pangloss/vim-javascript'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
" Plugin 'Raimondi/delimitMate'
|
" Filebrowser, load on first invocation of 'NERDTreeToggle'
|
||||||
Plugin 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plugin 'scrooloose/nerdtree'
|
" Language packs
|
||||||
Plugin 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plugin 'sjl/gundo.vim'
|
" Wisley add 'end' in Ruby
|
||||||
" Plugin 'tomtom/tlib_vim'
|
Plug 'tpope/vim-endwise'
|
||||||
" Plugin 'tpope/vim-cucumber'
|
" Git wrapper
|
||||||
Plugin 'tpope/vim-endwise'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plugin 'tpope/vim-fugitive'
|
" Statusline
|
||||||
" Plugin 'tpope/vim-haml'
|
Plug 'vim-airline/vim-airline'
|
||||||
" Plugin 'tpope/vim-rails'
|
" Statusline themes
|
||||||
Plugin 'tpope/vim-surround'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plugin 'vim-airline/vim-airline'
|
" Linter
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
" Plug 'w0rp/ale'
|
||||||
" Plugin 'vim-ruby/vim-ruby'
|
|
||||||
" Plugin 'vim-scripts/tComment'
|
|
||||||
" Plugin 'w0rp/ale'
|
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
" Initialize plugin system
|
||||||
call vundle#end() " required
|
call plug#end()
|
||||||
filetype plugin indent on " required
|
|
||||||
|
|
||||||
" Enable syntax highlighting
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
" Colorscheme
|
" Colorscheme
|
||||||
if &term == "xterm"
|
if &term == "xterm"
|
||||||
@@ -139,9 +138,12 @@ set directory=$HOME/.vim/tmp//,. " Keep swap files in one location
|
|||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
set laststatus=2 " Show the status line all the time
|
set laststatus=2 " Show the status line all the time
|
||||||
" Useful status information at bottom of screen
|
|
||||||
" set statusline=[%n]\ %<%.99f\ %h%w%m%r%y%{fugitive#statusline()}\ %=%-16(\ Line:\ %l\ of\ %L\ %)\ %=%-30(%{strftime(\"\%c\",getftime(expand(\"\%\%\")))}\ %)%P
|
" persistent undo
|
||||||
" set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %=%-16(\ Line:\ %l\ of\ %L\ %)\ %=%-30(%{strftime(\"\%c\",getftime(expand(\"\%\%\")))}\ %)%P
|
if has("persistent_undo")
|
||||||
|
set undodir=/$HOME/.vim/tmp/
|
||||||
|
set undofile
|
||||||
|
endif
|
||||||
|
|
||||||
" airline
|
" airline
|
||||||
if !exists("g:airline_symbols")
|
if !exists("g:airline_symbols")
|
||||||
@@ -203,7 +205,7 @@ map <leader>tl :tablast<cr>
|
|||||||
map <leader>tm :tabmove<cr>
|
map <leader>tm :tabmove<cr>
|
||||||
map <leader>ll :NERDTreeToggle<cr>
|
map <leader>ll :NERDTreeToggle<cr>
|
||||||
map <leader>lo :NERDTree<cr>
|
map <leader>lo :NERDTree<cr>
|
||||||
map <leader>_ :GundoToggle<cr>
|
map <leader>_ :UndotreeToggle<cr>
|
||||||
" Marked.app is an Markdown interpreter on MacOS
|
" Marked.app is an Markdown interpreter on MacOS
|
||||||
map <leader>m :silent !open -a Marked.app '%:p'<cr>
|
map <leader>m :silent !open -a Marked.app '%:p'<cr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user