Skip to content

Instantly share code, notes, and snippets.

@jiikko
Created December 11, 2013 04:47
Show Gist options
  • Save jiikko/7905203 to your computer and use it in GitHub Desktop.
Save jiikko/7905203 to your computer and use it in GitHub Desktop.
let tmp_text = ""
func! SayHoi()
" グローバルな変数をsplitして無関係な文字を返す
split(g:tmp_text, ".")
echo("ko")
return "koko"
endfunc
" 現在の行の.でsplitする
let texts = split(getline("."), ".")
" 行数を返す
let line = line(".")
" 列数かえす
let col = col(".")
" カーソルの位置を変更する
call cursor(line + 1, col)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment