首页 > 其他分享 >ffmpeg Vim configuration

ffmpeg Vim configuration

时间:2024-11-10 11:32:39浏览次数:1  
标签:ffmpeg tabs Vim spaces highlight shiftwidth configuration ForbiddenWhitespace

In order to configure Vim to follow FFmpeg formatting conventions, paste the following snippet into your .vimrc:

" indentation rules for FFmpeg: 4 spaces, no tabs
set expandtab
set shiftwidth=4
set softtabstop=4
set cindent
set cinoptions=(0
" Allow tabs in Makefiles.
autocmd FileType make,automake set noexpandtab shiftwidth=8 softtabstop=8
" Trailing whitespace and tabs are forbidden, so highlight them.
highlight ForbiddenWhitespace ctermbg=red guibg=red
match ForbiddenWhitespace /\s\+$\|\t/
" Do not highlight spaces at the end of line while typing on that line.
autocmd InsertEnter * match ForbiddenWhitespace /\t\|\s\+\%#\@<!$/

https://www.octfgroup.com/

标签:ffmpeg,tabs,Vim,spaces,highlight,shiftwidth,configuration,ForbiddenWhitespace
From: https://www.cnblogs.com/sathcal/p/18537781

相关文章

  • ffmpeg Comments
    UsetheJavaDoc/Doxygenformat(seeexamplesbelow)sothatcodedocumentationcanbegeneratedautomatically.Allnontrivialfunctionsshouldhaveacommentabovethemexplainingwhatthefunctiondoes,evenifitisjustonesentence.Allstructuresand......
  • ffmpeg Naming conventions
    Namesoffunctions,variables,andstructmembersmustbelowercase,usingunderscores(_)toseparatewords.Forexample,‘avfilter_get_video_buffer’isanacceptablefunctionnameand‘AVFilterGetVideo’isnot.Struct,union,enum,andtypedeffedtypen......
  • ffmpeg Code behaviour
    CorrectnessThecodemustbevalid.Itmustnotcrash,abort,accessinvalidpointers,leakmemory,causedataracesorsignedintegeroverflow,orotherwisecauseundefinedbehaviour.Errorcodesshouldbecheckedand,whenapplicable,forwardedtotheca......
  • ffmpeg Patches/Committing
    LicensesforpatchesmustbecompatiblewithFFmpeg.ContributionsshouldbelicensedundertheLGPL2.1,includingan"oranylaterversion"clause,or,ifyoupreferagift-stylelicense,theISCorMITlicense.GPL2includingan"orany......
  • ffmpeg RFC call
    IntheRFCmode,onepersonfromtheTCpostsonthemailinglistthetechnicalquestionandwillrequestinputfromthecommunity.Themailwillhavethefollowingspecification:aprecisetitleaspecifictag[TCRFC]atop-levelemailcontainaprecise......
  • ffmpeg Decisions
    ThedecisionsfromtheTCwillbesentonthemailinglist,withthe[TC]tag.Internally,theTCshouldtakedecisionswithamajority,orusingranked-choicevoting.EachTCmembermustvoteonsuchdecisionaccordingtowhatis,intheirview,bestfor......
  • ffmpeg Community Committee
    TheCommunityCommittee(CC)isheretoarbitrageandmakedecisionswheninter-personalconflictsoccurintheproject.Itwilldecidequicklyandtakeactions,forthesakeoftheproject.TheCCcanremoveprivilegesofoffendingmembers,includingrem......
  • ffmpeg Code of Conduct
    Befriendlyandrespectfultowardsothersandthirdparties.Treatothersthewayyouyourselfwanttobetreated.Beconsiderate.Noteveryonesharesthesameviewpointandprioritiesasyoudo.Differentopinionsandinterpretationshelptheproject.Lo......
  • ffmpeg Introduction
    ThistextisconcernedwiththedevelopmentofFFmpegitself.InformationonusingtheFFmpeglibrariesinotherprogramscanbefoundelsewhere,e.g.in:theinstalledheaderfilestheDoxygendocumentationgeneratedfromtheheaderstheexamplesunderdoc......
  • ffmpeg Coding Rules SIMD/DSP
    AsmoderncompilersareunabletogenerateefficientSIMDorotherperformance-criticalDSPcodefromplainC,handwrittenassemblyisused.Usuallysuchcodeisisolatedinaseparatefunction.Thenthestandardapproachiswritingmultipleversionsoft......