<commit_before>let g:cache_home = empty($XDG_CACHE_HOME) ? expand('$HOME/.cache') : $XDG_CACHE_HOME
let g:config_home = empty($XDG_CONFIG_HOME) ? expand('$HOME/.config') : $XDG_CONFIG_HOME

let s:dein_cache_dir = g:cache_home . '/dein'

augroup MyAutoCmd
    autocmd!
augroup END

if &runtimepath !~# '/dein.vim'
    let s:dein_repo_dir = s:dein_cache_dir . '/repos/github.com/Shougo/dein.vim'

    if !isdirectory(s:dein_repo_dir)
        call system('git clone https://github.com/Shougo/dein.vim ' . shellescape(s:dein_repo_dir))
    endif

    execute 'set runtimepath^=' . s:dein_repo_dir
endif

let g:dein#install_max_processes = 16
let g:dein#install_progress_type = 'title'
let g:dein#install_message_type = 'none'
let g:dein#enable_notification = 1

if dein#load_state(s:dein_cache_dir)
    call dein#begin(s:dein_cache_dir)

    let s:toml_dir = g:config_home . '/dein'

    call dein#load_toml(s:toml_dir . '/plugins.toml', {'lazy': 0})
    call dein#load_toml(s:toml_dir . '/plugins_lazy.toml', {'lazy': 1})

    call dein#end()
    call dein#save_state()
endif

if has('vim_starting') && dein#check_install()
    call dein#install()
endif

filetype plugin indent on

let g:python3_host_prog = expand('$HOME/.pyenv/shims/python')

set autoindent
set clipboard+=unnamedplus
set encoding=utf-8
set expandtab
set hlsearch
set ignorecase
set number
set shiftwidth=4
set smartcase
set softtabstop=4
set tabstop=4

nnoremap <C-]> g<C-]>
<commit_msg>Add Note command to neovim<commit_after>let g:cache_home = empty($XDG_CACHE_HOME) ? expand('$HOME/.cache') : $XDG_CACHE_HOME
let g:config_home = empty($XDG_CONFIG_HOME) ? expand('$HOME/.config') : $XDG_CONFIG_HOME

let s:dein_cache_dir = g:cache_home . '/dein'

augroup MyAutoCmd
    autocmd!
augroup END

if &runtimepath !~# '/dein.vim'
    let s:dein_repo_dir = s:dein_cache_dir . '/repos/github.com/Shougo/dein.vim'

    if !isdirectory(s:dein_repo_dir)
        call system('git clone https://github.com/Shougo/dein.vim ' . shellescape(s:dein_repo_dir))
    endif

    execute 'set runtimepath^=' . s:dein_repo_dir
endif

let g:dein#install_max_processes = 16
let g:dein#install_progress_type = 'title'
let g:dein#install_message_type = 'none'
let g:dein#enable_notification = 1

if dein#load_state(s:dein_cache_dir)
    call dein#begin(s:dein_cache_dir)

    let s:toml_dir = g:config_home . '/dein'

    call dein#load_toml(s:toml_dir . '/plugins.toml', {'lazy': 0})
    call dein#load_toml(s:toml_dir . '/plugins_lazy.toml', {'lazy': 1})

    call dein#end()
    call dein#save_state()
endif

if has('vim_starting') && dein#check_install()
    call dein#install()
endif

filetype plugin indent on

let g:python3_host_prog = expand('$HOME/.pyenv/shims/python')

set autoindent
set clipboard+=unnamedplus
set encoding=utf-8
set expandtab
set hlsearch
set ignorecase
set number
set shiftwidth=4
set smartcase
set softtabstop=4
set tabstop=4

nnoremap <C-]> g<C-]>

" ref. http://vim-jp.org/vim-users-jp/2010/11/03/Hack-181.html
command! -nargs=0 Note call s:open_note()
function! s:open_note()
    let l:note_dir = '/tmp/notes'
    if !isdirectory(l:note_dir)
        call mkdir(l:note_dir, 'p')
    endif
    let l:filename = input('Filetype: ', l:note_dir.strftime('/%Y%m%d%H%M%S.'))
    if l:filename != ''
        execute 'edit ' . l:filename
    endif
endfunction
{'fraction_non_alphanumeric': 0.1368421052631579, 'fraction_numerical': 0.00962406015037594, 'mean_word_length': 4.608768971332209, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1273790', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1306, 'n_words': 257}