<service> <!-- ID of the service. It should be unique across the Windows system--> <id>frpc</id> <!-- Display name of the service --> <name>frpc</name> <!-- Service description --> <description>frpc</description> <!-- Path to the executable, which should be started --> <executable>C:\Programs\Frpc\frpc.exe</executable> <arguments>-c C:\Programs\Frpc\frpc.ini</arguments>
<onfailureaction="restart" />
</service>
AutohotKey: 配置快捷键
可用于配置快捷键,下面的脚本将 Ctrl + Alt + T 配置为启动Windows Terminal的快捷键。将写好的ahk脚本放到 C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup 中即可开机自启。
" setting " setting - basic set nocompatible set encoding=utf8 set showcmd set hls set relativenumber setnumber syntaxon " setting - tab & indent set tabstop=4 set softtabstop=0 setshiftwidth=4 set expandtab set autoindent set smartindent
" Make sure you are using single quotes Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'Yggdroot/LeaderF' Plug 'wakatime/vim-wakatime'
" >>> FOR COC >>> " TextEdit might fail if hidden is not set set hidden
" Some servers have issue with backup files, see #649 set nobackup set nowritebackup
" Give more space for display messages set cmdheight=2
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable" " delays and poor user experience set updatetime=300
" Don't pass messages to |ins-completion-menu| set shortmess+=c
" Always show the signcolumn, otherwise it would shift the text each time " diagnostics appear/become resolved. ifhas("patch-8.1.1564") " Recently vim can merge signcolumn and number column into one set signcolumn=number else set signcolumn=yes endif
" Use tab for trigger completion with characters ahead and navigate. " NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by " other plugin before putting this into your config. inoremap<silent><expr><TAB> \ pumvisible() ? "\<C-n>" : \ <SID>check_back_space() ? "\<TAB>" : \ coc#refresh() inoremap<expr><S-TAB>pumvisible() ? "\<C-p>" : "\<C-h>"
" Use <c-space> to trigger completion. ifhas('nvim') inoremap<silent><expr><c-space> coc#refresh() else inoremap<silent><expr> <c-@> coc#refresh() endif
" Use [g and ]g to navigate diagnostics " use :CocDiagnostics to get all diagnostics of current buffer in location list nmap<silent> [g <Plug>(coc-diagnostic-prev) nmap<silent> ]g <Plug>(coc-diagnostic-next)
augroup mygroup autocmd! " Setup formatexpr specified filetype(s). autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected') " Update signature help on jump placeholder. autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp') augroup end
" Applying codeAction to the selected region. " Example: `<leader>aap` for current paragraph xmap<leader>a<Plug>(coc-codeaction-selected) nmap<leader>a<Plug>(coc-codeaction-selected)
" Remap keys for applying codeAction to the current buffer. nmap<leader>ac <Plug>(coc-codeaction) " Apply AutoFix to problem on the current line. nmap<leader>qf <Plug>(coc-fix-current)
" Map function and class text objects " NOTE: Requires 'textDocument.documentSymbol' support from the language server. xmapif<Plug>(coc-funcobj-i) omapif<Plug>(coc-funcobj-i) xmap af <Plug>(coc-funcobj-a) omap af <Plug>(coc-funcobj-a) xmap ic <Plug>(coc-classobj-i) omap ic <Plug>(coc-classobj-i) xmap ac <Plug>(coc-classobj-a) omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups. " Note coc#float#scroll works on neovim >= 0.4.0 or vim >= 8.2.0750 nnoremap<nowait><expr><C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>" nnoremap<nowait><expr><C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>" inoremap<nowait><expr><C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>" inoremap<nowait><expr><C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
" NeoVim-only mapping for visual mode scroll " Useful on signatureHelp after jump placeholder of snippet expansion ifhas('nvim') vnoremap<nowait><expr><C-f> coc#float#has_scroll() ? coc#float#nvim_scroll(1, 1) : "\<C-f>" vnoremap<nowait><expr><C-b> coc#float#has_scroll() ? coc#float#nvim_scroll(0, 1) : "\<C-b>" endif
" Use CTRL-S for selections ranges. " Requires 'textDocument/selectionRange' support of language server. nmap<silent><C-s><Plug>(coc-range-select) xmap<silent><C-s><Plug>(coc-range-select)
" Add `:Format` command to format current buffer. command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer. command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer. command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')