Created
December 21, 2012 20:31
-
-
Save rramsden/4355601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nnoremap <buffer> <localleader>s :rightbelow vsplit<CR>:execute 'normal! /^' . expand('<cword>') . "\<cr>"<cr>:nohlsearch<cr> |
FIXED: for some reason :execute doesn't like the single/double quote concatenation of strings.. will have to investigate further...
Here's the solution:
nnoremap s :rightbelow vsplit/^:nohlsearch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E114: Missing quote: "\
E15: Invalid expression: "normal! /^" . expand('') . "\