Browse Source

Swap to Plug as plugin manger

coc
Marcel Schneider 8 years ago
parent
commit
cab1bc05ab
  1. 71
      vimrc

71
.vimrc → vimrc

@ -1,64 +1,56 @@
set nocompatible " be iMproved, required set nocompatible " be iMproved, required
filetype off " required filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Load vim-plug
if empty(glob("~/.vim/autoload/plug.vim"))
execute '!curl -fLo ~/.vim/autoload/plug.vim https://raw.github.com/junegunn/vim-plug/master/plug.vim'
endif
call plug#begin()
" alternatively, pass a path where Vundle should install plugins " alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here') "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plug 'VundleVim/Vundle.vim'
" The following are examples of different formats supported. " The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end. " Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo " plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
Plug 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html " plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
Plug 'L9'
" Git plugin not hosted on GitHub " Git plugin not hosted on GitHub
Plugin 'tpope/vim-sensible'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdcommenter'
"Plugin 'myusuf3/numbers.vim'
Plugin 'Shougo/neocomplete.vim'
Plugin 'Shougo/neosnippet.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'bling/vim-airline'
Plugin 'tpope/vim-ragtag'
Plug 'tpope/vim-sensible'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': 'NERDTreeToggle' }
Plug 'kien/ctrlp.vim'
Plug 'scrooloose/nerdcommenter'
"Plug 'myusuf3/numbers.vim'
Plug 'Shougo/neocomplete.vim'
Plug 'Shougo/neosnippet.vim'
Plug 'easymotion/vim-easymotion'
Plug 'bling/vim-airline'
Plug 'tpope/vim-ragtag'
" html / templates " html / templates
Plugin 'mattn/emmet-vim', { 'for': 'html' } " emmet support for vim - easily create markdup wth CSS-like syntax
Plugin 'gregsexton/MatchTag', { 'for': 'html' } " match tags in html, similar to paren support
Plugin 'othree/html5.vim', { 'for': 'html' } " html5 support
Plug 'mattn/emmet-vim', { 'for': 'html' } " emmet support for vim - easily create markdup wth CSS-like syntax
Plug 'gregsexton/MatchTag', { 'for': 'html' } " match tags in html, similar to paren support
Plug 'othree/html5.vim', { 'for': 'html' } " html5 support
" JavaScript " JavaScript
Plugin 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support
Plugin 'moll/vim-node', { 'for': 'javascript' } " node support
Plugin 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin
Plugin 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax
Plug 'gavocanov/vim-js-indent', { 'for': 'javascript' } " JavaScript indent support
Plug 'moll/vim-node', { 'for': 'javascript' } " node support
Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin
Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax
" Go " Go
Plugin 'fatih/vim-go', { 'for': 'go' } " go support
Plug 'fatih/vim-go', { 'for': 'go' } " go support
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call vundle#end() " required
call plug#end() " required
filetype plugin indent on " required filetype plugin indent on " required
" To ignore plugin indent changes, instead use: " To ignore plugin indent changes, instead use:
"filetype plugin on "filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" S E T T I N G S " S E T T I N G S
set number set number
@ -74,6 +66,7 @@ set autoindent " automatically set indent of new line
set smartindent set smartindent
set tabstop=4 set tabstop=4
set shiftwidth=4 set shiftwidth=4
set expandtab
" toggle invisible characters " toggle invisible characters
set list set list
@ -101,8 +94,12 @@ if has("autocmd")
\| exe "normal! g'\"" | endif \| exe "normal! g'\"" | endif
endif endif
" P L U G I N S
let NERDTreeShowHidden=1 let NERDTreeShowHidden=1
let g:airline_powerline_fonts = 1
" M A P P I N G S " M A P P I N G S
let mapleader = "," let mapleader = ","
@ -112,6 +109,8 @@ nmap <silent> <leader>k :NERDTreeToggle<cr>
nmap <silent> <leader>y :NERDTreeFind<cr> nmap <silent> <leader>y :NERDTreeFind<cr>
" Allow saving of files as sudo when I forgot to start vim using sudo. " Allow saving of files as sudo when I forgot to start vim using sudo.
cmap w!! w !sudo tee > /dev/null % cmap w!! w !sudo tee > /dev/null %
"Toggle set paste
nmap <leader>tp :set paste!<cr>
" N E O C O M P L E T E " N E O C O M P L E T E
"Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)! "Note: This option must be set in .vimrc(_vimrc). NOT IN .gvimrc(_gvimrc)!
Loading…
Cancel
Save