Added Visual() and simplified VisualMaps().

This commit is contained in:
Israel Chauca Fuentes
2010-05-07 10:54:20 -05:00
parent e818c05e33
commit 29d42e0771
2 changed files with 60 additions and 30 deletions

View File

@@ -27,6 +27,9 @@ endif
let s:loaded_delimitMate = 1 " }}}
let delimitMate_version = '2.1_DEV'
"}}}
" Tools: {{{
function! s:Init() "{{{
let b:loaded_delimitMate = 1
@@ -142,9 +145,7 @@ function! s:Init() "{{{
call delimitMate#ExtraMappings()
endfunction "}}} Init()
"}}}
" Tools: {{{
function! s:TestMappingsDo() "{{{
if !exists("g:delimitMate_testing")
call delimitMate#TestMappings()
@@ -171,7 +172,6 @@ function! s:TestMappingsDo() "{{{
endif
endfunction "}}}
function! s:DelimitMateDo() "{{{
if exists("g:delimitMate_excluded_ft")
" Check if this file type is excluded:
@@ -189,8 +189,6 @@ function! s:DelimitMateDo() "{{{
let save_keymap = &keymap
set keymap=
set cpo&vim
let save_keymap = &keymap
set keymap=
call s:Init()
finally
let &cpo = save_cpo