diff options
author | Patrick Simianer <p@simianer.de> | 2016-02-12 14:51:09 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-02-12 14:51:09 +0100 |
commit | 39f029945ca1578c91b43b3deb5ddd076e5a7598 (patch) | |
tree | 177a8aad56fa0dd4b811c174eaea15df129d1e72 /vim | |
parent | 098ff5a14faf9542a62bfb07d50c06e689525137 (diff) |
using gnu stow for dotfiles now
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vim/autoload/airline/themes/pks256.vim | 45 | ||||
l--------- | vim/.vim/autoload/pathogen.vim | 1 | ||||
m--------- | vim/.vim/bundle/airline | 0 | ||||
m--------- | vim/.vim/bundle/closetag | 0 | ||||
m--------- | vim/.vim/bundle/endwise | 0 | ||||
m--------- | vim/.vim/bundle/nerdcommenter | 0 | ||||
m--------- | vim/.vim/bundle/pathogen | 0 | ||||
m--------- | vim/.vim/bundle/supertab | 0 | ||||
m--------- | vim/.vim/bundle/tagbar | 0 | ||||
m--------- | vim/.vim/bundle/vimwiki | 0 | ||||
-rw-r--r-- | vim/.vim/colors/pks256.vim | 54 | ||||
-rw-r--r-- | vim/.vimrc | 76 |
12 files changed, 176 insertions, 0 deletions
diff --git a/vim/.vim/autoload/airline/themes/pks256.vim b/vim/.vim/autoload/airline/themes/pks256.vim new file mode 100644 index 0000000..1edb680 --- /dev/null +++ b/vim/.vim/autoload/airline/themes/pks256.vim @@ -0,0 +1,45 @@ +let g:airline#themes#pks256#palette = {} + +let s:N1 = [ '#ffffff' , '#005fff' , 255 , 5 ] +let s:N2 = [ '#000087' , '#00dfff' , 255 , 8 ] +let s:N3 = [ '#005fff' , '#afffff' , 0 , 252 ] +let g:airline#themes#pks256#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) +let g:airline#themes#pks256#palette.normal_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } + + +let s:I1 = [ '#ffffff' , '#00875f' , 255 , 1 ] +let s:I2 = [ '#005f00' , '#00df87' , 255 , 8 ] +let s:I3 = [ '#005f5f' , '#afff87' , 0 , 252 ] +let g:airline#themes#pks256#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3) +let g:airline#themes#pks256#palette.insert_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } +let g:airline#themes#pks256#palette.insert_paste = { + \ 'airline_a': [ s:I1[0] , '#d78700' , s:I1[2] , 172 , '' ] , + \ } + + +let g:airline#themes#pks256#palette.replace = copy(g:airline#themes#pks256#palette.insert) +let g:airline#themes#pks256#palette.replace.airline_a = [ s:I2[0] , '#ff0000' , s:I1[2] , 196 , '' ] +let g:airline#themes#pks256#palette.replace_modified = g:airline#themes#pks256#palette.insert_modified + + +let s:V1 = [ '#ffffff' , '#ff5f00' , 255 , 2 ] +let s:V2 = [ '#5f0000' , '#ffaf00' , 255 , 8 ] +let s:V3 = [ '#df5f00' , '#ffff87' , 0 , 252 ] +let g:airline#themes#pks256#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3) +let g:airline#themes#pks256#palette.visual_modified = { + \ 'airline_c': [ '#df0000' , '#ffdfdf' , 160 , 224 , '' ] , + \ } + + +let s:IA1 = [ '#666666' , '#b2b2b2' , 242 , 249 , '' ] +let s:IA2 = [ '#8a8a8a' , '#d0d0d0' , 245 , 252 , '' ] +let s:IA3 = [ '#a8a8a8' , '#ffffff' , 248 , 255 , '' ] +let g:airline#themes#pks256#palette.inactive = airline#themes#generate_color_map(s:IA1, s:IA2, s:IA3) +let g:airline#themes#pks256#palette.inactive_modified = { + \ 'airline_c': [ '#df0000' , '' , 160 , '' , '' ] , + \ } + diff --git a/vim/.vim/autoload/pathogen.vim b/vim/.vim/autoload/pathogen.vim new file mode 120000 index 0000000..a202405 --- /dev/null +++ b/vim/.vim/autoload/pathogen.vim @@ -0,0 +1 @@ +../bundle/pathogen/autoload/pathogen.vim
\ No newline at end of file diff --git a/vim/.vim/bundle/airline b/vim/.vim/bundle/airline new file mode 160000 +Subproject f45ecdac15d99ed2354873a8b4d40432fd0a85a diff --git a/vim/.vim/bundle/closetag b/vim/.vim/bundle/closetag new file mode 160000 +Subproject 060109359b81b53dfad7206e23f86007d895996 diff --git a/vim/.vim/bundle/endwise b/vim/.vim/bundle/endwise new file mode 160000 +Subproject bba43b831ae0485cf9b86d16340a6a314b92739 diff --git a/vim/.vim/bundle/nerdcommenter b/vim/.vim/bundle/nerdcommenter new file mode 160000 +Subproject 6549cfde45339bd4f711504196ff3e8b766ef5e diff --git a/vim/.vim/bundle/pathogen b/vim/.vim/bundle/pathogen new file mode 160000 +Subproject b9fb0dfd811004010f5f6903edef42d6004ebea diff --git a/vim/.vim/bundle/supertab b/vim/.vim/bundle/supertab new file mode 160000 +Subproject c8bfeceb1fc92ad58f2ae6967cbfcd6fbcb0d6e diff --git a/vim/.vim/bundle/tagbar b/vim/.vim/bundle/tagbar new file mode 160000 +Subproject c6b473f5593a1cb9e567bb1a9a897f196f1f720 diff --git a/vim/.vim/bundle/vimwiki b/vim/.vim/bundle/vimwiki new file mode 160000 +Subproject 2c03d82a0e4662adf1e347487d73a9bf4bf6fda diff --git a/vim/.vim/colors/pks256.vim b/vim/.vim/colors/pks256.vim new file mode 100644 index 0000000..ad7a34d --- /dev/null +++ b/vim/.vim/colors/pks256.vim @@ -0,0 +1,54 @@ +" Vim color file: pks256.vim +" Last Change: 2014-08-30 +" +" Color numbers (0-255) see: +" http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html +" + +set background=light +hi clear +let g:colors_name = "pks256" + +highlight Normal cterm=none ctermfg=0 ctermbg=231 +highlight Special cterm=bold ctermfg=197 ctermbg=231 +highlight Comment cterm=bold ctermfg=201 ctermbg=231 +highlight Constant cterm=bold ctermfg=12 ctermbg=231 +highlight LineNr cterm=none ctermfg=242 ctermbg=159 +highlight Number cterm=none ctermfg=197 ctermbg=231 +highlight PreProc cterm=bold ctermfg=9 ctermbg=231 +highlight Statement cterm=bold ctermfg=197 ctermbg=231 +highlight Type cterm=bold ctermfg=12 ctermbg=231 +highlight Error cterm=bold ctermfg=231 ctermbg=9 +highlight Identifier cterm=none ctermfg=207 ctermbg=231 +highlight SpecialKey cterm=none ctermfg=48 ctermbg=231 +highlight NonText cterm=none ctermfg=164 ctermbg=231 +highlight Directory cterm=none ctermfg=12 ctermbg=231 +highlight ErrorMsg cterm=bold ctermfg=9 ctermbg=231 +highlight MoreMsg cterm=none ctermfg=10 ctermbg=231 +highlight Title cterm=none ctermfg=199 ctermbg=231 +highlight WarningMsg cterm=none ctermfg=9 ctermbg=231 +highlight DiffDelete cterm=none ctermfg=207 ctermbg=231 +highlight Search cterm=none ctermfg=15 ctermbg=231 +highlight Visual cterm=none ctermfg=16 ctermbg=50 +highlight Cursor cterm=none ctermfg=201 ctermbg=201 +highlight CursorLine cterm=none ctermfg=0 ctermbg=252 +highlight Question cterm=none ctermfg=16 ctermbg=226 +highlight Todo cterm=bold ctermfg=231 ctermbg=201 +highlight Folded cterm=none ctermfg=0 ctermbg=255 +highlight ModeMsg cterm=none ctermfg=16 ctermbg=46 +highlight VisualNOS cterm=none ctermfg=16 ctermbg=28 +highlight WildMenu cterm=none ctermfg=16 ctermbg=226 +highlight FoldColumn cterm=none ctermfg=15 ctermbg=58 +highlight SignColumn cterm=none ctermfg=16 ctermbg=28 +highlight DiffText cterm=none ctermfg=16 ctermbg=34 +highlight VertSplit cterm=none ctermfg=231 ctermbg=231 +highlight User1 cterm=none ctermbg=20 ctermfg=15 +highlight User2 cterm=none ctermbg=20 ctermfg=46 +highlight User3 cterm=none ctermbg=20 ctermfg=46 +highlight User4 cterm=none ctermbg=20 ctermfg=50 +highlight User5 cterm=none ctermbg=20 ctermfg=46 +highlight Pmenu cterm=none ctermbg=228 ctermfg=0 +highlight PmenuSel cterm=bold ctermbg=228 ctermfg=0 +"highlight StatusLine cterm=none ctermfg=0 ctermbg=231 +"highlight StatusLineNC cterm=none ctermfg=0 ctermbg=231 + diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..819e89d --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,76 @@ +" pathogen +execute pathogen#infect() + +" settings +set nocompatible +set nu +set noet +set showcmd +set autoindent +set smartindent +"set cursorline +set nocp +set showmatch +set foldmethod=indent +set completeopt=longest,menuone +set tabstop=2 +set shiftwidth=2 +set expandtab +set ruler +set ttyfast +set mouse=r +set bs=2 +set ignorecase +set smartcase +set laststatus=2 +set ttyfast +set lazyredraw +if v:version >= 703 + set cc=80 +endif +syntax on +filetype plugin indent on + +autocmd FileType cpp set complete-=i + +" spelling +setlocal spell spelllang=en_us +set nospell + +" color +if $TERM =~ "^rxvt" || $TERM =~ "256color$" + set t_Co=256 + colorscheme pks256 +else + colorscheme default +endif + +" bindings +nmap <C-t> :tabnew<cr> +nmap <C-a> :tabprevious<cr> +nmap <C-d> :tabnext<cr> +map <up> <nop> +map <down> <nop> +map <left> <nop> +map <right> <nop> +inoremap <C-s> <esc>:w<cr>a +nnoremap <C-s> :w<cr> +nmap <C-b> :TagbarToggle<cr> + +" cursorline +autocmd InsertEnter * setlocal cursorline +autocmd InsertLeave * setlocal nocursorline + +" airline +let g:airline_theme = 'pks256' +let g:airline_powerline_fonts = 1 +let g:airline#extensions#branch#enabled = 1 +let g:airline_symbols = {} +let g:airline_symbols.whitespace = 'Ξ' + +" tagbar +let g:tagbar_compact = 1 + +" vimwiki +let g:vimwiki_list = [{'path':'~/var/wiki'}] + |