backup nixos config, nvim: add gitlink-vim

add also a script to copy the nixos config files to the repo
This commit is contained in:
arnaucube
2023-07-11 23:52:19 +02:00
parent 2e2a6ba78a
commit 471bc31a87
4 changed files with 31 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ Plug 'luochen1990/rainbow'
" git
Plug 'tpope/vim-fugitive'
" gitlink
Plug 'mazubieta/gitlink-vim'
" go
Plug 'fatih/vim-go' " Amazing combination of features.
@@ -227,6 +229,15 @@ syntax enable
" viewer method:
let g:vimtex_view_method = 'zathura'
"" gitlink
function! CopyGitLink(...) range
redir @+
silent echo gitlink#GitLink(get(a:, 1, 0))
redir END
endfunction
nmap <leader>gl :call CopyGitLink()<CR>
vmap <leader>gl :call CopyGitLink(1)<CR>
"" sage syntax
augroup filetypedetect
au! BufRead,BufNewFile *.sage,*.spyx,*.pyx setfiletype python