fix vimrc for organizer
This commit is contained in:
parent
fb0a5c2d06
commit
daffcaef7a
1 changed files with 17 additions and 10 deletions
23
.vimrc
23
.vimrc
|
|
@ -9,13 +9,6 @@
|
||||||
" First, we are vim, not vi, so start as many others do with
|
" First, we are vim, not vi, so start as many others do with
|
||||||
set nocompatible
|
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.
|
" Allow background buffers. Super important for various tab modes.
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
|
|
@ -75,6 +68,8 @@ set t_Sb=ESC[4%dm
|
||||||
filetype off
|
filetype off
|
||||||
"call pathogen#runtime_append_all_bundles()
|
"call pathogen#runtime_append_all_bundles()
|
||||||
execute pathogen#infect()
|
execute pathogen#infect()
|
||||||
|
|
||||||
|
let g:ft_ignore_pat = '.org'
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
" If you prefer the Omni-Completion tip window to close when a selection is
|
" 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
|
" 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>")
|
"autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
|
||||||
|
|
||||||
" Set filetype for VimOrganizer
|
" Set filetype for VimOrganizer
|
||||||
|
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||||
|
"au BufEnter *.org call org#SetOrgFileType()
|
||||||
|
|
||||||
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
|
||||||
au BufEnter *.org call org#SetOrgFileType()
|
au BufEnter *.org call org#SetOrgFileType()
|
||||||
|
command! OrgCapture :call org#CaptureBuffer()
|
||||||
|
command! OrgCaptureFile :call org#OpenCaptureFile()
|
||||||
|
|
||||||
" Cull trailing whitespace for all files.
|
" Cull trailing whitespace for all files.
|
||||||
autocmd BufWritePre * :call AutoTrimWhitespace()
|
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
|
" 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
|
" 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.
|
" 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
|
" default Tag list. Will be changed in near future so
|
||||||
" that these are defined by config lines in each .org
|
" that these are defined by config lines in each .org
|
||||||
" file itself, but now these are where you can change things:
|
" 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
|
" 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)}'
|
"let g:org_tag_setup='{@home(h) @work(w) @tennisclub(t)} \n {easy(e) hard(d)} \n {computer(c) phone(p)}'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue