Git Product home page Git Product logo

vim-textobj-heredocs's Introduction

Vim text objects for heredocs!

This is still pretty new, but I'm actively using it. PR's et al welcome :)

iH/aH for in/around selection.

vim-textobj-heredocs's People

Contributors

rsrchboy avatar

Stargazers

Cameron Ball avatar Burner avatar Ivan D Vasin avatar

Watchers

 avatar  avatar

vim-textobj-heredocs's Issues

[bug] cannot work

" $ uname -r
" 5.18.15-arch1-1
" $ has
" โœ” nvim 0.7.2
" $ cat test.vim
set runtimepath=$VIMRUNTIME
set runtimepath+=~/.local/share/nvim/repos/github.com/kana/vim-textobj-user
set runtimepath+=~/.local/share/nvim/repos/github.com/rsrchboy/vim-textobj-heredocs
" $ vi -u test.vim test.sh
#!/usr/bin/env bash
python << EOF
import sys
from time import strftime, gmtime
from contextlib import suppress
import pandas as pd
from tensorboard.backend.event_processing.event_file_loader import EventFileLoader

df = pd.DataFrame(columns={"Step": int, "Value": float})
df.index.name = "YYYY-mm-dd HH:MM"

for event in EventFileLoader("$1").Load():
    with suppress(IndexError):
        df.loc[strftime("%F %H:%M", gmtime(event.wall_time))] = [event.step, event.summary.value[0].tensor.float_val[0]]
df.to_csv(sys.stdout, "\t")
EOF

Press viH, nothing happen.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.