Permalink
Browse files

Change grouping for "() break"

  • Loading branch information...
1 parent dbb6205 commit 77b2fcff99649897fddd71c61b2815869b63fd77 @kana committed Mar 8, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 autoload/smartpunc.vim
View
@@ -77,6 +77,7 @@ function! smartpunc#define_default_rules() "{{{2
\ {'at': '(\%#)', 'char': '<BS>', 'input': '<BS><Del>'},
\ {'at': '()\%#', 'char': '<BS>', 'input': '<BS><BS>'},
\ {'at': '\\\%#', 'char': '(', 'input': '('},
+ \ {'at': '(\%#)', 'char': '<Enter>', 'input': '<Enter>X<Enter>)<BS><Up><C-o>$<BS>'},
\ ])
call urules.add('[]', [
\ {'at': '\%#', 'char': '[', 'input': '[]<Left>'},
@@ -121,10 +122,6 @@ function! smartpunc#define_default_rules() "{{{2
\ {'at': '\%#', 'char': '''', 'input': '''''<Left>',
\ 'syntax': ['Constant']},
\ ])
- " FIXME: Add more rules like '(<Enter>)'
- call urules.add('(<Enter>)', [
- \ {'at': '(\%#)', 'char': '<Enter>', 'input': '<Enter>X<Enter>)<BS><Up><C-o>$<BS>'},
- \ ])
"}}}
" ft_urule_sets_table... "{{{
@@ -137,7 +134,6 @@ function! smartpunc#define_default_rules() "{{{2
\ urules.table['""'],
\ urules.table['``'],
\ urules.table['English'],
- \ urules.table['(<Enter>)'],
\ ],
\ 'lisp': [
\ urules.table['Lisp quote'],

0 comments on commit 77b2fcf

Please sign in to comment.