Ben Bass avatar Ben Bass committed d58e35e

updates to dotfiles

Comments (0)

Files changed (5)

   popd > /dev/null
+# ttmux to be equivalent of screen -R
+alias ttmux="tmux a -d || tmux"
+username = Ben Bass <>
+ssh = ssh -C
+convert =
+hgsubversion =
+highlight =
+hgk =
+index-servers =
+    pypi
+username: bpb
+# adapted from
+# PYTHONSTARTUP should point to this file to improve your Python
+# interpreter experience...
+import atexit
+import os
+import readline
+import rlcompleter
+histfile = os.path.join(os.environ["HOME"], ".pyhist")
+    readline.read_history_file(histfile)
+except IOError:
+    pass
+readline.parse_and_bind('tab: complete')
+atexit.register(readline.write_history_file, histfile)
+del os, rlcompleter, readline, atexit, histfile
 cmap <esc>OF <end>
 set gfn=Monospace\ 8
-set t_Co=256
+"set t_Co=256
 set wildmode=longest,list,full
 set wildmenu
 set noswapfile
 set lines=40
 set columns=80
+:nnoremap <F5> :buffers<CR>:buffer<Space>
 set expandtab
 set tabstop=4
 set shiftwidth=4
+set colorcolumn=79
 :map <C-Up> :bn<Return>
 :map <C-Down> :bp<Return>
 filetype plugin indent on
 set statusline=%F%m%r%h%w\ [TYPE=%Y\ %{&ff}]\ [%l/%L\ (%p%%)]
 " various post-write hooks for quality checking
-au BufWritePost *.py !flake8 --ignore=E501 %
+au BufWritePost *.py !flake8 --ignore=E501 --max-complexity=10 %
 au BufWritePost *.js !jshint %
-" Pathogen load
-filetype off
+" immediately source .vimrc after writing it
+au! BufWritePost .vimrc source %
+" folding support
+set foldmethod=syntax
+set fdn=5
+inoremap <F9> <C-O>za
+nnoremap <F9> za
+onoremap <F9> <C-C>za
+vnoremap <F9> zf
+nnoremap <F10> zR
+nnoremap <F11> zM
 call pathogen#infect()
 call pathogen#helptags()
-filetype plugin indent on
-syntax on
+"solarized support
+" first disable CSApprox
+let g:CSApprox_loaded = 1
+set background=dark
+set t_Co=16
+let g:solarized_termcolors=16
+colorscheme solarized
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.