cleaning up vimrc and plugins
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
|
filetype off
|
||||||
|
|
||||||
set rtp+=~/.vim/bundle/vundle/
|
set rtp+=~/.vim/bundle/vundle/
|
||||||
call vundle#rc()
|
call vundle#rc()
|
||||||
|
|
||||||
" let vundle manage vundle
|
" let vundle manage vundle
|
||||||
Bundle 'gmarik/vundle'
|
Bundle 'gmarik/vundle'
|
||||||
|
|
||||||
" my vim plugins
|
" utilities
|
||||||
Bundle 'kien/ctrlp.vim'
|
Bundle 'kien/ctrlp.vim'
|
||||||
Bundle 'scrooloose/nerdtree'
|
Bundle 'scrooloose/nerdtree'
|
||||||
Bundle 'mileszs/ack.vim'
|
Bundle 'mileszs/ack.vim'
|
||||||
@@ -12,45 +14,47 @@ Bundle 'Raimondi/delimitMate'
|
|||||||
Bundle 'tpope/vim-commentary'
|
Bundle 'tpope/vim-commentary'
|
||||||
Bundle 'tpope/vim-unimpaired'
|
Bundle 'tpope/vim-unimpaired'
|
||||||
Bundle 'tpope/vim-endwise'
|
Bundle 'tpope/vim-endwise'
|
||||||
|
Bundle 'tpope/vim-ragtag'
|
||||||
|
Bundle 'tpope/vim-surround'
|
||||||
|
Bundle 'tsaleh/vim-matchit'
|
||||||
|
Bundle 'benmills/vimux'
|
||||||
|
Bundle 'bling/vim-airline'
|
||||||
|
Bundle 'scrooloose/syntastic'
|
||||||
|
Bundle 'ciaranm/detectindent'
|
||||||
Bundle 'tpope/vim-fugitive'
|
Bundle 'tpope/vim-fugitive'
|
||||||
|
Bundle 'terryma/vim-multiple-cursors'
|
||||||
|
Bundle 'tpope/vim-repeat'
|
||||||
|
Bundle 'tonchis/to-github-vim'
|
||||||
|
Bundle 'garbas/vim-snipmate'
|
||||||
|
Bundle 'mattn/emmet-vim'
|
||||||
|
Bundle 'editorconfig/editorconfig-vim'
|
||||||
|
Bundle "MarcWeber/vim-addon-mw-utils"
|
||||||
|
Bundle "tomtom/tlib_vim"
|
||||||
|
Bundle 'sotte/presenting.vim'
|
||||||
|
Bundle 'ervandew/supertab'
|
||||||
|
|
||||||
|
" colorschemes
|
||||||
|
Bundle 'ap/vim-css-color'
|
||||||
|
Bundle 'flazz/vim-colorschemes'
|
||||||
|
Bundle 'nanotech/jellybeans.vim'
|
||||||
|
Bundle 'w0ng/vim-hybrid'
|
||||||
|
|
||||||
|
" languages
|
||||||
Bundle 'othree/html5.vim'
|
Bundle 'othree/html5.vim'
|
||||||
Bundle 'pangloss/vim-javascript'
|
Bundle 'pangloss/vim-javascript'
|
||||||
Bundle 'itspriddle/vim-jquery'
|
Bundle 'itspriddle/vim-jquery'
|
||||||
Bundle 'tpope/vim-markdown'
|
Bundle 'tpope/vim-markdown'
|
||||||
Bundle 'wavded/vim-stylus'
|
Bundle 'wavded/vim-stylus'
|
||||||
Bundle 'tpope/vim-ragtag'
|
|
||||||
Bundle 'tpope/vim-surround'
|
|
||||||
Bundle 'duff/vim-scratch'
|
|
||||||
Bundle 'digitaltoad/vim-jade'
|
|
||||||
" Bundle 'sjl/vitality.vim'
|
|
||||||
Bundle 'cakebaker/scss-syntax.vim'
|
|
||||||
Bundle 'kchmck/vim-coffee-script'
|
|
||||||
Bundle 'groenewege/vim-less'
|
Bundle 'groenewege/vim-less'
|
||||||
Bundle 'tsaleh/vim-matchit'
|
Bundle 'digitaltoad/vim-jade'
|
||||||
Bundle 'benmills/vimux'
|
|
||||||
Bundle 'mattn/emmet-vim'
|
|
||||||
Bundle 'ap/vim-css-color'
|
|
||||||
Bundle 'flazz/vim-colorschemes'
|
|
||||||
Bundle 'editorconfig/editorconfig-vim'
|
|
||||||
Bundle 'juvenn/mustache.vim'
|
Bundle 'juvenn/mustache.vim'
|
||||||
Bundle 'tclem/vim-arduino'
|
|
||||||
Bundle 'bling/vim-airline'
|
|
||||||
Bundle 'scrooloose/syntastic'
|
|
||||||
Bundle "MarcWeber/vim-addon-mw-utils"
|
|
||||||
Bundle "tomtom/tlib_vim"
|
|
||||||
Bundle 'garbas/vim-snipmate'
|
|
||||||
Bundle 'terryma/vim-multiple-cursors'
|
|
||||||
Bundle 'tpope/vim-repeat'
|
|
||||||
Bundle 'tonchis/to-github-vim'
|
|
||||||
Bundle 'sotte/presenting.vim'
|
|
||||||
Bundle 'moll/vim-node'
|
Bundle 'moll/vim-node'
|
||||||
Bundle 'elzr/vim-json'
|
Bundle 'elzr/vim-json'
|
||||||
Bundle 'leafgarland/typescript-vim'
|
Bundle 'leafgarland/typescript-vim'
|
||||||
Bundle 'jnwhiteh/vim-golang'
|
Bundle 'jnwhiteh/vim-golang'
|
||||||
Bundle 'ervandew/supertab'
|
|
||||||
Bundle 'nanotech/jellybeans.vim'
|
|
||||||
Bundle 'dart-lang/dart-vim-plugin'
|
Bundle 'dart-lang/dart-vim-plugin'
|
||||||
" Bundle 'Valloric/YouCompleteMe'
|
Bundle 'cakebaker/scss-syntax.vim'
|
||||||
" Bundle 'marijnh/tern_for_vim'
|
Bundle 'kchmck/vim-coffee-script'
|
||||||
Bundle 'w0ng/vim-hybrid'
|
Bundle 'tclem/vim-arduino'
|
||||||
Bundle 'ciaranm/detectindent'
|
|
||||||
|
filetype plugin indent on
|
||||||
|
|||||||
@@ -1,26 +1,18 @@
|
|||||||
" vim settings
|
|
||||||
|
|
||||||
if (!exists('vimrc_already_sourced'))
|
|
||||||
filetype off
|
|
||||||
source ~/.vim/plugins.vim
|
|
||||||
filetype plugin indent on
|
|
||||||
endif
|
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => General
|
" => General
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
" load plugins from vundle
|
||||||
|
source ~/.vim/plugins.vim
|
||||||
|
|
||||||
" load functions
|
" load functions
|
||||||
source ~/.vim/functions.vim
|
source ~/.vim/functions.vim
|
||||||
|
|
||||||
"""" Abbreviations
|
" Abbreviations
|
||||||
abbr funciton function
|
abbr funciton function
|
||||||
abbr teh the
|
abbr teh the
|
||||||
abbr tempalte template
|
abbr tempalte template
|
||||||
|
|
||||||
"set winwidth=120
|
|
||||||
|
|
||||||
set nocompatible " not compatible with vi
|
set nocompatible " not compatible with vi
|
||||||
set autoread " detect when a file is changed
|
set autoread " detect when a file is changed
|
||||||
|
|
||||||
@@ -31,8 +23,7 @@ set backspace=indent,eol,start
|
|||||||
let mapleader = ","
|
let mapleader = ","
|
||||||
let g:mapleader = ","
|
let g:mapleader = ","
|
||||||
|
|
||||||
" change history to 1000
|
set history=10000 " change history to 1000
|
||||||
set history=10000
|
|
||||||
" set textwidth=80
|
" set textwidth=80
|
||||||
|
|
||||||
" Tab control
|
" Tab control
|
||||||
@@ -80,7 +71,7 @@ if has("autocmd") && !exists("autocommands_loaded")
|
|||||||
|
|
||||||
autocmd BufNewFile,BufRead *.ejs set filetype=html
|
autocmd BufNewFile,BufRead *.ejs set filetype=html
|
||||||
autocmd BufNewFile,BufRead *.ino set filetype=c
|
autocmd BufNewFile,BufRead *.ino set filetype=c
|
||||||
autocmd BufNewFile,BufRead *.svg set filetype=xml
|
autocmd BufNewFile,BufRead *.svg set filetype=xml
|
||||||
|
|
||||||
" make quickfix windows take all the lower section of the screen when there
|
" make quickfix windows take all the lower section of the screen when there
|
||||||
" are multiple windows open
|
" are multiple windows open
|
||||||
@@ -328,6 +319,3 @@ if (has("gui_running"))
|
|||||||
let g:airline_powerline_fonts=0
|
let g:airline_powerline_fonts=0
|
||||||
let g:airline_theme='solarized'
|
let g:airline_theme='solarized'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let vimrc_already_sourced = 1
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user