You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Added distinct highlighting for keywords vs values! (This is what made me start this plugin.) Added concealing of double quotes, for a minimalist CoffeeScript-inspired look (CSON!). Strings are colored differently than numbers & booleans. The disambiguating purpose of double quotes is thus achieved with colors for a cleaner look. This requires Vim 7.3+. To disable it add let g:vim_json_syntax_conc
Vim Advent Calendar 2012 ã® 220 æ¥ç®ã®è¨äºã§ãã æè¿ã® Vim Advent Calendar ã¯åä¾ãçã¾ãããçµå©ãããã§å¤§å¤ãã§ãããã¨ãç¶ãã¦ãã¾ãããè¯ããã¨ã§ããã¿ãªããã Vim Advent Calendar ã§å·çããã°å¾¡å©çãããããããã¾ããã? ããã¡ãªã¿ã«ç§ã¯ãã¤ãéãã§ããç¹ã«å¤ãã£ããã¨ã¯ããã¾ããã ãã¦ãä»åã¯ç§ã quickfix ã§è¡ã£ã¦ããè¨å®ãããã¤ãæãã¦ã¿ããã¨æãã¾ãã è¨å®æ¹æ³ quickfix ã¦ã£ã³ãã¦ã¯ filetype=qf ãè¨å®ããã¾ãããªã®ã§ãfiletype qf ã«å¯¾ãã ftplugin ãæ¸ãã°ããã§ããã¤ã¾ãã ~/.vim/after/ftplugin/qf.vimããã㯠~/vimfiles/after/ftplugin/qf.vimãã®è¾ºãã«è¨å®ãæ¸ãã¦ããã¾ãã p 㧠pr
èæ¯ æè¿ watchdogs.vim ã®ä¾¿å©ãå æ¸ãããã©ããããããªãã®ã§ãããvim-hier ãè¡ã«ãããã¤ã©ã¤ãããªãã®ã§ãé·ãè¡ã ã¨ã©ã®æ¡ã§ã¨ã©ã¼ãåºã¦ããã®ãããããããªãã¨ããåé¡ãããã¾ããã ã¨ãããã¨ã§ã¡ãã£ã¨æ¹é ãã QuickFix ãæã£ã¦ããæ å ±ã«ã¯ (ããã°) col ã¨ããååã§ã¨ã©ã¼ã®åå ã¨ãªã£ãæ¡çªå·ãåå¾åºæ¥ã¾ããã¨ãããã¨ã§ Vim ã®ãã¢ãç´ æ´ãããæ£è¦è¡¨ç¾ãé§ä½¿ãã¦ã¨ã©ã¼ã®ãã£ãæ¡ä»¥éããã¤ã©ã¤ãããããã«ãã¦ã¿ã¾ããã cohama/vim-hier 1è¡ãªã®ã«å¦çãã£ã·ããªé¢æ°åè¨èªãªããã§ã¯é常ã«æç¨ã§ããã æ®å¿µãªãã ãã«ããã¤ããªæåãããã¨ããã¾ãã
2. ï½ Lv.1ï¼ãã¸ã§ããã ãç¥ã£ã¨ãããªãã¨ããªã ⦠ã¢ã¼ãã«ã¤ã㦠⦠åºæ¬æä½ ï½ Lv.2 ï¼ããç¥ã£ã¦ãã¨ããã¡ãã£ã¨ãã·ã«ãªã ⦠置æ ⦠Vimgrep ⦠ç©å½¢é¸æ ⦠ã¤ã³ãã³ã ï½ Lv.3 ï¼ä½è£ãã£ããè¦ããããããã¡ããã㪠4. ï½ Vimã«ã¯4ã¤ã®ã¢ã¼ãããã ⦠Normalã¢ã¼ã ï åºæ¬ã«ãªãã¢ã¼ãããã¹ã¦ã¯ããããå§ã¾ãã ⦠Insertã¢ã¼ãï¼æ¿å ¥ã¢ã¼ãï¼ ï æåãå ¥åãã ⦠Visualã¢ã¼ãï¼é¸æã¢ã¼ãï¼ ï æåãé¸æãã ⦠Commandã¢ã¼ã ï 便å©ãªã³ãã³ãã使ã£ã¦ãã«ããã«ããã ããããåãæ¿ããæ¹æ³ãã¾ãè¦ãã 6. ï½ æ¿å ¥ã¢ã¼ã 1. ãã¼ãã«ã¢ã¼ããããiãã§æ¿å ¥ã¢ã¼ã㸠2. ãhogehogeãã¨å ¥åãã 3. ãEscãã§ãã¼ãã«ã¢ã¼ãã«æ»ã ï½ ãã¸ã¥ã¢ã«ã¢ã¼ã 1. ãã¼ãã«ã¢ã¼ããããvãã§ãã¸ã¥
æ¬è¨äºã¯ Vim Advent Calendar 2012 ã®ï¼ï¼ï¼æ¥ç®ã§ããï¼ï¼ï¼æ¥ç®ã¯ @supermomonga ããã® Vimã®ãã¼ãã·ã¼ãçæãµã¼ãã¹ä½ãã¾ãããæãæãã | ããªããããããã° ã§ããã ããã§ã¯ Vim ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ä¸ã®ãã¡ã¤ã«ãæ±ãéã«ä¾¿å©ãªãã©ã°ã¤ã³ vcscommand.vim ã¨ãã®å°ã便å©ãªä½¿ãæ¹ã«ã¤ãã¦ç´¹ä»ãã¾ãã vcscommand.vimã¨ã¯ ååã®éã Vim ãããã¼ã¸ã§ã³ç®¡çã·ã¹ãã ï¼Version Control Systemï¼VCSï¼ã«å¯¾ããæä½ãè¡ãããã®ãã©ã°ã¤ã³ã§ããç¹å®ã® VCS ãç®çã¨ãããã®ã§ã¯ãªããCVSãSubversionãSVKãGitãMercurialãBazaar ãªã©è¤æ°ã® VCS ãåãããã«æä½ã§ããã®ãç¹å¾´ã§ãã vcscommand.vim - CVS/SVN/SVK/git/h
ãã®è¨äºã¯Vim Advent Calendar 2012ã®187æ¥ç®ã®è¨äºã§ãã 186æ¥ç®ã¯ id:osyo-manga ããã«ãã Vim 㧠URLã®ã¿ã¤ãã«ããã«ã¼ã³ã§è¡¨ç¤ºãããã©ã°ã¤ã³ã¤ãã£ã - C++ã§ã²ã¼ã ããã°ã©ãã³ã° ã§ããã AdventCalendarååå ã§ãããããããããããã¾ãã ã¯ãªã¹ãã¹ãã¨ã¦ãå¾ ã¡é ããã§ããï¼ ã¯ããã« ãã®è¨äºã§ã¯ã次ã®2ã¤ã®è©±ãæ¸ãã¾ããã ä½ã£ããã©ã°ã¤ã³ãgitquick.vimãã®ç´¹ä» ãã©ã°ã¤ã³ãä½ãéç¨ã§ããããªãã£ããã¨ã¨ãã©ããè¦ã¦è§£æ±ºããã®ã gitquick.vim ã¨ãããã©ã°ã¤ã³ãã¤ãã£ã¦ã¿ã¾ãã https://github.com/violetyk/gitquick.vim ãã®ãã©ã°ã¤ã³ã¯ãGitãªãã¸ããªã®ä¸ã§ã®2ã¤ã®branchãtagéãæ¯è¼ãã¦ã 追å å¤æ´ããã£ããã¡ã¤ã«ã®ä¸è¦§ãVimã®Qui
ãããããããããä»ããã§ãããvimtutorãã£ã¦ã¿ã¾ããã ã¨ã¦ãããã¾ã¨ã¾ã£ã¦ãã¦ã³ã£ããããã åºæ¬çãªå 容ã ã£ããã©ãèªå·±æµã§ãã£ã¦ããããã æå¤ã¨ç¥ããªãã£ããã¨ããã£ãã®ã§ã¾ã¨ãã¦ã¿ã¾ãã ä»ã¾ã§ç¡é§ãªãã¨ãã¦ããªã¨å°ãåç(-_-;) % vimtutor ãªãã¬ã¼ã¿ã¨ã¢ã¼ã·ã§ã³ w - ã«ã¼ã½ã«ä½ç½®ãã空ç½ãå«ãåèªã®æ«å°¾ã¾ã§ã e - ã«ã¼ã½ã«ä½ç½®ãã空ç½ãå«ã¾ãªãåèªã®æ«å°¾ã¾ã§ã ã¢ã¼ã·ã§ã³ã«ã«ã¦ã³ãã使ç¨ãã 0ãã¿ã¤ããã¦è¡é ã«ç§»å ^ã§ãæ»ãã¾ãã0ã§ãæ»ããã¨ãããã¨ããã£ããå¿ãã¦ããï¼å¾®å¦ã«éãã®ã§å人çã«ã¯^ã好ãã§ãã å¤æ´ã³ãã³ã ãã¹ã¿ã¤ãããåèªã®éä¸ã§cwã¨ã¿ã¤ãããã¨ããã®åèªã®ã«ã¼ã½ã«ããå¾ãã®é¨åãæ¶ãã¦ã¤ã³ãµã¼ãã¢ã¼ãã«ãªãã cw ã¯åèªãå¤æ´ããã ãã§ãªããæ¿å ¥ãè¡ããç¹ã便å©ã ä½ç½®ã¨ãã¡ã¤ã«ã®æ å ± ãã¡ã¤ã«å ã§ã®ä½ç½®ã¨ãã¡ã¤
Vim Advent Calendar 2012 ã® 147 æ¥ç®ã®è¨äºã§ãã 137 æ¥ç®ã® tyru ããã®è¨äºã§ãVim ã® diff æ©è½ã«ã¤ãã¦ç´¹ä»ãããã¾ããããã®è¨äºã§ã¯ããå°ãç´°ãã diff ã®æ©è½ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã :diffthis æ¯è¼ããã対象ããã¡ã¤ã«ã§ã¯ãªãå ´åãä¾ãã°ãå¤é¨ãããã¼ã¿ãç¡åãããã¡ã«ã³ãã¼ãã¦ããå ´åã«ããããã®ãããã¡ã® diff ã表示ããããã¨ãããã¾ãããã®å ´åã¯ã:diffsplit ã¯ä½¿ãã¾ããã ããããå ´å㯠:diffthis ã使ãã¾ããdiff ãé©ç¨ããããããã¡ã§ãããã :diffthis ãããã¨ãå®è¡ãããããã¡å士ã®å·®åãè¦ããã¨ãã§ãã¾ãã ãããå©ç¨ããè¨å®ã«ãhelp ã§ç´¹ä»ããã¦ãã :DiffOrig ãããã¾ãã(:help :DiffOrig) ããã¯ç¾å¨ç·¨éä¸ã®ãã¡ã¤ã«ã¨ãæå¾ã«ä¿
趣å³ã®ããã°ã©ãã³ã°ãä»äºãgithubã使ã£ã¦è¡ãªã£ã¦ããã¨ããã¡ãã£ã¨ãããªãããã®å¤æ´ãã¦ã¿ããã ãã©ããã®commitè¦ã¦ããã¨ããããã®ãã©ã³ãã®ãã®ãã¡ã¤ã«ã¡ãã£ã¨è¦ã¦ãããªãï¼ãã¿ãããªãã¨ãããèµ·ããã¾ããããããæãã¡ãã¡githubä¸ã®ãã¼ã¸ãããããæ¼ãã¦ãURLãæããã¿ãããªãã¨ããã£ã¦ããã®ã大å¤ã ã£ãã®ã§ãã¿ã¼ããã«ããgithubä¸ã®ãã¼ã¸ãéãã³ãã³ããä½ã£ã¦ã¿ã¾ããããã§ã«ããããã®ããããããã¾ããã ä»åã®ã³ãã³ãã§åºæ¥ãã㨠commitãæå®ãã¦githubä¸ã®è©²å½commitãã¼ã¸ãéã HEAD^ã¿ãããªæå®ãåºæ¥ã ãã¡ã¤ã«åãæå®ãã¦ç¾å¨ã®ãã©ã³ãã®ãã®ãã¡ã¤ã«ã®ãã¼ã¸ãéã è¡ãæå®ãã¦ãã¤ã©ã¤ãããããã¨ãåºæ¥ã ãããã®ã³ãã³ããã¨ãã£ã¿ãªã©ãã使ããã¨ã§ããã«ä¾¿å©ã«ä½¿ã openã³ãã³ãã¨perlã«ä¾åãã¦ããã®ã§ããããã使ããª
1 def dump_args(func): 2 "This decorator dumps out the arguments passed to a function before calling it" 3 argnames = func.func_code.co_varnames[:func.func_code.co_argcount] 4 fname = func.func_name 5 def echo_func(*args,**kwargs): 6 print fname, ":", ', '.join( 7 '%s=%r' % entry 8 for entry in zip(argnames,args) + kwargs.items()) 9 return func(*args, **kwargs) 10 return echo_func 11 12 @dump_args
Geoffâs site: The Silver Searcher: Better than Ack ggreer/the_silver_searcher · GitHub ãã¿ã¼ã³æ¤ç´¢ã«ã¯ackãå©ç¨ãã¦ãã¦ãé常å©ç¨æã«ã¯ç¹ã«ä¸æºã¯ç¡ãã£ããã§ããã ãã¡ã¤ã«æ°ãå¤ããã£ã¬ã¯ããªã ã¨é ãã£ãã®ã§ããã£ã¨ä»ã®æ¹æ³ãç¡ããã¨èª¿ã¹ã¦ããã ackã®3ã5åéãã¨ããThe Silver Searcherã¨ãããã®ã ãã£ãã®ã§å°å ¥ã The Silver Searcherã®ç¹å¾´ å ¬å¼ã«æ¸ãã¦ããThe Silver Searcherã®ç¹å¾´ ackã®3ã5åé«é .gitignoreã.hgignoreã«è¨è¼ããã¦ãããã®ãæ¤ç´¢å¯¾è±¡ããé¤å¤ æ¤ç´¢å¯¾è±¡ããé¤å¤ããããã¡ã¤ã«ã¯.agignoreã«è¨è¼ agã¨ããã³ãã³ãåã§ãackã¨æ¯ã¹ã¦ã³ãã³ããçã(33%æ¸!) ãªãé«éãªã®ã㯠https
Vim Advent Calendar 2012 ã® 62 æ¥ç®ã®è¨äºã§ãã ç§ãæ¯æ¥ã®ããã«ãä¸è©±ã«ãªã£ã¦ãããã©ã°ã¤ã³ã®1ã¤ã«ãkana ããä½ã® submode.vim ã¨è¨ãã®ãããã¾ããçµæ§æãããããããªã便å©ãªã®ã«ãã¾ãç¥ããã¦ããªããããªæ°ããã¾ããããã¯ãã£ãããªãï¼ã¨è¨ããã¨ã§ä»åã¯ãã® submode.vim ã«ã¤ãã¦æ¸ããã¨æãã¾ãã submode.vim ã¨ã¯ https://github.com/kana/vim-submode submode.vim ã¯ãã¦ã¼ã¶ãèªç±ã«ãµãã¢ã¼ããå®ç¾©ã§ãããã©ã°ã¤ã³ã§ããâ¦ã¨è¨ã£ã¦ãä½ã®ãã¨ãããã£ã±ãã§ããã Vim ã«ã¯ãè¤æ°ã®ãã¼ãã¤ã¾ããã¼ã·ã¼ã±ã³ã¹ã«ãã£ã¦æç«ããã³ãã³ããããããããã¾ããä¾ãã° <C-w>+ ã¯ç¾å¨ã®ã¦ã£ã³ãã¦ã®é«ããå¤æ´ãã¾ããããã¦ããã®è¤æ°ã®ãã¼å ¥åãå¿ è¦ãªå²ã«ãé£ç¶ã§å ¥åãããã³ãã³ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}