Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Change grouping for "() break"

  • Loading branch information...
commit 77b2fcff99649897fddd71c61b2815869b63fd77 1 parent dbb6205
@kana authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 autoload/smartpunc.vim
View
6 autoload/smartpunc.vim
@@ -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'],
Please sign in to comment.
Something went wrong with that request. Please try again.