nvim: add ftplugin files
This commit is contained in:
parent
8d0e65c40f
commit
4a69713c87
12
nvim/.local/share/nvim/data/site/ftplugin/PKGBUILD.vim
Normal file
12
nvim/.local/share/nvim/data/site/ftplugin/PKGBUILD.vim
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
" PKGBUILD-specific settings
|
||||||
|
" Update pkgsums on current file
|
||||||
|
map <C-c> <Esc>:! updpkgsums<CR>
|
||||||
|
|
||||||
|
" Rename all instances of "VCS" in file
|
||||||
|
"function ChangeVCS(vcs)
|
||||||
|
" :%s/VCS/a:vcs/g
|
||||||
|
" :%s/VCS_PACKAGE/a:vcs/g
|
||||||
|
"endfunction
|
||||||
|
|
||||||
|
|
||||||
|
" vim: ft=vim
|
1
nvim/.local/share/nvim/data/site/ftplugin/README.rst
Normal file
1
nvim/.local/share/nvim/data/site/ftplugin/README.rst
Normal file
@ -0,0 +1 @@
|
|||||||
|
See :help filename-modifiers for more info
|
8
nvim/.local/share/nvim/data/site/ftplugin/cpp.vim
Normal file
8
nvim/.local/share/nvim/data/site/ftplugin/cpp.vim
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
" C/CPP-specific settings
|
||||||
|
|
||||||
|
" Auto completion bindings
|
||||||
|
""inoremap ( (<Esc>A)<Esc>i
|
||||||
|
""inoremap [ [<Esc>A]<Esc>i
|
||||||
|
""inoremap { {<Esc>A<CR>}<Esc>ko
|
||||||
|
|
||||||
|
" vim: ft=vim
|
3
nvim/.local/share/nvim/data/site/ftplugin/markdown.vim
Normal file
3
nvim/.local/share/nvim/data/site/ftplugin/markdown.vim
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
" Markdown-specific settings
|
||||||
|
" Compile to pdf presentation
|
||||||
|
map <C-p> <esc>:! pandoc %:p -t beamer -o %:r.pdf<cr>
|
11
nvim/.local/share/nvim/data/site/ftplugin/python.vim
Normal file
11
nvim/.local/share/nvim/data/site/ftplugin/python.vim
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
" Python-specific settings
|
||||||
|
|
||||||
|
" Auto completion bindings
|
||||||
|
|
||||||
|
" Run linter
|
||||||
|
map <C-p> <Esc>:! flake8 %<CR>
|
||||||
|
|
||||||
|
" Run code formatter
|
||||||
|
map <M-L> <Esc>:! black %<CR>
|
||||||
|
|
||||||
|
" vim: ft=vim
|
3
nvim/.local/share/nvim/data/site/ftplugin/sh.vim
Normal file
3
nvim/.local/share/nvim/data/site/ftplugin/sh.vim
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
" sh-specific settings
|
||||||
|
" Run shellcheck
|
||||||
|
map <C-c> <Esc>:! shellcheck -x %<CR>
|
9
nvim/.local/share/nvim/data/site/ftplugin/spec.vim
Normal file
9
nvim/.local/share/nvim/data/site/ftplugin/spec.vim
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
" spec-specific settings
|
||||||
|
" Run rpmlint on the current fine
|
||||||
|
map <C-p> <Esc>:! rpmlint %<CR>
|
||||||
|
|
||||||
|
" Rename all instances of "VCS" in file
|
||||||
|
"function ChangeVCS(vcs)
|
||||||
|
" :%s/VCS/a:vcs/g
|
||||||
|
" :%s/VCS_PACKAGE/a:vcs/g
|
||||||
|
"endfunction
|
4
nvim/.local/share/nvim/data/site/ftplugin/tex.vim
Normal file
4
nvim/.local/share/nvim/data/site/ftplugin/tex.vim
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
" LaTeX specific settings
|
||||||
|
|
||||||
|
" Compile to pdf, use texfot to filter messages
|
||||||
|
map <C-p> <Esc>:! texfot pdflatex -output-directory=%:p:h %<CR>
|
Loading…
x
Reference in New Issue
Block a user