From 39f029945ca1578c91b43b3deb5ddd076e5a7598 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 12 Feb 2016 14:51:09 +0100 Subject: using gnu stow for dotfiles now --- vim/.vim/autoload/airline/themes/pks256.vim | 45 +++++++++++++++++ vim/.vim/autoload/pathogen.vim | 1 + vim/.vim/bundle/airline | 1 + vim/.vim/bundle/closetag | 1 + vim/.vim/bundle/endwise | 1 + vim/.vim/bundle/nerdcommenter | 1 + vim/.vim/bundle/pathogen | 1 + vim/.vim/bundle/supertab | 1 + vim/.vim/bundle/tagbar | 1 + vim/.vim/bundle/vimwiki | 1 + vim/.vim/colors/pks256.vim | 54 ++++++++++++++++++++ vim/.vimrc | 76 +++++++++++++++++++++++++++++ 12 files changed, 184 insertions(+) create mode 100644 vim/.vim/autoload/airline/themes/pks256.vim create mode 120000 vim/.vim/autoload/pathogen.vim create mode 160000 vim/.vim/bundle/airline create mode 160000 vim/.vim/bundle/closetag create mode 160000 vim/.vim/bundle/endwise create mode 160000 vim/.vim/bundle/nerdcommenter create mode 160000 vim/.vim/bundle/pathogen create mode 160000 vim/.vim/bundle/supertab create mode 160000 vim/.vim/bundle/tagbar create mode 160000 vim/.vim/bundle/vimwiki create mode 100644 vim/.vim/colors/pks256.vim create mode 100644 vim/.vimrc (limited to 'vim') 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 index 0000000..f45ecda --- /dev/null +++ b/vim/.vim/bundle/airline @@ -0,0 +1 @@ +Subproject commit f45ecdac15d99ed2354873a8b4d40432fd0a85a3 diff --git a/vim/.vim/bundle/closetag b/vim/.vim/bundle/closetag new file mode 160000 index 0000000..0601093 --- /dev/null +++ b/vim/.vim/bundle/closetag @@ -0,0 +1 @@ +Subproject commit 060109359b81b53dfad7206e23f86007d895996f diff --git a/vim/.vim/bundle/endwise b/vim/.vim/bundle/endwise new file mode 160000 index 0000000..bba43b8 --- /dev/null +++ b/vim/.vim/bundle/endwise @@ -0,0 +1 @@ +Subproject commit bba43b831ae0485cf9b86d16340a6a314b927391 diff --git a/vim/.vim/bundle/nerdcommenter b/vim/.vim/bundle/nerdcommenter new file mode 160000 index 0000000..6549cfd --- /dev/null +++ b/vim/.vim/bundle/nerdcommenter @@ -0,0 +1 @@ +Subproject commit 6549cfde45339bd4f711504196ff3e8b766ef5e6 diff --git a/vim/.vim/bundle/pathogen b/vim/.vim/bundle/pathogen new file mode 160000 index 0000000..b9fb0df --- /dev/null +++ b/vim/.vim/bundle/pathogen @@ -0,0 +1 @@ +Subproject commit b9fb0dfd811004010f5f6903edef42d6004ebea2 diff --git a/vim/.vim/bundle/supertab b/vim/.vim/bundle/supertab new file mode 160000 index 0000000..c8bfece --- /dev/null +++ b/vim/.vim/bundle/supertab @@ -0,0 +1 @@ +Subproject commit c8bfeceb1fc92ad58f2ae6967cbfcd6fbcb0d6e7 diff --git a/vim/.vim/bundle/tagbar b/vim/.vim/bundle/tagbar new file mode 160000 index 0000000..c6b473f --- /dev/null +++ b/vim/.vim/bundle/tagbar @@ -0,0 +1 @@ +Subproject commit c6b473f5593a1cb9e567bb1a9a897f196f1f720a diff --git a/vim/.vim/bundle/vimwiki b/vim/.vim/bundle/vimwiki new file mode 160000 index 0000000..2c03d82 --- /dev/null +++ b/vim/.vim/bundle/vimwiki @@ -0,0 +1 @@ +Subproject commit 2c03d82a0e4662adf1e347487d73a9bf4bf6fdac 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 :tabnew +nmap :tabprevious +nmap :tabnext +map +map +map +map +inoremap :wa +nnoremap :w +nmap :TagbarToggle + +" 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'}] + -- cgit v1.2.3