ä¾ãã°ã次ã®ãããªãã¡ã¤ã«ããã£ãã¨ãã¾ãã 0, foo 0, bar 0, hoge 0, fuga ãã®æåã®æ°å(ãã®å ´åãªã0)ã«ã¤ãã¦ã代ããã«æé ã®æ°åãå²ããã¦ããã¨æã£ã¦ãã¾ããå ·ä½çã«è¨ããªãã°ã次ã®ãããªããã¹ãã«ãããã¨æã£ã¦ãã¾ã: 1, foo 2, bar 3, hoge 4, fuga ãããã«æä½æ¥ã§ã¡ã¾ã¡ã¾ç·¨éããã®ã¯ãã©ããéå¹çã«æãã¾ããããããæ¹æ³ãããã¾ããããæãã¦ãã ããã
æ®æ®µ Vim ã使ã£ã¦ãã¦ãã¤ãã¥ãããã®ãããã³ã°ä¾¿å©ã ãªããã¨æããã®ããç´¹ä»ãã¾ãã 空è¡ã»ã¹ãã¼ã¹å¦ç 1è¡ãã¨ã«ç©ºè¡ãå ¥ãã 空è¡ãã«ãããã è¡å ã®ã¹ãã¼ã¹ãã«ãããã å ¨è§è±æ°åãåè§ã«ãã Markdownè¨æ³ã®ãªã¹ãå æ¥æãããã«åºã ææ¥ãããã«åºã .vimrc ãããæä½ãã ä¸æçãªã´ãç®±ãã¡ã¤ã«ãããã«åºã ä»è¦ã¦ãããããã¡ãç¾å¨æå»ã®ãã¡ã¤ã«åã§ä¿åãã :w ç :f ç ç°¡åã«é£çªãæ¯ã 空è¡ã»ã¹ãã¼ã¹å¦ç 1è¡ãã¨ã«ç©ºè¡ãå ¥ãã ãã®ãããªè¨å®ã§ã â»ä»¥ä¸ãã<Leader>alããªã©ã®ãããã³ã°ã¯èª¬æç¨ã®ä¸ä¾ã§ãã nnoremap <Leader>al :%s/$/\r/gc<CR> vnoremap <Leader>al :s/$/\r/gc<CR> é¸æããã¨ãã®ç¯å²ã ããé¸æããªããã°ãããã¡å ¨ä½ã対象ã¨ãã¦ã1è¡ããã«ç©ºè¡ãå ¥ãã¦ããã¾ã
vim ã®æ¹è¡ã³ã¼ãã®è¡¨ç¤ºã¯ dos, unix, mac ã¨ãã«ãªã£ã¦ãã¦ããæå³ãåãããªããããã ã®ããã« CR+LF, LF, CR ã¨è¡¨ç¤ºããããã«å¤ãã¦ãã ãããåããã¦ä»ã®åã® .vimrc ã¯ãã®ããã«ãªã£ã¦ãã syntax on set number set hlsearch set showcmd set showmatch set shiftwidth=4 set smartcase set tabstop=4 set softtabstop=4 set expandtab set list set listchars=tab:»-,extends:»,precedes:«,nbsp:%,trail:- vnoremap y "+y set nowrap set scrolloff=999 highlight ZenkakuSpace ctermbg=white
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}