dotfiles

My dotfiles for Arch Linux
git clone git://git.janispagel.de/dotfiles.git
Log | Files | Refs | README

commit f2862e2c1b4a78f3639ee489943f31a32c5fb6da
parent 11027e90fa00f2df15554ceb5bf1e60ba017e0ea
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Fri, 11 Dec 2020 21:37:27 +0100

Use fzf plugin for vim

Also add snippets

Diffstat:
Avim/.config/vim/snippets/bibtex/skel_proceedings.bib | 15+++++++++++++++
Avim/.config/vim/snippets/python/skel_header.py | 4++++
Avim/.config/vim/snippets/python/skel_main.py | 5+++++
Avim/.config/vim/snippets/python/skel_open.py | 2++
Mvim/.config/vim/vimrc | 3+++
5 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/vim/.config/vim/snippets/bibtex/skel_proceedings.bib b/vim/.config/vim/snippets/bibtex/skel_proceedings.bib @@ -0,0 +1,15 @@ +@PROCEEDINGS{, + address = {}, + doi = {}, + editor = {}, + isbn = {}, + month = {}, + number = {}, + organization = {}, + publisher = {}, + series = {}, + title = {}, + url = {}, + volume = {}, + year = {}, +} diff --git a/vim/.config/vim/snippets/python/skel_header.py b/vim/.config/vim/snippets/python/skel_header.py @@ -0,0 +1,4 @@ +#!/usr/bin/env python3 + +""" +""" diff --git a/vim/.config/vim/snippets/python/skel_main.py b/vim/.config/vim/snippets/python/skel_main.py @@ -0,0 +1,5 @@ +def main(): + + +if __name__ == "__main__": + main() diff --git a/vim/.config/vim/snippets/python/skel_open.py b/vim/.config/vim/snippets/python/skel_open.py @@ -0,0 +1,2 @@ +with open("", "r") as f: + pass diff --git a/vim/.config/vim/vimrc b/vim/.config/vim/vimrc @@ -22,6 +22,8 @@ Plug 'wincent/command-t', { \ 'do': 'cd ruby/command-t/ext/command-t && ruby extconf.rb && make' \ } Plug 'justinmk/vim-sneak' +Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } +Plug 'junegunn/fzf.vim' " Sorting Plug 'chiedo/vim-sort-blocks-by' @@ -135,6 +137,7 @@ nnoremap <Leader>mdblock :-1read $XDG_CONFIG_HOME/vim/snippets/markdown/skel_cod nnoremap <Leader>mdmeta :-1read $XDG_CONFIG_HOME/vim/snippets/markdown/skel_meta.md<CR>3j$"=strftime("%Y-%m-%d")<CR>Pgg01j$i " Bibtex nnoremap <Leader>bibbook :-1read $XDG_CONFIG_HOME/vim/snippets/bibtex/skel_book.bib<CR>f{a +nnoremap <Leader>bibpro :-1read $XDG_CONFIG_HOME/vim/snippets/bibtex/skel_proceedings.bib<CR>f{a nnoremap <Leader>bibinp :-1read $XDG_CONFIG_HOME/vim/snippets/bibtex/skel_inproceedings.bib<CR>f{a nnoremap <Leader>bibart :-1read $XDG_CONFIG_HOME/vim/snippets/bibtex/skel_article.bib<CR>f{a " }}}