From daffcaef7a9e153c6373a3003b0f42d0f9a64764 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Fri, 19 Apr 2013 16:13:18 -0400 Subject: [PATCH] fix vimrc for organizer --- .vimrc | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.vimrc b/.vimrc index 7e404e5..22fb184 100644 --- a/.vimrc +++ b/.vimrc @@ -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("") " 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)}'