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

23
vimrc
View File

@ -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 <C-j> <C-w><Down>
map <C-l> <C-w><Right>
map <C-h> <C-w><Left>
map <F3> :call ToggleSpell()<CR>
map <F5> :NERDTreeTabsToggle<CR>
map <F6> :TagbarToggle<CR>
map <D-e> :q!<CR>
map <C-t> :TagbarToggle<CR>
""
@ -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'
@ -135,4 +131,3 @@ let g:ctrlp_custom_ignore = {"dir": "\v[\/]\.(git|hg|svn|ve)$"}
let g:ctrlp_status_func = {"main": "CtrlPStatusMain",
\"prog": "CtrlPStatusProg"}