Skip to content

Commit

Permalink
vim: make 65f do its own corrective steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jpalardy committed Jun 26, 2015
1 parent fc06965 commit 002c9d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion bin/65f
@@ -1,4 +1,4 @@
#!/bin/bash

babel --blacklist useStrict "$@"
babel --blacklist useStrict "$@" | sed -r -e 's/\{ +/{/g' -e 's/ +\}/}/g'

3 changes: 0 additions & 3 deletions vim/ftplugin/javascript.vim
Expand Up @@ -2,6 +2,3 @@
" require('x') --> var x = require('x') -- make var out of require
TabMacro '^require', "^wwyiw^ivar \<esc>pa = "

" { x: 42 } --> {x: 42} -- delete outer space inside { }
TabMacro '{', "^t}xT{x"

0 comments on commit 002c9d1

Please sign in to comment.