Add basic color scheme

This commit is contained in:
rnhmjoj 2015-10-10 19:38:14 +02:00
parent 1176202dde
commit 737558e5a8
2 changed files with 36 additions and 25 deletions

16
colors.vim Normal file
View File

@ -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

45
vimrc
View File

@ -2,17 +2,17 @@
"" Environment "" Environment
"" ""
" vim environment " Vim environment
set directory=$XDG_CACHE_HOME/vim,~/,/tmp set directory=$XDG_CACHE_HOME/vim,~/,/tmp
set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp set backupdir=$XDG_CACHE_HOME/vim,~/,/tmp
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo set viminfo+=n$XDG_CACHE_HOME/vim/viminfo
set rtp=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME set rtp=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after,$VIM,$VIMRUNTIME
let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc"
" ctags data " Ctags data
set tags=$XDG_CACHE_HOME/vim/tags set tags=$XDG_CACHE_HOME/vim/tags
" keep history " Keep history
set undodir=$XDG_CACHE_HOME/vim/undo set undodir=$XDG_CACHE_HOME/vim/undo
set undofile set undofile
@ -21,9 +21,6 @@ set undofile
"" Options "" Options
"" ""
set spell spelllang=it " Spell checking...
set nospell " ...only when needed
set nocompatible " Disable vi compatibility set nocompatible " Disable vi compatibility
set backspace=2 " Fix DEL in the terminal set backspace=2 " Fix DEL in the terminal
set hidden " Hide buffers set hidden " Hide buffers
@ -60,12 +57,13 @@ set noexpandtab "
set number " Line numbering set number " Line numbering
set autoindent " Indentation set autoindent " Indentation
syntax on " Enable syntax highlighting
set smartindent " set smartindent "
set noshowmode " 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%) set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:p:h\")})%)%(\ %a%)
@ -79,10 +77,7 @@ map <C-j> <C-w><Down>
map <C-l> <C-w><Right> map <C-l> <C-w><Right>
map <C-h> <C-w><Left> map <C-h> <C-w><Left>
map <F3> :call ToggleSpell()<CR> map <C-t> :TagbarToggle<CR>
map <F5> :NERDTreeTabsToggle<CR>
map <F6> :TagbarToggle<CR>
map <D-e> :q!<CR>
"" ""
@ -94,9 +89,10 @@ call vundle#begin('$XDG_CACHE_HOME/vim/plugins')
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
Plugin 'kien/ctrlp.vim' Plugin 'kien/ctrlp.vim'
Plugin 'itchyny/lightline.vim'
Plugin 'townk/vim-autoclose' Plugin 'townk/vim-autoclose'
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
Plugin 'itchyny/lightline.vim' Plugin 'travitch/hasksyn'
Plugin 'tpope/vim-markdown' Plugin 'tpope/vim-markdown'
Plugin 'ervandew/supertab' Plugin 'ervandew/supertab'
Plugin 'majutsushi/tagbar' Plugin 'majutsushi/tagbar'
@ -113,26 +109,25 @@ call vundle#end()
source $XDG_CONFIG_HOME/vim/lightline.vim source $XDG_CONFIG_HOME/vim/lightline.vim
" Syntastic " Syntastic
let g:syntastic_check_on_open = 1 let g:syntastic_check_on_open = 1
let g:syntastic_enable_signs = 1 let g:syntastic_enable_signs = 1
let g:syntastic_python_checkers = ["flake8", "python"] let g:syntastic_python_checkers = ["flake8", "python"]
let g:syntastic_python_python_exe = 'python3' let g:syntastic_python_python_exe = 'python3'
" Tagbar " Tagbar
let g:tagbar_status_func = "TagbarStatusFunc" let g:tagbar_status_func = "TagbarStatusFunc"
let g:tagbar_compact = 1 let g:tagbar_compact = 1
let g:tagbar_iconchars = [">", ""] let g:tagbar_iconchars = [">", ""]
" MiniBufferExplorer " MiniBufferExplorer
let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1 let g:miniBufExplModSelTarget = 1
" CtrlP " 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_custom_ignore = {"dir": "\v[\/]\.(git|hg|svn|ve)$"}
let g:ctrlp_status_func = {"main": "CtrlPStatusMain", let g:ctrlp_status_func = {"main": "CtrlPStatusMain",
\"prog": "CtrlPStatusProg"} \"prog": "CtrlPStatusProg"}