SpaceVimã試ã(Windows)
SpaceVIM
åé¡
- $HOME/vimfilesãä½æããã®ã§ãã試ãã§ãããã®ã«å ¨ã¦ã®ç°å¢ãSpaceVimã«ãªã
- æ å ±ãæ®ã©ãªã
åæ
- ä»åã¯Windowsã ãã対象ã«ãã¾ãã
- MACã§ã¯ãNVIMã¨VIM8/mac vimãããã§ãNVIMã ãSpaceVIMã«ãã¦ãã¾ãã
対å¦
- åæ
- kaoriyaãªã©è¤æ°VIMããã©ã«ãã§ç®¡çãã¦ãã
- $HOME/vimfilesãåé¤ãã
- $HOMEã¯C:\Users[user name]\
-
kaoriyaãããå¥ãã©ã«ãã«ä½æ(d:\vim_spaceã¨ãã)
- cmdã管çè
権éã§èµ·å
d:
cd d:\vimspace
mklink vimfiles $HOME\.SpaceVim
cp $HOME\.SpaceVim\vimrc d:\vim_space\_vimrc
- cmdã管çè
権éã§èµ·å
ã³ãã¼ãã¦ãã_vimrcnÂ¥ã®å é ã«è¿½å
"execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/vimfiles/config/main.vim'
_vimrcã®ç·¨é
- SpaceVIMã¨_vimrcã®è¨å®ãããªããã¶ãã®ã§ãã»ã¨ãã©åé¤
- ã¯ãªãããã¼ã渡ãã¯æã£ã¦ãã¦ãããã»ããè¯ãã
- æè§spacevim使ã£ã¦ããã®ã§ããã©ã°ã¤ã³ã¯å¾ã§ç§»æ¤
- Qfixhowmã®è¨å®ã ãã¯ãå ¨é¨åå©ç¨
- Uniteãªã©spacevimã§å©ç¨ãã¦ãããã®ã®è¨å®ã¯Keyã«æ°ãã¤ãã
gvimrcãæ½°ãã¦ãã
- spacevimã®è¨å®ãæ½°ãããã®ã§ãgvimrcããªãã¼ã ãã¦ãã
- colorschemã¨fontãæ¶ãã®ããã¾ããã
- æ§åãè¦ãªããæ»ãã¦ããäºå®
Deinã®PATHæå®
- [SPC ?]ãå¼ã³åºãã¨ãPython3ã®ãã¹ãæ±ããããã®ã§_vimrcã«è¿½å ï¼Denite or Unite)
è¨å®ãã¡ã¤ã«
- SpaceVIMã®è¨å®ã¯ã以ä¸ã«ãã
- C:\Users[User Name].SpaceVim.d\init.toml
SpaceVimã®è¨å®ã¾ãã
- neomakeã®ã¨ã©ã¼ã解決ã§ããªãã£ãã®ã§ã
- enable_neomake= 0
- è¡çªå·ãæ°æã¡æªã
- relativenumber= 0
- Leaderãsãªã®ãæ°æã¡æªã
- vimfilerãªã®ã§ãNerdTreeã«åãæ¿ãã
- optionsã«è¨è¼ããã¨ãåæã«ã¤ã³ã¹ãã¼ã«ããã¾ãã
[options]
filemanager = "nerdtree" - F3ã§NerdTreeãèµ·åããã°OK
- optionsã«è¨è¼ããã¨ãåæã«ã¤ã³ã¹ãã¼ã«ããã¾ãã
- fontè¨å®
- guifont = 'Myrica M:h12'
ColorScheme
- colorschemeã¯ãlayersã«æå®ããã¨ãåæã«è²ã æã£ã¦ãã¦ããã
- SpaceVimä¸ã§colorschemeãå¤æ´ããå ´å
- [SPC T n]:switch to next random colorscheme listed in colorscheme layer.
gitæä½ããªãã®ã§å ¥ãã
- fugitiveã¯æä½ã»ããã®ã§ãinit.tomlã«custom_pluginsãè¨è¼
[[custom_plugins]]
name = "tpope/vim-fugitive"
merged = 0
grepç³»
- rg/ag/pt/ack/grepããããããã©ã«ãã§ä½¿ãã
- SPC s [r/a/t/k/g]ã¨ãã§åãæ¿ãã
- rgã®å ´å
- SPC s r b:Bufferæ¤ç´¢
- SPC s r p:Directoryé ä¸æ¤ç´¢
Spaceããªã¬ã¼ãè¦ã¦ãé¢ç½ãããªãã®
- SPC ?:cmd help
- F2:Tagbar toggle
- F3:Filer toggle
- buffer
[1-9]:buffer移å - SPC b N [hjkln]:new buffer:q
- SPC b n:next
- SPC b d:kill
- SPC b p:previous
- SPC b C-d:kill Other Buffer
- SPC b h:Homeç»é¢
- SPC b R:åæç»
- ã«ã¼ã½ã«é
ä¸ãã¤ã©ã¤ãæ¤ç´¢
- SPC s h:ãã¤ã©ã¤ã
- n:next
- SPC s h:ãã¤ã©ã¤ã
- è¡æ«Spaceåé¤
- ,SPC
SpaceVimãåèã«èªåã®vimrcãæ¡å¼µãã
- SpaceVim使ã£ã¦ããã¨ãéå°ããããé ããªãï¼ã¨ã»ã»ã»æãã¦ãã
- SpaceVimãæç§æ¸ã«ãã¦ãèªåã®vimrcãæ¡å¼µããå ´å
- $HOME/.SpaceVim/autoload/SpaceVim/layersé ä¸
- ãããã
- edit.vim or operator.vim
- textobjæä½ç³»ãæã£ã¦ãã¾ãã
- fzf.vim
- FZFã®è¨å®å¨ããåèã«
- incsearch.vim
- haya14busaããã®ãã©ã°ã¤ã³å¨ããåã¯anzuã¨åããã¦ä½¿ã£ã¦ãã¾ãã
- ui.vim
- tagbarå¨ãã®ãã©ã°ã¤ã³
- SpaceVimã®ãªã¼ããã³ã°Bufferã¯
mhinz/vim-startify
- edit.vim or operator.vim
Log
- ä¸æããããªãã¨ãã¯:SPDebugInfo!
- è¨å®å¨ããªã©ãåºåãã¾ã
æªè§£æ±º(ç¶ç¶)
- æ¥æ¬èªå ¥åã®åè£ãã§ãã¨ãã«ãåæã«ç¢ºå®ãããã¨ããããã