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" set directory=$XDG_CACHE_HOME/vim,~/,/tmp
Bundle "kien/ctrlp.vim" set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp
Bundle "townk/vim-autoclose" set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
Bundle "laktek/distraction-free-writing-vim" set rtp=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME
Bundle "tpope/vim-fugitive" let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
Bundle 'jnwhiteh/vim-golang'
Bundle "sjl/gundo.vim"
Bundle "digitaltoad/vim-jade" ""
Bundle "davidhalter/jedi-vim" "" Plugins
Bundle "itchyny/lightline.vim" ""
Bundle "tpope/vim-markdown"
Bundle "scrooloose/nerdcommenter" set rtp+=$XDG_CACHE_HOME/vim/plugins/Vundle.vim
Bundle "scrooloose/nerdtree" call vundle#begin('$XDG_CACHE_HOME/vim/plugins')
Bundle "jistr/vim-nerdtree-tabs"
Bundle "ervandew/supertab" Plugin 'VundleVim/Vundle.vim'
Bundle "majutsushi/tagbar" Plugin 'kien/ctrlp.vim'
Bundle "altercation/vim-colors-solarized" Plugin 'townk/vim-autoclose'
Bundle "scrooloose/syntastic" 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 "" Plugins
"" ""
" Lightline " Lightline
let g:lightline = { let g:lightline = {
\"colorscheme": "solarized_dark",
\"active": { \"active": {
\ "left": [[ "mode", "paste" ], ["fugitive", "filename", "readonly", "ctrlpmark"]], \ "left": [[ "mode", "paste" ], ["fugitive", "filename", "readonly", "ctrlpmark"]],
\ "right": [ ["syntastic", "lineinfo"], ["percent"], ["fileformat", "fileencoding", "filetype"]] \ "right": [ ["syntastic", "lineinfo"], ["percent"], ["fileformat", "fileencoding", "filetype"]]
\ }, \ },
\"component": { \"component": {
\"readonly": '%{&filetype=="help"?"":&readonly?"":""}', \"readonly": '%{&filetype=="help"?"":&readonly?"":""}',
\"modified": '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}' \"modified": '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}'
\ }, \ },
\'component_visible_condition': { \'component_visible_condition': {
@ -50,15 +57,13 @@ let g:lightline = {
\ }, \ },
\"component_function": { \"component_function": {
\ "filename": "Filename", \ "filename": "Filename",
\ "fugitive": "Fugitive", \ "fugitive": "Fugitive",
\ "fileformat": "Fileformat", \ "fileformat": "Fileformat",
\ "filetype": "Filetype", \ "filetype": "Filetype",
\ "fileencoding": "Fileencoding", \ "fileencoding": "Fileencoding",
\ "mode": "Mode", \ "mode": "Mode",
\ "ctrlpmark": "CtrlPMark", \ "ctrlpmark": "CtrlPMark",
\ }, \ }
\"separator": { "left": "⮀", "right": "⮂" },
\"subseparator": { "left": "⮁", "right": "⮃" }
\ } \ }
let g:syntastic_check_on_open = 1 " Syntactic let g:syntastic_check_on_open = 1 " Syntactic
@ -75,12 +80,6 @@ let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1 " let g:miniBufExplMapCTabSwitchBufs = 1 "
let g:miniBufExplModSelTarget = 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_gui_startup = 0 " NerdTree
let g:nerdtree_tabs_open_on_console_startup = 0 " 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 "" 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 spell spelllang=it " Controllo ortografico...
set nospell " ...solo quando serve set nospell " ...solo quando serve
@ -123,20 +113,16 @@ set vb t_vb=
set nobackup " Disabilita i backup ~ set nobackup " Disabilita i backup ~
set noswapfile " Disabilita i file di Swap set noswapfile " Disabilita i file di Swap
set writebackup " Abilita backup temporanei 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 undofile "
set wildmenu " Autocompletamento dei comandi set wildmenu " Autocompletamento dei comandi
set encoding=utf-8 " Codifica set encoding=utf-8 " Codifica
set wildignore+=.DS_Store " Nasconde i file DS_Store
set nomodeline " Sicurezza set nomodeline " Sicurezza
set tabpagemax=10 " Limita il numero di tab a 10 set tabpagemax=10 " Limita il numero di tab a 10
set showmatch " Evidenzia le parentesi selezionate set showmatch " Evidenzia le parentesi selezionate
set ffs=unix,mac " Formato Unix e Mac per i file 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 clipboard=unnamed " Integrazione con la clipboard
set ttyfast " Migliora il redrawing in xterm set ttyfast " Migliora il redrawing in xterm
filetype indent plugin on " Riconoscimento del tipo del file filetype indent plugin on " Riconoscimento del tipo del file
@ -157,15 +143,7 @@ set go-=r
set go-=L " set go-=L "
let g:solarized_visibility="low" " Schema dei colori
colorscheme solarized "
syntax enable " syntax enable "
if has("gui_running") "
set background=light "
let g:lightline.colorscheme="solarized" "
else "
set background=dark "
endif "
hi NonText guifg=bg " hi NonText guifg=bg "
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%) " Barra del titolo senza-VIM 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) return lightline#statusline(0)
endfunction 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 "" Mapping
@ -285,7 +241,6 @@ map <F2> :GundoToggle<CR>
map <F3> :call ToggleSpell()<CR> " Controllo ortografico map <F3> :call ToggleSpell()<CR> " Controllo ortografico
map <F5> :NERDTreeTabsToggle<CR> " Apri NERDTree map <F5> :NERDTreeTabsToggle<CR> " Apri NERDTree
map <F6> :TagbarToggle<CR> " Apri Tagbar map <F6> :TagbarToggle<CR> " Apri Tagbar
map <F7> :call ToggleColorScheme()<CR> " Cambia sfondo di Solarized
map <D-e> :q!<CR> " Esci senza salvare map <D-e> :q!<CR> " Esci senza salvare
@ -293,5 +248,4 @@ map <D-e> :q!<CR>
"" Varie "" Varie
"" ""
set tags=~/.vim/tags " Tags set tags=$XDG_CACHE_HOME/vim/tags " Tags
let $PATH = "Users/Michele/.pyenv/shims:/usr/local/bin:/usr/bin:/bin" " PATH