Skip to content

Instantly share code, notes, and snippets.

View masaakif's full-sized avatar

fujiwara-masaaki masaakif

View GitHub Profile
@masaakif
masaakif / return_every_80chars.txt
Created January 28, 2013 11:24
Vimの正規表現で、80文字ごとに改行する
:%s/\(.\{80}\)/\1\r/g
@masaakif
masaakif / grep_menuitem.vim
Last active October 28, 2022 13:28 — forked from scrooloose/grep_menuitem.vim
nerdtree menu plugin to grep under selected directory. : Forked from http://gist.github.com/205807
"shove this in ~/.vim/nerdtree_plugin/grep_menuitem.vim
"
" Add 'g' menu items to grep under selected directory.
" 'g' : prompts the user to type search pattern under selected dir.
" use parent directory if file is selected.
" This uses ':grep'.
"
" For ripgrep user,
" NERDTreeRipGrepDirectory function is much, much faster.
" Requirements:
@masaakif
masaakif / mergeHtml.rb
Created September 28, 2010 11:28
Merge HTML files with images/css to one HTML file
require "fileutils"
def formatCode(line)
line2 = line + "<br/>"
len = line2.length
line3 = ""
len.times{|i|
c = line2[i].chr
if c == " " then
@masaakif
masaakif / add_youku_jinakin.user.js
Created March 30, 2009 05:27
add_youku_direct_link.user.js
// ==UserScript==
// @name Youku Add Direct Link
// @namespace http://gist.github.com/xxxxx
// @description Add direct links to movie files from Youku
// @include http://*.youku.com/*
// ==/UserScript==
// Version 200909??
var DEBUG=true;
@masaakif
masaakif / learning_how_to_install_archilinux.md
Last active June 11, 2018 21:44
Learning how to install ArchLinux

目標と手順

目標: 使っていないノートPCにArchLinuxを入れる。

手順: ArchWiki > インストールガイド

USBにISOを焼く

1. 日本のミラーサイトからISOをダウンロード。こちらがミラーサイト一覧

2. 適当なUSBフラッシュメモリにISOを焼く。手元にLinux機があったので以下で行った。

# dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress &amp;&amp; sync
@masaakif
masaakif / must-be-done-when-installing-neovim-to-windows.md
Last active April 13, 2018 09:30
Must be done when installing NeoVim to Windows. NeoVimをWindowsに入れるためにやるべきこと

Install NeoVim on somewhere.

  1. Download nvim-win64.zip from Installing Neovim · neovim/neovim Wiki.
  2. Unarchive the zip file to somewhere. I did under c:\apps\PortableApps\Neovim.
  3. Run Neovim\bin\nvim-qt.exe
  4. If you got below screen, first step is OK! NeoVim画像

Where is your vimrc?

I believe it should be under c:\Users(username)\AppData\Local\nvim\init.vim

@masaakif
masaakif / 2018-04-13 16_32_39-Neovim.png
Last active April 13, 2018 07:46
画像アップロード用
2018-04-13 16_32_39-Neovim.png
" vim:set ts=8 sts=2 sw=2 tw=0:
"
" Last Change: 18-Dec-2008.
" Maintainer: masaakif
" source $VIM/masaakif_rc
set guifont=MS_Gothic:h9:cSHIFTJIS
map "s :set guifont=BDF_M+:h7.5:cSHIFTJIS<CR>
@masaakif
masaakif / startproce55ing.vim
Last active February 27, 2018 16:13
Launch Processing from vim, give file opening in the current window to Processing.
"==============================================================================
"startproce55ing.vim : Launch Processing from vim, give file opening in the current window to Processing.
"==============================================================================
"$VIMRUNTIMEPATH/plugin/startproce55ing.vim
"==============================================================================
" Last Change:
" Written by: masaakif
"==============================================================================
" StartProce55ingでPDEファイルを起動する
"
@masaakif
masaakif / mygvim_rc
Last active February 27, 2018 16:11
自分用のvimrc追加コマンド
" vim:set ts=8 sts=2 sw=2 tw=0:
"
" Last Change: 05-Feb-2009.
" Maintainer: masaakif
" source $VIM/fujiwara_rc
set guifont=BDF_M+:h7.5:cSHIFTJIS
map "s :set guifont=BDF_M+:h7.5:cSHIFTJIS<CR>