diff options
author | doy <doy@tozt.net> | 2008-12-23 01:24:48 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2008-12-23 01:24:48 -0500 |
commit | a00e88a61907b35c0bb4cfe9ff0a887806074d3e (patch) | |
tree | 84d4b49decc465ae003a69ffd2d7ec07ef57b409 | |
parent | 5c8d305baf37fb1fb3b7935a482df6b94fb446c5 (diff) | |
download | vim-textobj-a00e88a61907b35c0bb4cfe9ff0a887806074d3e.tar.gz vim-textobj-a00e88a61907b35c0bb4cfe9ff0a887806074d3e.zip |
move the textobj definition calls into the vimrc, rather than just having config options
-rw-r--r-- | vim/plugin/textobj.vim | 11 | ||||
-rw-r--r-- | vimrc | 6 |
2 files changed, 3 insertions, 14 deletions
diff --git a/vim/plugin/textobj.vim b/vim/plugin/textobj.vim index fbf9a4a..a603443 100644 --- a/vim/plugin/textobj.vim +++ b/vim/plugin/textobj.vim @@ -231,14 +231,3 @@ function Textobj_arg(inner, count) endfunction " }}} " }}} -" Text object creation {{{ -if exists("g:Textobj_regex_enable") && g:Textobj_regex_enable - call Textobj('/', "<SID>textobj_regex") -endif -if exists("g:Textobj_fold_enable") && g:Textobj_fold_enable - call Textobj('f', "<SID>textobj_fold") -endif -if exists("g:Textobj_arg_enable") && g:Textobj_arg_enable - call Textobj(',', "<SID>textobj_arg") -endif -" }}} @@ -280,9 +280,9 @@ if file_readable(s:session_file) && expand("%:.") !~ '^/' endif " }}} " Textobj {{{ -let g:Textobj_regex_enable = 1 -let g:Textobj_fold_enable = 1 -let g:Textobj_arg_enable = 1 +call Textobj('/', "Textobj_paired", '/') +call Textobj('f', "Textobj_fold") +call Textobj(',', "Textobj_arg") " }}} " }}} |