move to vim-plug

This commit is contained in:
Thomas Ruoff
2015-03-21 01:00:08 +01:00
parent 6fb9993251
commit 0754355c54
3 changed files with 2064 additions and 105 deletions

4
.gitignore vendored
View File

@@ -1,6 +1,4 @@
irssi irssi
vim/plugged/*
vim/bundle/*
!vim/bundle/Vundle.vim
vim/spell vim/spell
.netrwhist .netrwhist

2020
vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

145
vimrc
View File

@@ -1,79 +1,58 @@
" NeoBundle call plug#begin('~/.vim/plugged')
if !1 | finish | endif
if has('vim_starting') Plug 'tpope/vim-sensible'
set nocompatible " Be iMproved
set runtimepath+=~/.vim/bundle/neobundle.vim/ Plug 'L9'
endif Plug 'unimpaired.vim'
call neobundle#begin(expand('~/.vim/bundle/')) Plug 'Shougo/unite.vim'
NeoBundleFetch 'Shougo/neobundle.vim' Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
" my bundles Plug 'scrooloose/nerdcommenter'
NeoBundle 'L9'
NeoBundle 'unimpaired.vim'
NeoBundle 'Shougo/unite.vim' Plug 'surround.vim'
NeoBundle 'scrooloose/nerdtree' Plug 'SirVer/ultisnips'
NeoBundle 'kien/ctrlp.vim' Plug 'honza/vim-snippets'
NeoBundle 'scrooloose/nerdcommenter' Plug 'sjl/gundo.vim'
NeoBundle 'surround.vim' Plug 'editorconfig/editorconfig-vim'
NeoBundle 'SirVer/ultisnips' Plug 'sheerun/vim-polyglot'
NeoBundle 'honza/vim-snippets'
NeoBundle 'sjl/gundo.vim' Plug 'nathanaelkane/vim-indent-guides'
NeoBundle 'editorconfig/editorconfig-vim' Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
NeoBundle 'sheerun/vim-polyglot' Plug 'rking/ag.vim'
NeoBundle 'nathanaelkane/vim-indent-guides' Plug 'christoomey/vim-tmux-navigator'
NeoBundle 'tpope/vim-fugitive' Plug 'itchyny/lightline.vim'
NeoBundle 'airblade/vim-gitgutter' Plug 'chriskempson/base16-vim'
NeoBundle 'rking/ag.vim' Plug 'scrooloose/syntastic'
Plug 'Raimondi/delimitMate'
NeoBundle 'christoomey/vim-tmux-navigator' Plug 'jelera/vim-javascript-syntax'
Plug 'JavaScript-Indent'
Plug 'othree/javascript-libraries-syntax.vim'
Plug 'marijnh/tern_for_vim', { 'do': 'npm install' }
NeoBundle 'itchyny/lightline.vim' Plug 'mustache/vim-mustache-handlebars'
NeoBundle 'chriskempson/base16-vim' Plug 'gorodinskiy/vim-coloresque'
NeoBundle 'scrooloose/syntastic.git' Plug 'inside/vim-search-pulse'
NeoBundle 'Raimondi/delimitMate'
NeoBundle 'jelera/vim-javascript-syntax' call plug#end()
NeoBundle 'JavaScript-Indent'
NeoBundle 'othree/javascript-libraries-syntax.vim'
NeoBundle 'marijnh/tern_for_vim'
NeoBundle 'mustache/vim-mustache-handlebars'
NeoBundle 'gorodinskiy/vim-coloresque'
NeoBundle 'inside/vim-search-pulse'
call neobundle#end()
filetype plugin indent on
NeoBundleCheck
" other stuff
"" reload when vim config changes "" reload when vim config changes
autocmd! bufwritepost .vimrc source % autocmd! bufwritepost .vimrc source %
"" Encoding
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
"" Tabs. May be overriten by autocmd rules "" Tabs. May be overriten by autocmd rules
set tabstop=4 set tabstop=4
set softtabstop=0 set softtabstop=0
@@ -85,28 +64,27 @@ set hidden
"" Searching "" Searching
set hlsearch set hlsearch
set incsearch
set ignorecase
set smartcase set smartcase
"" Encoding
set bomb
set ttyfast
set binary
"" Directories for swp files "" Directories for swp files
set nobackup set nobackup
set noswapfile set noswapfile
set fileformats=unix,mac,dos
set showcmd
"" Mouse "" Mouse
set mouse=a set mouse=a
" "" Visual settings
" Visual Settings syntax enable
" set cursorline
set number
if exists('+relativenumber')
set relativenumber
endif
set background=dark
let base16colorspace=256
colorscheme base16-solarized
if has("gui_running") if has("gui_running")
"disable menu, toolsbar, scrollbar "disable menu, toolsbar, scrollbar
@@ -115,22 +93,6 @@ if has("gui_running")
set guioptions -=r set guioptions -=r
endif endif
set ruler
set number
set t_Co=256
set cursorline
syntax enable
set background=dark
let base16colorspace=256
colorscheme base16-solarized
set scrolloff=3
"" Status bar
set laststatus=2
"" Use modeline overrides "" Use modeline overrides
set modeline set modeline
set modelines=10 set modelines=10
@@ -159,11 +121,7 @@ if !has("gui_running")
hi SpellRare cterm=underline ctermfg=blue hi SpellRare cterm=underline ctermfg=blue
endif endif
" Sets how many lines of history vim has to remember
set history=10000
" Display unprintable chars " Display unprintable chars
set list
set listchars=tab:▸\ ,extends:,precedes:,nbsp:␣ set listchars=tab:▸\ ,extends:,precedes:,nbsp:␣
set showbreak= set showbreak=
@@ -192,15 +150,8 @@ let mapleader = ","
nmap <leader>w :update<cr> nmap <leader>w :update<cr>
"" fast escaping "" fast escaping
imap jj <ESC> imap jj <ESC>
"" prevent accidental striking of F1 key
map <F1> <ESC>
imap <F1> <ESC>
"" clear highlight "" clear highlight
nnoremap <leader><space> :noh<cr> nnoremap <leader><space> :noh<cr>
"" map Y to match C and D behavior
nnoremap Y y$
"" yank entire file (global yank)
nmap gy ggVGy
"" ignore lines when going up or down "" ignore lines when going up or down
nnoremap j gj nnoremap j gj
nnoremap k gk nnoremap k gk
@@ -272,10 +223,6 @@ vnoremap <silent> <Leader>0 :!node<cr>
nnoremap + <c-a> nnoremap + <c-a>
nnoremap - <c-x> nnoremap - <c-x>
if exists('+relativenumber')
set relativenumber
endif
" "
" Plugin Configuration " Plugin Configuration
" "
@@ -310,10 +257,6 @@ nmap <leader>j ]e
vmap <leader>k [egv vmap <leader>k [egv
vmap <leader>j ]egv vmap <leader>j ]egv
"" yankstack
nmap <leader>p <Plug>yankstack_substitute_older_paste
nmap <leader>P <Plug>yankstack_substitute_newer_paste
"" Make Ctrl-P plugin a lot faster for Git projects "" Make Ctrl-P plugin a lot faster for Git projects
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f']
let g:ctrlp_use_caching = 0 let g:ctrlp_use_caching = 0
@@ -342,8 +285,6 @@ autocmd BufEnter * :syntax sync fromstart
"" Remember cursor position "" Remember cursor position
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
set autoread
"" txt, mail, human, tex "" txt, mail, human, tex
au BufNewFile,BufRead *.txt set filetype=human au BufNewFile,BufRead *.txt set filetype=human
au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell