有没有人知道在vim正常命令模式下获取'f'键以操作不区分大小写的任何方法
例
function! OpenCurrentFileInMarked()
Run Code Online (Sandbox Code Playgroud)
在上面一行中,如果我在行的开头,我希望能够键入'fi'并获得第一个'i'然后';' 切换到函数名称中间的大写"I".我更希望'f'键总是绑定到不区分大小写.作为默认值,对我来说会更好.
我试图获得Vim插件YouCompleteme,直到我安装了Anaconda的Python发行版.
相关信息:
:Vim中的YcmDebugInfo返回'E858:Eval没有返回有效的Python对象.
在我的vimrc中,我有:
Bundle 'Valloric/YouCompleteMe'
let g:ycm_auto_trigger = 1
let g:ycm_path_to_python_interpreter = '/Users/briantoomey/anaconda/bin/python'
let g:ycm_filetype_blacklist = {}
Run Code Online (Sandbox Code Playgroud)
在github上讨论其他人的vimrc之后我也试过了
let g:ycm_path_to_python_interpreter = '/usr/bin/python'
let g:ycm_path_to_python_interpreter = '/usr/bin/python2'
Run Code Online (Sandbox Code Playgroud)
在vim中返回的错误都与之相关
youcompleteme#Enable
Run Code Online (Sandbox Code Playgroud)
在bash,
$ which python
Run Code Online (Sandbox Code Playgroud)
产量
$ /Users/briantoomey/anaconda/bin/python
Run Code Online (Sandbox Code Playgroud)
和$ python --version
产量
$ Python 2.7.6 :: Anaconda 1.9.0 (x86_64)
Run Code Online (Sandbox Code Playgroud)
有什么想法吗?
我正在尝试使用Stringr库从大而凌乱的文件中提取电子邮件。
str_match不允许perl = TRUE,而且我无法弄清楚转义字符以使其正常工作。
有人可以推荐一种相对健壮的正则表达式,该正则表达式可以在以下情况下使用吗?
c("larry@gmail.com", "larry-sally@sally.com", "larry@sally.larry.com")->emails
"SomeRegex"->regex
str_match(emails, regex)
Run Code Online (Sandbox Code Playgroud)