Add basic color scheme
This commit is contained in:
parent
1176202dde
commit
737558e5a8
16
colors.vim
Normal file
16
colors.vim
Normal 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
|
25
vimrc
25
vimrc
@ -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'
|
||||||
@ -130,9 +126,8 @@ 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"}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user