small fixes

git-svn-id: http://photonzero.com/dotfiles/trunk@114 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2011-10-17 23:15:40 +00:00
parent 02ad0c26b7
commit 8c1d4265bd

13
.vimrc
View file

@ -100,7 +100,7 @@ let g:ConqueTerm_SendVisKey = '<Leader>ss'
"nnoremap gp gT
nmap gt :NERDTreeToggle<CR>
nmap gT :TlistToggle<CR>
nnoremap gx :Kwbd<CR>
"nnoremap gx :Kwbd<CR>
nnoremap gc :bdelete<CR>
nnoremap gK :bdelete!<CR>
nnoremap gn :bn<CR>
@ -136,6 +136,7 @@ set statusline+=%r "read only flag
set statusline+=%y "filetype
set statusline+=\ %m "modified flag
set statusline+=%= "left/right separator
set statusline+=%{fugitive#statusline()}\ \
set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set statusline+=\ %P "percent through file
@ -159,7 +160,7 @@ let g:CommandTMaxDepth = 7
" This is a quick way to edit a persistent scratch buffer for me...
command ScratchOpen :e scp://barak@barakmich.com//home/barak/notes/scratch
" Sudo-make-me-a-sandwich write
command Wdammit :w !sudo tee %
command Wdammit :w !sudo tee > /dev/null %
" Doesn't quite work right but can be a real savior if needed
function! s:DiffWithSaved()
@ -348,3 +349,11 @@ autocmd BufWritePre * :call AutoTrimWhitespace()
nnoremap <silent> <Space> @=(foldlevel('.')?'za':'l')<CR>
vnoremap <Space> zf
inoremap jj <Esc>
" default Tag list. Will be changed in near future so
" that these are defined by config lines in each .org
" file itself, but now these are where you can change things:
let g:org_todo_setup='TODO | DONE'
" while g:org_tag_setup is itself a string
"let g:org_tag_setup='{@home(h) @work(w) @tennisclub(t)} \n {easy(e) hard(d)} \n {computer(c) phone(p)}'