vim
çãã¦ã¾ããã ã¾ã ã¡ãã£ã¨æéãåããªãæããªã®ã§ã¾ã åé¡ã¯ãããã§ãã以åã¤ãã£ã¦ãããã©ã°ã¤ã³ã§ãå ¬éãã¦ãã¾ããããªã¼ã¨ã ã¨ããããã¨ã§ rcodetools ãå©ç¨ãã Ruby ã®ã³ã¼ãè£å®ãã©ã°ã¤ã³ãã¤ãã£ã¦ã¾ããã [ãã©ã°ã¤ã³] osyo-manga/viâ¦
ã£ã¦ã§ããªãã®ããªã¼ã¨æã£ãã webapi.vim ã«ãã§ã«ãã£ãã [ã½ã¼ã¹] let result = webapi#feed#parseURL("http://d.hatena.ne.jp/osyo-manga/rss") for item in result echo item.title endfor [åºå] [vim]unite-github ãéåæã«å¯¾å¿ããã [vim]watcâ¦
unite-github ãéåæã«å¯¾å¿ããã¦ã¿ã¾ããã 表示ããã¾ã§ Vim ããããã¯ããªããªãã¾ãã ä¸å ·åçãããã° Issues ã¾ã§ãé¡ããã¾ãã
ãããªè¦æããã£ãã®ã§è¿½å ãã¦ã¿ã¾ããã haskell ã§ä½¿ç¨ãããå ´åã¯æ¬¡ã®ããã«è¨å®ãã㨠hdevtools ã使ç¨ããã¾ãã let g:quickrun_config = { \ "haskell/watchdogs_checker" : { \ "type" : "watchdogs_checker/hdevtools", \ }, \}
ãã¦ã¿ã¾ããã 以å㯠unite-vimpatches ãèµ·åãã㨠Web ã¨éä¿¡ãè¡ããã Vim ããããã¯ããã¾ãããããã®é¨åãéåæã§å¦çããããã«ãã¦ã¿ã¾ããã åé¡ãããã° Issues çã§æãã¦ããããã¨å©ããã¾ãã
以åä½ã£ã unite-vimpatches ã§ããããã©ã¦ã¶ã§éãã®ã§ã¯ãªã㦠Vim ã§èªã¿ãããããªã¢ã¯ã·ã§ã³ã追å ãã¦ã¿ã¾ããã 次ã®ããã«è¨å®ããã° Vim ã§å 容ãéãããã«ãªãã¾ãã call unite#custom#default_action("source/vimpatches/*", "openbuf") ããâ¦
ãããªè©±ã Lingr ã® Vim é¨å±ã§åºã¦ããã®ã§ã " <C-r> 㧠unite-history/command ãèµ·å " é¸æããã¨ã³ãã³ãã©ã¤ã³ã«é¸æããã³ãã³ããæ¿å ¥ããã " unite.vim 㨠vim-unite-history ãå¿ è¦ cnoremap <C-r> :Unite history/command -start-insert -default-action</c-r></c-r>â¦
æ Lingr ã§è©±ãåºã¦ããã®ã§è¦æ¸ã let list = range(10) let list[3:6] = [-1, -2, -3, -4] echo list " => [0, 1, 2, -1, -2, -3, -4, 7, 8, 9] " :help E711 *E711* *E719* :let {var-name}[{idx1}:{idx2}] = {expr1} *E708* *E709* *E710* ãªã¹ã|List|â¦
ã¡ãã£ã¨ç·¨éãããã¡ã¤ã«ãæ¯å端æ«éãã¦ã³ãããããã®ãæéã ã£ãã®ã§é©å½ã«ã©ããã¼ã³ãã³ããå®ç¾©ãã¦ã¿ãã " Commit {ã³ãããã¡ãã»ã¼ã¸} command! -nargs=* Commit echo system("git commit " . expand("%:p") ." -m " . shellescape(<q-args>)) Commit {</q-args>â¦
æ¯åè¨å®ãã度ã«å¿ããã®ã§è¦æ¸ã æ¸ãããã¨ã«æ¸ãããã¨ããå¿ãããã ãã© ãã¦ãä¾ãã°ã次ã®ãããªã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããè¨å®ããã¨ãã¾ãã " aaa ã highlight Error ã§ãã¤ã©ã¤ã syntax match Error /aaa/ ä¸ã®è¨å®ãè¡ã㨠ãããªæãã«ãã¤ã©â¦
ãã¾ã«ããã人ããããããªã®ã§ç°¡åã«ã¾ã¨ãã¦ã¿ãã åè£é ãé ãã¼ã¯ããå¾ã«ä¸ã«ã«ã¼ã½ã«ã移åãã -auto-resize ã«ãªãï¼åè£ã®æ°ã«ãã£ã¦èªåçã«ã¦ã£ã³ãã¦ã®é«ããå¤ããï¼ ã¾ããä¸ã« split ãããå ´åã¯èªåçã«ããã³ãããä¸ã«æ¥ã¾ãã ããã³â¦
ãã®éã® Vimãã©ã°ã¤ã³èªæ¸ä¼ã§è©±ã«åºã¦ããã®ã§è¦æ¸ã ãã¦ãneosnippet.vim ã®ãã¼ã«ã¼ï¼ã«ã¼ã½ã«ã®ã¸ã£ã³ãå ï¼ã¯ syntax ã® conceal ã«ãã£ã¦å¶å¾¡ããã¦ãã¾ãã conceal ã使ç¨ãããã¨ã§ã¦ã¼ã¶å´ã表示ã»é表示ã®å¶å¾¡ã 'conceallevel' ã«ã¦è¡ããã¨â¦
ææããçªããã¦ããããã¨ç´ãã¦ã¾ããã 主ã«è¦ãç®çãªé¨åãã ä¿®æ£ç®æã¯ä»¥ä¸ã®éãã 表示形å¼ããªãã¹ãæ¨æºã® quickfix ã«è¿ã¥ãã ãã¤ã©ã¤ãã®æ¹è¯ w:quickfix_title ãåºå yank ã¢ã¯ã·ã§ã³ã®å¯¾å¿ï¼yy ã§åè£ã®ã¨ã©ã¼å 容ãã¤ã³ã¯ï¼ åé¡ãããâ¦
ããã® Slim çã [vimrc] " Html2Slim({slim}) " => {html} function! Html2Slim(html) if !executable("html2slim") return "" endif let input = tempname() call writefile(split(a:html, "\n"), input) let output = tempname() call system(printf("htâ¦
ãã¦ãhtml ãã¡ã¤ã«ãã slim ãã¡ã¤ã«ã¸å¤æãããå ´åãgem ã® html2slim ãå©ç¨ã§ãã¾ãã $ gem install html2slim $ html2slim input.html output.slim ãããªæãã§å¤æå ã® html ãã¡ã¤ã«ã¨å¤æå¾ã® slim ãã¡ã¤ã«ãæå®ãã¾ãã [Vim script ã§ããâ¦
window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parenâ¦
watchdogs.vim ã« flake8 ã®è¨å®ã追å ãã¾ããã ããã©ã«ãã§ã¯ pyflakes ã®æ¹ãåªå ãã¦ä½¿ç¨ããããã«ãªã£ã¦ããã®ã§ãpyflakes 㨠flake8 ã®ä¸¡æ¹ãå ¥ãã¦ããæ¹ã¯æ¬¡ã®ããã«è¨å®ãã¦ãã¦ããå¿ è¦ãããã¾ãã " filetype=python æã«ä½¿ç¨ãããã§ãã«ã¼â¦
ã¿ãããªã®ãæ issues ã«é£ãã§ããã®ã§ç°¡åã«èª¿ã¹ã¦ã¿ãã ã¨ããããã以ä¸ã®ããã«ã¯å¤å®ã§ããã½ãæãã let name = "file" echo index(keys(unite#variables#all_sources()), name) != -1 ã½ã¼ã¹ã³ã¼ãããç´æ¥æ¾ã£ã¦ããã ããªã®ã§ä»ã«ããã£ã½ãé¢â¦
以åãä»»æã®åºåãæåãå ¥åãã¦è¡çµåãè¡ã jplus.vim ã¨ãããã©ã°ã¤ã³ãä½ã£ãã®ã§ãããããã«è¡ç¶ç¶ã® \ ãåé¤ãã¦è¡çµåãè¡ãæ©è½ãå®è£ ãã¦ã¿ã¾ããã [ãã©ã°ã¤ã³] osyo-manga/vim-jplus - github NeoBundle "osyo-manga/vim-jplus" [使ãæ¹] "â¦
æ¨æ¥ãLingr ã® Vim é¨å±ã§åºã¦ãã¦ãã®ã§ãã Vim script ã®çµã¿è¾¼ã¿é¢æ°ã« complete() ã¨ããã®ãããã¾ãã :help complete() complete({startcol}, {matches}) *complete()* *E785* æ¿å ¥ã¢ã¼ãè£å®ã®åè£ãè¨å®ããã æ¿å ¥ã¢ã¼ãã§ã®ã¿ä½¿ç¨ã§ãããCTRL-â¦
ä¹ ãã¶ãã« Vim ã® complete-functions ãæ¸ãã¦ãããã§ãããç¥ããªãã£ãä»æ§ã«ã¯ã¾ã£ãã®ã§è¦æ¸ã ãã¦ãVim ã§ãªã¬ãªã¬ã³ã¼ãè£å®å¦çãè¡ãããå ´å㯠'completefunc' ã 'omnifunc' ãªã©ã®ãªãã·ã§ã³ã«ã³ã¼ãè£å®é¢æ°ãè¨å®ãã¦å®ç¾ãã¾ãã functionâ¦
brightest.vim ã«ãã¤ã©ã¤ãããªãåèªã®ãã¿ã¼ã³ãè¨å®ã§ããããã«ãã¾ããã [ãã©ã°ã¤ã³] osyo-manga/vim-brightest [使ãæ¹] " ã¢ã³ãã¼ãã¼ããå§ã¾ãåèªã¯ãã¤ã©ã¤ãããªã let g:brightest#ignore_word_pattern = '^_\k\+'
å æ¥å ¬éãã brightest.vim ã§ãããå ¬éå¾ã«è²ã ã¨æè¦ããã£ã¦ç¹å®ã®ã·ã³ã¿ãã¯ã¹ä¸ã ã¨ãã¤ã©ã¤ãããªãæ©è½ãå®è£ ãã¦ã¿ã¾ãããif ã¨ã for ã¨ãããããã·ã³ã¿ãã¯ã¹ã¯ãã¤ã©ã¤ãããããªãå ´åã«æå¹ã§ãã [ãã©ã°ã¤ã³] osyo-manga/vim-brightest [â¦
vimhelp 㧠":help string-functions" ãã¦ã¦é¢æ°ã«ã¿ã°ãªã³ã¯ããªãã®ãä¸ä¾¿ã ã£ãã®ã§è¿½å ãã¦ã¿ã¾ããã :help string-functions ããããããã©ã¼ãã³ã¹ãæ°ã«ãªãå§ãã¦ããã®ã§ä½ã¨ãããããªãã
ããã¼ãµã¿ãµã¿ããããããµã¿ãµã¿ã¬ãã£ãã±55æçªã£è¾¼ãã§éå®R2æããåºãªãã£ã é¢é£ï¼Vim ã§ã«ã¼ã½ã«ä¸ã®åèªã移åãããã³ã«ãã¤ã©ã¤ããã - C++ã§ã²ã¼ã ããã°ã©ãã³ã° 以åãä¸è¨ã®è¨äºã§æ¸ããã³ã¼ããªãã§ãããéè¦ããããããªã®ã§ãã©ã°ã¤ã³â¦
Fcitxã§VimããIMå¶å¾¡ãã â KaoriYa å ¥ãã¦ã¿ã¾ããã å ¬éããã¦ãã github ã®ãªãã¸ããªã¯ä¸è¬çãªãã©ã°ã¤ã³ã®ãã£ã¬ã¯ããªæ§æã¨ã¯éãã®ã§ãneobundle.vim ã§ç®¡çãããå ´åã¯æ¬¡ã®ããã«ãã¦è¨å®ããå¿ è¦ãããã¾ãã NeoBundle "koron/imcsc-vim", {â¦
試ããã¨æã£ã¦ãããã§ããããã®é vimrc ã§è©±é¡ã«ãªãã¾ã§ãã£ããå¿ãã¦ãã¾ããã ã¨ããããã¨ã§è©¦ãã¦ã¿ãã vim-hier ããã©ã¼ã¯ãã¦ã¿ã - åçã¯ãã¦ãå¾æã¯ããªã cohama/vim-hier cohama ç vim-hier ã ã¨åã®ä½ç½®ãèæ ®ãã¦ãã¤ã©ã¤ããè¡ã£ã¦â¦
ä»æ§ãå¤ãã£ããããã®ã§è¦æ¸ã ãã¦ã以åã§ããã° unite-file ã§ããããã¡ã¤ã«ã表示ããå ´åã¯ã call unite#custom_source("file", "ignore_pattern", "") ã¨ãã風㫠"ignore_pattern" ã«ç©ºã®æååãè¨å®ããã°ããã£ãã®ã§ããæè¿ä»æ§ãå¤ãã£ããâ¦
æè¿èªæ¸ä¼ã§èªãã vimrc ã§ãããããããªé¢æ°ãå®ç¾©ããã¦ãããã§ããããã«ã¹ã¯ã©ããã§ã¯ãªãã¦çµã¿è¾¼ã¿ã®é¢æ°ã§ããã£ã½ãã®ãæ¸ãã¦ã¿ãã command! RandomString \ echo sha256(reltimestr(reltime()))[:7] ç¾å¨ã®æå»ã§é©å½ã«ããã·ã¥å¤ãçæãã¦â¦
ãã¦ããã©ã°ã¤ã³ã§ vital.vim ã使ç¨ãããå ´å㯠:Vitalize ã³ãã³ãã使ç¨ãã¦ãã©ã°ã¤ã³å ã« vital.vim ãåãè¾¼ã¿ã¾ãã ããã«ãããã©ã°ã¤ã³å´ã§ vital.vim ã«ä¾åãããã¨ãªã vital.vim ã使ç¨ããäºãã§ããã®ã§ããå°ã注æãå¿ è¦ã§ãã ä¾ãã°ãâ¦