fix vimrc for organizer

This commit is contained in:
Barak Michener 2013-04-19 16:13:18 -04:00
parent fb0a5c2d06
commit daffcaef7a

27
.vimrc
View file

@ -9,13 +9,6 @@
" First, we are vim, not vi, so start as many others do with
set nocompatible
" Set syntax and highlighting
syntax on
" baraknew is my own colorscheme. I used to use slate or dante.
colorscheme baraknew
"colorscheme slate
"colorscheme dante
" Allow background buffers. Super important for various tab modes.
set hidden
@ -75,6 +68,8 @@ set t_Sb=ESC[4%dm
filetype off
"call pathogen#runtime_append_all_bundles()
execute pathogen#infect()
let g:ft_ignore_pat = '.org'
filetype plugin indent on
" If you prefer the Omni-Completion tip window to close when a selection is
" made, these lines close it on movement in insert mode or when leaving
@ -96,12 +91,24 @@ autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
"autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
" Set filetype for VimOrganizer
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
"au BufEnter *.org call org#SetOrgFileType()
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()
command! OrgCapture :call org#CaptureBuffer()
command! OrgCaptureFile :call org#OpenCaptureFile()
" Cull trailing whitespace for all files.
autocmd BufWritePre * :call AutoTrimWhitespace()
" Set syntax and highlighting
syntax on
" baraknew is my own colorscheme. I used to use slate or dante.
colorscheme baraknew
"colorscheme slate
"colorscheme dante
" Turn on the cursorline (highlight on line under cursor) but only for the
" window and buffer you're currently in. A handy trick, I'm trying out as of
" 2013-04-12 but the jury is still out.
@ -170,7 +177,7 @@ let g:CommandTMaxDepth = 7
" 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'
" 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)}'