From: Mart Lubbers Date: Tue, 3 Jun 2014 15:01:51 +0000 (+0200) Subject: added some things X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=aa35f56066d629546c8f4506091ffd02702d1ac7;p=dotfiles.git added some things --- diff --git a/.vim/bundle/nerdtree b/.vim/bundle/nerdtree new file mode 160000 index 0000000..b0bb781 --- /dev/null +++ b/.vim/bundle/nerdtree @@ -0,0 +1 @@ +Subproject commit b0bb781fc73ef40365e4c996a16f04368d64fc9d diff --git a/.vim/bundle/vim-colors-solarized b/.vim/bundle/vim-colors-solarized new file mode 160000 index 0000000..528a59f --- /dev/null +++ b/.vim/bundle/vim-colors-solarized @@ -0,0 +1 @@ +Subproject commit 528a59f26d12278698bb946f8fb82a63711eec21 diff --git a/.vim/bundle/zazen b/.vim/bundle/zazen new file mode 160000 index 0000000..5cd00e9 --- /dev/null +++ b/.vim/bundle/zazen @@ -0,0 +1 @@ +Subproject commit 5cd00e929df650d66abcb910602e5ebfa50c914a diff --git a/.vim/colors/256-grayvim.vim b/.vim/colors/256-grayvim.vim new file mode 100644 index 0000000..fc81da0 --- /dev/null +++ b/.vim/colors/256-grayvim.vim @@ -0,0 +1,46 @@ +" Vim color file +" Maintainer: Piotr Husiatyński + +set background=dark +set t_Co=256 +let g:colors_name="256-grayvim" + +let python_highlight_all = 1 +let c_gnu = 1 + + +hi Normal ctermfg=253 ctermbg=235 cterm=None +hi Cursor ctermfg=Red ctermbg=None cterm=None +hi SpecialKey ctermfg=87 ctermbg=None cterm=Bold +hi Directory ctermfg=76 ctermbg=None cterm=None +hi ErrorMsg ctermfg=124 ctermbg=White cterm=None +hi PreProc ctermfg=246 ctermbg=None cterm=Bold +hi Search ctermfg=160 ctermbg=232 cterm=Bold +hi Type ctermfg=75 ctermbg=None cterm=Bold +hi Statement ctermfg=75 ctermbg=None cterm=None +hi Comment ctermfg=244 ctermbg=None cterm=None +hi Identifier ctermfg=111 ctermbg=None cterm=Bold +hi DiffText ctermfg=88 ctermbg=250 cterm=None +hi Constant ctermfg=208 ctermbg=None cterm=None +hi Todo ctermfg=233 ctermbg=118 cterm=Bold +hi Error ctermfg=233 ctermbg=124 cterm=Bold +hi Special ctermfg=160 ctermbg=None cterm=Bold +hi Ignore ctermfg=220 ctermbg=None cterm=Bold +hi Underline ctermfg=244 ctermbg=None cterm=None + +hi FoldColumn ctermfg=247 ctermbg=None cterm=Bold +hi StatusLineNC ctermfg=247 ctermbg=234 cterm=None +hi StatusLine ctermfg=247 ctermbg=233 cterm=Bold +hi VertSplit ctermfg=247 ctermbg=234 cterm=Bold + +hi LineNr ctermfg=238 ctermbg=244 cterm=Bold +hi LineNr ctermfg=247 ctermbg=235 cterm=Bold +hi NonText ctermfg=87 ctermbg=None cterm=Bold + + +hi Pmenu ctermfg=White ctermbg=DarkGray cterm=None +hi PmenuSel ctermfg=None ctermbg=Gray cterm=Bold +hi PmenuSbar ctermfg=DarkGray ctermbg=DarkGray cterm=None +hi PmenuThumb ctermfg=Gray ctermbg=Gray cterm=None + +"vim: sw=4 diff --git a/.vim/colors/; b/.vim/colors/; new file mode 100644 index 0000000..576b1c9 --- /dev/null +++ b/.vim/colors/; @@ -0,0 +1,57 @@ +execute pathogen#infect() +filetype indent plugin on +syntax enable +set t_Co=256 +color 256-grayvim +hi Normal ctermbg=NONE + +set encoding=utf-8 +set history=1000 +set number +set ruler +set backspace=eol,start,indent +set whichwrap+=<,>,h,l +set incsearch +set noerrorbells +set novisualbell +set nobackup +set nowb +set noswapfile +set shiftwidth=2 +set tabstop=2 +set foldmethod=indent +set foldnestmax=2 +set nofoldenable +set cc=80 +set textwidth=79 +set list +set listchars=tab:.\ ,eol:¬,trail:_,precedes:<,extends:> + +" Source the vimrc while editing +autocmd! bufwritepost .vimrc source % + +" Tab Mappings +map l l +map h h +map j j +map k k + +" Search results stay in middle of screen +nnoremap n nzzzv +nnoremap N Nzzzv + +" Unmap the arrow keys!!! +for prefix in ['i', 'n', 'v'] + for key in ['', '', '', ''] + exe prefix . "noremap " . key . " " + endfor +endfor + +" Load all the skeletons for newfiles +for i in split(globpath('~/.vim/skel/', './*'), '\n') + let extension = split(i, "/")[-1] + exe "au BufNewFile *." . extension . " 0r ~/.vim/skel/" . extension +endfor + +let mapleader="'" +map n :NERDTreeToggle diff --git a/.vimrc b/.vimrc index 5ab3044..62e1bac 100644 --- a/.vimrc +++ b/.vimrc @@ -1,8 +1,8 @@ execute pathogen#infect() filetype indent plugin on syntax enable -color torte -hi Normal ctermbg=NONE +set background=dark +colorscheme 256-grayvim set encoding=utf-8 set history=1000 @@ -23,8 +23,8 @@ set foldnestmax=2 set nofoldenable set cc=80 set textwidth=79 -" set list -"set listchars=tab:►\ ,eol:¬,trail:˽,precedes:˻,extends:˼ +set list +set listchars=tab:\ \ ,eol:¬,trail:_,precedes:<,extends:> " Source the vimrc while editing autocmd! bufwritepost .vimrc source % @@ -52,3 +52,5 @@ for i in split(globpath('~/.vim/skel/', './*'), '\n') exe "au BufNewFile *." . extension . " 0r ~/.vim/skel/" . extension endfor +let mapleader="'" +map n :NERDTreeToggle diff --git a/README.md b/README.md index 91acfcb..778f679 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ Yay dotfiles to share Also includes a script to install it:) notes: +- You need flake8 for the flake8 plugin https://pypi.python.org/pypi/flake8/ TODO: -* screen, irssi +* irssi