While I am able to encode an mp4 file which I can play on my local windows machine, I am having trouble encoding files to mp4 which are readable when streaming by safari, etc.
After a bit of reading, I believe my issue is that I must move the metadata from the end of the file to the beginning in order for the converted mp4 files to be streamable.
To that end, I am trying to find out if the …
是否可以记录我在VIM中键入的所有命令以供以后分析?我的意思是每个简单的命令,如动作或改变文本,即jjjjjjkkkcw<newword>
如果在VIM中不可能,可能在linux上有一个键盘记录器,它可以附加到特定的窗口/进程?
我更喜欢in-vim日志记录,因为它可以选择为不同的vim模式提供不同的日志.另外,我不想记录"冒号"命令.
什么是最短的组合?
PS我通常这样做ACtrl+wCtrl+wCtrl+wEsc.
换句话说,我必须跳转到插入模式.
PPS d3b不起作用.
在VIM中是否有可能为ruby代码重复"执行并更新"#=>'标记'TextMate功能.
我希望有类似的东西:
x = 2
class A
def a
42
end
end
x # =>
A.new.a # =>
Run Code Online (Sandbox Code Playgroud)
输入一些命令......然后得到
x = 2
class A
def a
42
end
end
x # => 2
A.new.a # => 42
Run Code Online (Sandbox Code Playgroud)
以下是CiaránWalsh博客对此功能的描述:
绝对值得了解的另一个工具是"执行和更新"#=>'标记'命令(默认情况下在^ ^⌘E上).要使用它,请添加一些注释标记(#⇥上将为您插入这些标记的片段)到您希望查看结果的行的末尾,然后触发该命令.TextMate将运行您的代码并在注释中内联标记行的结果.此功能非常适合在线发布的代码,因为它一起显示了源和结果.
我正在尝试编写一个vim函数,它会折叠除当前行/块/方法之外的所有内容.
这是我已经写的:
set foldemethod=indent
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" FOCUS ON BLOCK OF CODE (fold everything else)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
function! FocusOnBock()
:normal! zM " close all folds
:normal! zozozozozozozozozo " I hope enough to open all nested folds :)
:normal! zz " center the current line
endfunction
:command! FocusOnBock :call FocusOnBock()
:map <leader>F :FocusOnBock<CR>
Run Code Online (Sandbox Code Playgroud)
在这里,我关闭所有折叠,然后打开多个折叠(通常存在于良好的代码中),然后我将当前行居中.顺便说一句,你可以看到它在行动 - http://ascii.io/a/1771
我不喜欢:norm! zozozozozozozozozo行.是否有命令在不移动光标的情况下打开当前行周围的所有折叠?