Shave off some plugins

This commit is contained in:
rnhmjoj 2015-10-10 15:34:29 +02:00
parent 4df3ebfd1c
commit b711bca382
2 changed files with 35 additions and 82 deletions

@ -1 +0,0 @@
Subproject commit 08e9894d2a9452537663f09a73ddeb4e647e9c4c

116
vimrc
View File

@ -1,41 +1,48 @@
set rtp+=~/.vim/bundle/vundle/ " Vundle
call vundle#rc() "
""
"" Bundles
"" Environment
""
Bundle "gmarik/vundle"
Bundle "kien/ctrlp.vim"
Bundle "townk/vim-autoclose"
Bundle "laktek/distraction-free-writing-vim"
Bundle "tpope/vim-fugitive"
Bundle 'jnwhiteh/vim-golang'
Bundle "sjl/gundo.vim"
Bundle "digitaltoad/vim-jade"
Bundle "davidhalter/jedi-vim"
Bundle "itchyny/lightline.vim"
Bundle "tpope/vim-markdown"
Bundle "scrooloose/nerdcommenter"
Bundle "scrooloose/nerdtree"
Bundle "jistr/vim-nerdtree-tabs"
Bundle "ervandew/supertab"
Bundle "majutsushi/tagbar"
Bundle "altercation/vim-colors-solarized"
Bundle "scrooloose/syntastic"
set directory=$XDG_CACHE_HOME/vim,~/,/tmp
set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
set rtp=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME
let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
""
"" Plugins
""
set rtp+=$XDG_CACHE_HOME/vim/plugins/Vundle.vim
call vundle#begin('$XDG_CACHE_HOME/vim/plugins')
Plugin 'VundleVim/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'townk/vim-autoclose'
Plugin 'tpope/vim-fugitive'
Plugin 'sjl/gundo.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'tpope/vim-markdown'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'ervandew/supertab'
Plugin 'majutsushi/tagbar'
Plugin 'scrooloose/syntastic'
call vundle#end()
""
"" Plugins
""
" Lightline
let g:lightline = {
\"colorscheme": "solarized_dark",
\"active": {
\ "left": [[ "mode", "paste" ], ["fugitive", "filename", "readonly", "ctrlpmark"]],
\ "right": [ ["syntastic", "lineinfo"], ["percent"], ["fileformat", "fileencoding", "filetype"]]
\ },
\"component": {
\"readonly": '%{&filetype=="help"?"":&readonly?"":""}',
\"readonly": '%{&filetype=="help"?"":&readonly?"":""}',
\"modified": '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}'
\ },
\'component_visible_condition': {
@ -50,15 +57,13 @@ let g:lightline = {
\ },
\"component_function": {
\ "filename": "Filename",
\ "fugitive": "Fugitive",
\ "fugitive": "Fugitive",
\ "fileformat": "Fileformat",
\ "filetype": "Filetype",
\ "fileencoding": "Fileencoding",
\ "mode": "Mode",
\ "ctrlpmark": "CtrlPMark",
\ },
\"separator": { "left": "⮀", "right": "⮂" },
\"subseparator": { "left": "⮁", "right": "⮃" }
\ }
\ }
let g:syntastic_check_on_open = 1 " Syntactic
@ -75,12 +80,6 @@ let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1 "
let g:miniBufExplModSelTarget = 1 "
au BufNewFile,BufRead *.md call DistractionFreeWriting() " DistractionFreeWriting
let g:fullscreen_colorscheme = "iawriter" "
let g:fullscreen_font = "Cousine:h14" "
let g:normal_colorscheme = "solarized" "
let g:normal_font = "Inconsolata-dz\ for\ Powerline:h12" "
let g:nerdtree_tabs_open_on_gui_startup = 0 " NerdTree
let g:nerdtree_tabs_open_on_console_startup = 0 "
@ -92,15 +91,6 @@ let g:ctrlp_custom_ignore = {"dir": "\v[\/]\.(git|hg|svn|ve)$"}
"" Impostazioni generali
""
if has("gui_running") " Solo per GUI
set lines=45 columns=150 " Imposta larghezza e altezza
set guifont=Inconsolata-dz\ for\ Powerline:h12 " Font
endif "
if has("gui_macvim") " Seleziona il testo con shift
let macvim_hig_shift_movement = 1 "
endif "
set spell spelllang=it " Controllo ortografico...
set nospell " ...solo quando serve
@ -123,20 +113,16 @@ set vb t_vb=
set nobackup " Disabilita i backup ~
set noswapfile " Disabilita i file di Swap
set writebackup " Abilita backup temporanei
set backupdir=~/.vim/backup "
set directory=~/.vim/temp "
set undodir=~/.vim/undo " Mantiene la cronologia
set undodir=$XDG_CACHE_HOME/vim/undo " Mantiene la cronologia
set undofile "
set wildmenu " Autocompletamento dei comandi
set encoding=utf-8 " Codifica
set wildignore+=.DS_Store " Nasconde i file DS_Store
set nomodeline " Sicurezza
set tabpagemax=10 " Limita il numero di tab a 10
set showmatch " Evidenzia le parentesi selezionate
set ffs=unix,mac " Formato Unix e Mac per i file
set dictionary=/usr/share/dict/words " Dizionario per il controllo ortografico
set clipboard=unnamed " Integrazione con la clipboard
set ttyfast " Migliora il redrawing in xterm
filetype indent plugin on " Riconoscimento del tipo del file
@ -157,15 +143,7 @@ set go-=r
set go-=L "
let g:solarized_visibility="low" " Schema dei colori
colorscheme solarized "
syntax enable "
if has("gui_running") "
set background=light "
let g:lightline.colorscheme="solarized" "
else "
set background=dark "
endif "
hi NonText guifg=bg "
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%) " Barra del titolo senza-VIM
@ -249,28 +227,6 @@ function! TagbarStatusFunc(current, sort, fname, ...) abort
return lightline#statusline(0)
endfunction
function ToggleSpell()
if(&spell)
set nospell
else
set spell
endif
endfunction
function ToggleColorScheme()
if &background=="dark"
set background=light
let g:lightline.colorscheme = "solarized"
else
set background=dark
let g:lightline.colorscheme = "solarized_dark"
endif
hi NonText guifg=bg
call lightline#init()
call lightline#colorscheme()
call lightline#update()
endfunction
""
"" Mapping
@ -285,7 +241,6 @@ map <F2> :GundoToggle<CR>
map <F3> :call ToggleSpell()<CR> " Controllo ortografico
map <F5> :NERDTreeTabsToggle<CR> " Apri NERDTree
map <F6> :TagbarToggle<CR> " Apri Tagbar
map <F7> :call ToggleColorScheme()<CR> " Cambia sfondo di Solarized
map <D-e> :q!<CR> " Esci senza salvare
@ -293,5 +248,4 @@ map <D-e> :q!<CR>
"" Varie
""
set tags=~/.vim/tags " Tags
let $PATH = "Users/Michele/.pyenv/shims:/usr/local/bin:/usr/bin:/bin" " PATH
set tags=$XDG_CACHE_HOME/vim/tags " Tags