Commit f4bd106

mo khan <mo@mokhan.ca>
2014-05-30 20:26:33
look for closest let when extracting a let.
1 parent cc4d5a7
Changed files (1)
vimrc
@@ -153,7 +153,7 @@ function! ExtractLet()
   let cursor_position = getpos(".")
   normal 0
   normal! dd
-  exec "?^\\s*\\<\\(describe\\|context\\)\\>"
+  exec "?^\\s*\\<\\(describe\\|context\\|let\\)\\>"
   normal! $p
   exec 's/\v([a-z_][a-zA-Z0-9_]*) \= (.+)/let(:\1) { \2 }'
   normal V=