Neocomplete.vimã§pythonã³ã¼ãä½ææã«ãomniè£å®ãé©ç¨ãããããã«ããããªãã¨ã æã£åãæ©ãæ¹æ³ã¨ãã¦ã¯jedi.vimãç¨ããã¨ããæãããæ®æ®µã¯èªåãæç¨ãã¦ã¾ããã 諸äºæ ã«ããè¾æ¸ãã¡ã¤ã«ãä½æãããããåç §ãã¦è£å®ãããããã«ãã¾ããã è¾æ¸ä½ææ¹æ³ docs.python.jpã®ç´¢å¼ãã¼ã¸ãã¹ã¯ã¬ã¤ãã³ã°ãã æ²è¼ããã¦ããé ç®ï¼é¢æ°ãã¯ã©ã¹ãç¨èªï¼ãè¾æ¸ãã¡ã¤ã«é ç®ã¨ãã¾ããã è¨èªã¯Rubyãã¹ã¯ã¬ã¤ãã³ã°ã«ã¯Nokogiriã使ç¨ããè¥å¹²åæãªé¨åãå ¥ã£ã¦ã¾ãã è¾æ¸ä½æã³ã¼ã require 'nokogiri' require 'open-uri' require 'net/http' #ããã«ããã¤ãæåã®ãã§ãã¯ã¡ã½ãã追å class String def has_multibytes? self.bytes do |byte| ret
æ®æ®µneocomplcacheã使ã£ã¦ãã¾ãã æè¿Pythonãæ¸ãã¦ãã¦ç¥ã£ãã®ã§ãããè£å®æã«ãã¬ãã¥ã¼ã¦ã£ã³ãã¦ãéãã¾ãã ãããªç¶æ ãã . ãå ¥åãã¦è£å®ãå§ã¾ãã¨ãããªãã¾ãã ãã®ãã¬ãã¥ã¼ã¦ã£ã³ãã¦ã ãããé常ã«éªéèãã¦æ¶ãããã£ãã®ã§èª¿ã¹ã¾ããã completeoptã¨omnifunc ã¾ãneocomplcacheã¯é¢ä¿ããã¾ããã§ããã ããã¯Vimæ¨æºã®æ©è½ã§ã:help completeopt ã«æ¬¡ã®ããã«æ¸ããã¦ãã¾ãã å ¥åã¢ã¼ãã§ã®è£å®|ins-completion|ã«ã¤ãã¦ã®ãªãã·ã§ã³ã®ã³ã³ãåºåãã® ãªã¹ãããµãã¼ãããã¦ããå¤ã¯æ¬¡ã®éã: menu ãããã¢ããã¡ãã¥ã¼ã§è£å®åè£ã表示ããããããã¢ããã¡ã ã¥ã¼ã¯ãåè£ã2å以ä¸ãããååãªæ°ã®è²ã使ç¨ã§ããã¨ãã ã表示ãããã|ins-completion-menu|ãåç §ã menuo
windows10ã§vimã使ãããã«ãããã¨ã ç¹ã«ãé£ãããã¨ã¯ä½ããã¦ããªãã®ã§ãããåå¿é²ã vimã®ãã¦ã³ãã¼ã èªåã§ã¯ãã«ãã§ããªãã®ã§ãç°¡åã«å©ç¨ã§ãããé¦ãå±ãããã®vimãå©ç¨ããã¦ããã£ã¦ãã¾ãã ãã¡ããããã¦ã³ãã¼ããâã Vim â KaoriYa ãã1ã¤ããã¦ã³ãã¼ããã¦è§£åããã°ããã«Vimã使ããã¨ãåºæ¥ã¾ãã ãããã¨ããããã¾ãã ç°å¢å¤æ°ã«è¿½å 次ã«ã³ãã³ãããã³ããããã§ãåãããããã«ç°å¢å¤æ°ã追å ããã ã³ã³ããã¼ã«ããã« â ã·ã¹ãã â ã·ã¹ãã ã®è©³ç´°è¨å® â ç°å¢å¤æ° ãã¤ãå ´æãããããªããªãã®ã§ã»ã»ã»ã UTF-8å utf-8ã§ã¤ãã£ããããã®ãæååãããã®ã§ã KaoriyaçVimã®ãã©ã«ãå ã«ãã /switches/catalog/utf-8.vim ã /switches/enabled ã¸ã³ãã¼ ããã§ããã¾
Vimã§ã¨ãã£ããããã«ããããããã«ã¯ã©ã¼ãã§å²ã¾ããé¨åãã·ã³ã°ã«ã¯ã©ã¼ãã«ãããã¨ããå²ã¾ããé¨åã®å å´ãç½®æãããã¨ããããå æ¸ããã¹ããªãã¸ã§ã¯ãã使ãããªããããªã¨æã£ãã®ã§èª¿ã¹ã¤ã¤æ¶ãã¦ã¿ãã Vimã®ã³ãã³ãã¯ä½ããã®åèªã®é æåã§ããã±ã¼ã¹ãæ®ã©ãªã®ã§ãã³ãã³ãã®æå³ãçºãã¦ã¿ãã ããããããã¹ããªãã¸ã§ã¯ãã¨ã¯ ãªãã¸ã§ã¯ãåä½ã§é¸æ *object-select* *text-objects* *v_a* *v_i* 次ã®ãã®ã¯ãã¸ã¥ã¢ã«ã¢ã¼ãããªãã¬ã¼ã¿ã³ãã³ãã®å¾ã§ã®ã¿ä½¿ããã¨ãã§ããä¸é£ã® ã³ãã³ãã示ãã¦ãã¾ãã "a" ã§å§ã¾ãã³ãã³ã㯠"a" (1ã¤ã®) ã¾ã¨ã¾ãããã¯ã¤ãã¹ãã¼ã¹ãå«ãã¦é¸æãã¾ãã "i" ã§å§ã¾ãã³ãã³ãã¯ã¾ã¨ã¾ãã® "inner" (å é¨) ããã¯ã¤ãã¹ãã¼ã¹ãå«ã¾ãã«é¸æãããããããã¯ãã¯ã¤ãã¹ãã¼ã¹ã®ã¿ãé¸æãã¾ãã ã§ã
æ£ç¢ºã«è¨ãã¨ãã¤ã³ãµã¼ãã¢ã¼ãã§å ¥åããæå以å¤ã delete ã§æ¶ããªãã ã¨ãããã¨ã§ .vimrc ã«ä»¥ä¸è¨å®è¿½å ãããã§ããããã«ãªãã¾ãããã¤ãã§ã«ã«ã¼ã½ã«ã®ç§»åã«ã¤ãã¦ã便å©ãªè¨å®ãã£ãã®ã§è¿½å ãã¦ã¾ãã(ãªã³ã¯å ããå ¨ã³ãã§ãï¼ åèï¼vimã®ã¤ã³ãµã¼ãã¢ã¼ãä¸ã«ã«ã¼ã½ã«ãã¼åã³BSãã¼ã使ããããã«ãã | sseze's blog "viã¨ã®äºææ§ãç¡å¹ã«ãã(INSERTä¸ã«ã«ã¼ã½ã«ãã¼ãæå¹ã«ãªã) set nocompatible "ã«ã¼ã½ã«ãè¡é ï¼è¡æ«ã§æ¢ã¾ããªãããã«ãã set whichwrap=b,s,h,l,<,>,[,] "BSã§åé¤ã§ãããã®ãæå®ãã " indent : è¡é ã®ç©ºç½ " eol : æ¹è¡ " start : æ¿å ¥ã¢ã¼ãéå§ä½ç½®ããæåã®æå set backspace=indent,eol,start ãã¡ã便å©ã
ãã®è¨äºã¯ Vim Advent Calendar 2013 97æ¥ç®ã®è¨äºã«ãªãã¾ãã Twitter è¦ã¦ããã¨ãããã¹ããªãã¸ã§ã¯ããããããã¨ãããã¤ã¼ãããã¾ã«è¦ãããã®ã§èªåãç解ãã¦ããç¯å²ã§ç°¡åã«è§£èª¬ãã¦ã¿ããªã©ã ã¾ãããããè¨äºã¯å¤§éã«ããã¨æããã© ãããèªèº«ãå°ãåã¾ã§ã¯ãããã¹ããã¸ã§ã¯ããããããªããç¶æ ã ã£ããã§ãããã©ããããã®ãç解ãã¦ããã¯ããã¹ããªãã¸ã§ã¯ããä¸å¿ã¨ãªã£ã¦ Vim ãæä½ããããã«ãªãã¾ããã ä»ã®ã¨ãã£ã¿ã§ã¯è¦ãããªãçã®ããæ©è½ã ã¨æãã¾ãããVim ã使ç¨ãã¦ããã®ã§ããã°ããã¹ããªãã¸ã§ã¯ãã¨ãªãã¬ã¼ã¿ã®é¢ä¿ã¯è¦ãã¦ãããæ¹ãããã¨æãã¾ãã [ããã¹ããªãã¸ã§ã¯ãã¨ã¯] ããã¹ããªãã¸ã§ã¯ããä¸è¨ã§ããã¨ãä»»æã®ç¯å²ãã«ãªãã¾ãã ä¾ãã° normal ã¢ã¼ã㧠diw ãå ¥åããã¨ãã«ã¼ã½ã«ä¸ã®åèªããåé¤ãããyi( ã§ã
Ubuntu 16.04 LTSã使ã£ãå ´åã®ãã«ãæ¹æ³ã説æãã¾ãã å¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« Terminalã¢ããªãéãã以ä¸ãå®è¡ãã¾ãããã«ãã«å¿ è¦ãªããã±ã¼ã¸ãå ¨ã¦ã¤ã³ã¹ãã¼ã«ããã¾ããããã«ãè¨å®ã«ãã£ã¦ã¯ä¸è¦ãªããã±ã¼ã¸ã大éã«å«ã¾ãã¦ãã¾ããï¼è¡é ã®$ã¯ããã³ããã示ãã¦ãããå®éã«ã¯å ¥åä¸è¦ã§ããï¼ â»ããããE: You must put some 'source' URIs in your sources.list ã¨ããã¨ã©ã¼ã表示ãããå ´åã¯ã/etc/apt/sources.list ãç·¨éã㦠deb-src ã¨ã³ããªã¼ãæå¹åããå¿ è¦ãããã¾ãã build-dep ã³ãã³ãã使ããã«ãããã±ã¼ã¸ãåå¥ã«ã¤ã³ã¹ãã¼ã«ããã«ã¯ä»¥ä¸ãå®è¡ãã¾ãã
ç§ã¯éçºç°å¢ãæ´ããã®ã大好ããªã®ã§ãããä»ã¾ã§ãã¾ãçºä¿¡ããããã¨ããªãã£ãã®ã§ãã®è¨äºãæ¸ãã¾ããã å°ãã§ã Vim 㧠Ruby ãæ¸ãã®ãå¿«é©ã«ãªãã°å¹¸ãã§ãã ãªããç ½ãæ°å³ã®ã¿ã¤ãã«ã§ãããããã ãç§ã®ç¬æã¨åè¦ã§ä¾¿å©ã ã¨æã£ã¦ãããã®ã§ãã ç§ã¯ Ruby ã§ã¯ Rails ãã¡ã¤ã³ã«æ¸ãã¦ããã®ã§ãRailsãæ¸ãã¦ãã人ã«ã¯ç¹ã«ä¾¿å©ããç¥ãã¾ããã mikutter plugin ãæã æ¸ãã¾ãã ãã®è¨äºã§ã¯ãRuby ã«ç¹åãããã©ã°ã¤ã³/è¨å®ã®ç´¹ä»ããããã¨æãã¾ãã æ±ç¨çãªãã®ã«é¢ãã¦ã¯ãç°¡åãªèª¬æã¨ã¬ãã¸ããªã¸ã®ãªã³ã¯ã«çãã¾ãã ã¾ããã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ãNeoBundleã使ç¨ããæ¹æ³ãç´¹ä»ãã¾ãã ç§ãNeoBundleã使ç¨ãã¦ããã®ã§ã github.com neocomplete ç¨ Ruby è¾æ¸ github.com neocomplete
B! 13 0 0 0 Vimã® Neosnippet ã¨ãããã©ã°ã¤ã³ãå ¥ããã¾ã¾ã¾ã¨ãã«ä½¿ã£ã¦ãªãã£ãã®ã§ 使ããããã«ãã¦ã¿ããæã£ã以ä¸ã«ä¾¿å©ã ã£ãã®ã§ ã¡ããã¨ä½¿ã£ã¦ãããã¨æã£ãã®ã§ã¡ã¢ã Neosnippet ã¤ã³ã¹ãã¼ã«ãããã©ã°ã¤ã³ ã¹ããããã®æ§é Neosnippetã®è¨å® vim-octopress-snippets Neosnippet ãã¨ã㨠Neocomplcache ã¨ããè£å®å¼·åãã©ã°ã¤ã³ 1 ã使ã£ã¦ããæã«ãã¹ããããé¨åãåé¢ãã㦠ãªãã¨ãªãæ示éãã«å ¥ãã¦ãããã¨è¨ããã®ã ããã¾ã§ã¾ã¨ãã«ã¹ããããã使ãã¦ãªãã£ãã®ã§ ä»å使ãå§ããã«å½ãã£ã¦ã®ã¡ã¢ã§ãã ã¤ã³ã¹ãã¼ã«ãããã©ã°ã¤ã³ Shougo/neocomplete.vim: ã¹ããããã®è£å®ãå¿ é ã§ã¯ãªããããã¨å§åçã«ä¾¿å©ã if_luaã§ãªãVimãªå ´åã¯Shougo/neocom
å ¨è¬ :h[elp] keyword - ãkeywordãã®ãã«ããéã :sav[eas] file - ååãä»ãã¦ä¿å :clo[se] - ç¾å¨ã®ãã¤ã³ãéãã :ter[minal] - ã¿ã¼ããã«ã¦ã¤ã³ãã¦ãéã K - ã«ã¼ã½ã«ä¸ã®åèªã® man ãã¼ã¸ãéã ã«ã¼ã½ã«ç§»å h - å·¦ã«ç§»å j - ä¸ã«ç§»å k - ä¸ã«ç§»å l - å³ã«ç§»å gj - 表示è¡ã§1è¡ä¸ã«ç§»å gk - 表示è¡ã§1è¡ä¸ã«ç§»å H - ç»é¢ä¸é¨ã«ç§»å M - ç»é¢ä¸å¤®ã«ç§»å L - ç»é¢ä¸é¨ã«ç§»å w - 次ã®åèªã®å é ã«ç§»å W - 次ã®ï¼åºåãæåãå«ãï¼åèªã®å é ã«ç§»å e - 次ã®åèªã®æ«å°¾ã«ç§»å E - 次ã®ï¼åºåãæåãå«ãï¼åèªã®æ«å°¾ã«ç§»å b - åã®åèªã®å é ã«ç§»å B - åã®ï¼åºåãæåãå«ãï¼åèªã®å é ã«ç§»å ge - åã®åèªã®æ«å°¾ã«ç§»å gE - åã®ï¼åºåãæåã
Vimã§ã©ã®ãã¼ã«æ¢ã«ã·ã§ã¼ãã«ãããã¼ãå²ãå½ã¦ããã¦ãã¦ãã©ã®ãã¼ã空ãã¦ãã®ãããã©ããã£ã¦èª¿ã¹ããã ããã¨çåã«æã£ã¦ãã æ¨æ¥ã®è¨äºã§ããVimã«å²ãå½ã¦ããã¦ãã·ã§ã¼ãã«ãããã¼ã調ã¹ãæ¹æ³ã£ã¦ããã®ï¼ãã¨èãã¦ã¿ãã¨ãããunite.vimã®è¨å®ãåèã«ããã¦ããã£ãdelphinus35ããã«æãã¦ãããããã®ã§èªåã®åå¿é²ã¨ãåãçåãæã£ã¦ã人ãããããç¥ããªãã®ã§ã¨ã³ããªã¼åãã¦ããã ããã©ã«ãã§å²ãå½ã¦ããã¦ããã·ã§ã¼ãã«ãããã¼ Vimã®ããã©ã«ãã®ã·ã§ã¼ãã«ãããã¼å²ãå½ã¦ã調ã¹ãã«ã¯ã以ä¸ã®ããã¹ããhelpã³ãã³ãã§åç §ããã :help index.txt Vimã®ãã«ããæ¥æ¬èªåãã¦ããã°ãæ¥æ¬èªã§ä¸è¦§ã表示ãããããã¨ãã°ããã¼ãã«ã¢ã¼ãã§ã®ããã©ã«ãã®å²ãå½ã¦ã¯ä»¥ä¸ã®ãããªæãã |ã¿ã°|æå|注|ãã¼ãã«ã¢ã¼ãã§ã®åä½| |-|-|:-:|-|
Vim/GVimã®æ¥æ¬èªå ¥åãç·¨éã§ä¸çªåé¡ã«ãªãã®ã¯IME(IM)ã®ã¢ã¼ãåæ¿ã§ãã Windowsã§ã¯IMEã®å¶å¾¡ãè¡ãã¾ãããä»æ§çãªåé¡ã§å ¥åå 容ã«ãã£ã¦ã¯ä½è¨ãªã¢ã¼ãåæ¿ãé »ç¹ã«èµ·ããäºãããã¾ãããLinuxã«è³ã£ã¦ã¯ IMå¶å¾¡ã®æåã¯ã¾ã¡ã¾ã¡ã§ãåã OSä¸ã® Vim(éGUI)㨠GVimã§ããæåãç°ãªãããé常ã«æ··ä¹±ãããããªã£ã¦ãã¾ãã å人çã«ã¯ãã¼ãã«ã¢ã¼ãããæ¿å ¥ã¢ã¼ãã¸ç§»è¡ããæã«ãèªåå¶å¾¡ã§æ¥æ¬èªå ¥åããªã³ã«ããããªãã«ããããé¸æã§ããããã«ãããæ¥æ¬èªå ¥ååºå®ã¢ã¼ãããå°å ¥ããäºã§è§£æ±ºãã¾ããã ãæ¥æ¬èªå ¥ååºå®ã¢ã¼ããã使ç¨ãã㨠IME(IM)ã®èªåå¶å¾¡ã Vim(éGUI)㨠GVimã ãã§ãªã Windows㨠Linuxã®ããã« OSèªä½ãéãå ´åã§ãåãæåã«ãã¦æ±ãäºãã§ããã®ã§é常ã«ãããããããªãã¾ãã ã¾ãLinuxã§ã¯ä¸é¨ã® IMã«
ãã®è¨äºã¯Vim Advent Calendar 2013 : ATNDã®99æ¥ç®ã®è¨äºã§ãã ç»é¢åå²ã»ã¿ããã¼ã¸ã®ã¹ã¹ã¡ ã¿ãªãããåå²ãã¦ã¾ããï¼ ã¿ãªãããã¿ããã¼ã¸ä½¿ã£ã¦ã¾ããï¼ åã¯ã©ã¡ãã大好ãã§ãã ãµã³ãã«ãè¦ãªããåçµãã TODOãã¡ã¢ãè¦ãªããç·¨é é¢æ°ã®å®ç¾©å ãªã©ãè¦ãªããç·¨é ç·¨éç®çã«åããã¦ã¿ããåãã ãªã©ãªã©ã ãã®ãããªåã¯ãã³ã¼ããæ¸ãã¨ãã¯ã¬ã·ã¬ã·åå²ãããããªããã³ã¼ããæ¸ãã¦ãã¾ãã ãããã®æ©è½ã¯å½ç¶è¨å®ããã©ã°ã¤ã³ã®å°å ¥ãªã©ãããªãã¦ã使ãã¾ããèªåã¯sãã¼ãprefixã¨ãããã¼ãããã³ã°ããã¦ãã¾ãã å ã¯<C-w>ã®ä»£ããã«sã使ã£ã¦ããã ãã§ãããã¿ãã¦ã£ã³ãã¦é¢é£ããããã¡é¢é£ã«ã使ãããã«ãããã¨ã§ãæ ¼æ®µã«ä¾¿å©ã«ãªãã¾ãããèªåã®è¨å®ä¾ãåããã¦æ²è¼ããã®ã§ãè¯ããã°åèã«ãã¦ãã ããã å種æ©è½ã¨ãããã³ã° ã¦ã£ã³ãã¦ãåå²ã
ãã ã®ãèªå·±æºè¶³ä¹±ãæ¸ã ãµããä¸ã ã®æç« ã§ãè¦ã¦ãããã£ã¦äººã ãè¦ã¦ãããã°ãï½ å¯¾è±¡ã¯vimã¯ããããã¨ãã人ããä¸ç´è ããã vimã§htmlãã¡ã¤ã«ãç·¨éããã¨ãã«ç¥ã£ã¦ãã¨æ°æã¡è¯ããªããã³ãã³ã ã¨ãããæä½éè¦ãã¦ãããªãã¨ãã³ã¼ãã£ã³ã°æéã3å以ä¸ã«ãªãç³»ã®ã³ãã³ãã ã¢ã¯ã·ã§ã³ç¯å²ã¿ã¼ã²ããã®3ã¤ã®çµã¿åããã³ãã³ã ä¾)citã¨ã¿ã¤ã citã®cã¯ã¢ã¯ã·ã§ã³ãcã®å ´åã¯åé¤ãã¦æ¿å ¥ã¢ã¼ãã«å¤æ´ãä»ã®ã¢ã¯ã·ã§ã³ã«ç½®ãæããäºãå¯ãd(åé¤)v(é¸æ)ãªã©ã citã®iã¯ç¯å²ãiã¯ã¿ã°ã®ä¸èº«ãç¯å²ã§aã«ç½®ãæããã¨ã¿ã°å ¨ä½ãç¯å²ã«ãªããä¸è¨ã®å ´åã§aã«ããã¨<div></div>ãã¨æ¶ãã¦æ¿å ¥ã¢ã¼ãã«ãªãã citã®tã¯ã¿ã¼ã²ãããtã®å ´åã¯ã¿ã°ã«å¯¾ãã¦è¡ããä»ã«ã'ã"ã<>ã{}ã()ã¨è¨ã£ããããªä½ãã§æããã®ã«ä½¿ããã<>ã®ãããªå·¦å³ã§éãè¨å·ã¯ã©ã¡ããä¸æ¹ã§è¯ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}