diff --git a/colors.vim b/colors.vim new file mode 100644 index 0000000..4d3ead7 --- /dev/null +++ b/colors.vim @@ -0,0 +1,16 @@ +set t_Co=16 +highlight Cursor ctermfg=14 +highlight Keyword ctermfg=06 +highlight Define ctermfg=06 +highlight Comment ctermfg=03 +highlight Type ctermfg=08 +highlight Operator ctermfg=05 +highlight Identifier ctermfg=13 +highlight Constant ctermfg=11 +highlight Function ctermfg=01 +highlight Include ctermfg=06 +highlight Statement ctermfg=06 +highlight String ctermfg=03 +highlight Search ctermbg=14 +highlight LineNr ctermfg=08 +highlight NonText ctermfg=00 \ No newline at end of file diff --git a/vimrc b/vimrc index 6c259f2..e11a45c 100644 --- a/vimrc +++ b/vimrc @@ -2,17 +2,17 @@ "" Environment "" -" vim environment +" Vim environment 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" -" ctags data +" Ctags data set tags=$XDG_CACHE_HOME/vim/tags -" keep history +" Keep history set undodir=$XDG_CACHE_HOME/vim/undo set undofile @@ -21,9 +21,6 @@ set undofile "" Options "" -set spell spelllang=it " Spell checking... -set nospell " ...only when needed - set nocompatible " Disable vi compatibility set backspace=2 " Fix DEL in the terminal set hidden " Hide buffers @@ -60,12 +57,13 @@ set noexpandtab " set number " Line numbering set autoindent " Indentation -syntax on " Enable syntax highlighting set smartindent " set noshowmode " +syntax on " Syntax highlighting +source colors.vim -" Barra del titolo senza “-VIM” +" Titlebar without “-VIM” set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%) @@ -79,10 +77,7 @@ map map map -map :call ToggleSpell() -map :NERDTreeTabsToggle -map :TagbarToggle -map :q! +map :TagbarToggle "" @@ -94,9 +89,10 @@ call vundle#begin('$XDG_CACHE_HOME/vim/plugins') Plugin 'VundleVim/Vundle.vim' Plugin 'kien/ctrlp.vim' +Plugin 'itchyny/lightline.vim' Plugin 'townk/vim-autoclose' Plugin 'tpope/vim-fugitive' -Plugin 'itchyny/lightline.vim' +Plugin 'travitch/hasksyn' Plugin 'tpope/vim-markdown' Plugin 'ervandew/supertab' Plugin 'majutsushi/tagbar' @@ -113,26 +109,25 @@ call vundle#end() source $XDG_CONFIG_HOME/vim/lightline.vim " Syntastic -let g:syntastic_check_on_open = 1 -let g:syntastic_enable_signs = 1 -let g:syntastic_python_checkers = ["flake8", "python"] +let g:syntastic_check_on_open = 1 +let g:syntastic_enable_signs = 1 +let g:syntastic_python_checkers = ["flake8", "python"] let g:syntastic_python_python_exe = 'python3' " Tagbar let g:tagbar_status_func = "TagbarStatusFunc" -let g:tagbar_compact = 1 -let g:tagbar_iconchars = [">", "∨"] +let g:tagbar_compact = 1 +let g:tagbar_iconchars = [">", "∨"] " MiniBufferExplorer -let g:miniBufExplMapWindowNavVim = 1 +let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 -let g:miniBufExplMapCTabSwitchBufs = 1 -let g:miniBufExplModSelTarget = 1 +let g:miniBufExplMapCTabSwitchBufs = 1 +let g:miniBufExplModSelTarget = 1 " CtrlP -let g:ctrlp_clear_cache_on_exit=0 +let g:ctrlp_clear_cache_on_exit = 0 let g:ctrlp_custom_ignore = {"dir": "\v[\/]\.(git|hg|svn|ve)$"} -let g:ctrlp_status_func = {"main": "CtrlPStatusMain", - \"prog": "CtrlPStatusProg"} - +let g:ctrlp_status_func = {"main": "CtrlPStatusMain", + \"prog": "CtrlPStatusProg"}