Giter Site home page Giter Site logo

Comments (8)

jalvesaq avatar jalvesaq commented on June 26, 2024 4

The solution for the indentation issue is:

let g:cmdline_app = {"python": "ipython --no-autoindent"}

But I noted other issues:

  • ipython starts in a state similar to Vim's Normal mode, and I have to press either i or a to go to insert mode before sending lines from Neovim to ipython.
  • Neovim terminal does not auto scroll when lines are sent.

from vimcmdline.

jalvesaq avatar jalvesaq commented on June 26, 2024

Perhaps this is a problem with 'expandtab'. Did you set this option in your vimrc? Anyway, some people have reported incompatibility between vimcmdline and ipython.

from vimcmdline.

kprimice avatar kprimice commented on June 26, 2024

Yes, here are the options I use:

au BufNewFile,BufRead *.py \ set tabstop=4 | \ set softtabstop=4 | \ set shiftwidth=4 | \ set textwidth=79 | \ set expandtab | \ set autoindent | \ set fileformat=unix

I just checked: Indeed it is an ipython related bug.

from vimcmdline.

jalvesaq avatar jalvesaq commented on June 26, 2024

Thanks for the feedback. I am going to add a warning when cmdline_app["python"] value is "ipython".

from vimcmdline.

smilesun avatar smilesun commented on June 26, 2024

@jalvesaq , when I set this cmdline_app, I got

Error detected while processing function VimCmdLineStartApp[18]..VimCmdLineStart_Tmux:                                                    
line   23:                                                                                                                                
E121: Undefined variable: usage                                                                                                           
E15: Invalid expression: usage: split-window [-dhvP] [-c start-directory] [-F format] [-p percentage|-l size] [-t target-pane] [command]^@

from vimcmdline.

jalvesaq avatar jalvesaq commented on June 26, 2024

@kprimice is the author of #27

from vimcmdline.

smilesun avatar smilesun commented on June 26, 2024

well, even if I delete the definition of cmdline_app, there is no complain from vim side, but still, the indentation is wrong when I leader+space a python function

from vimcmdline.

smilesun avatar smilesun commented on June 26, 2024

I am using python-mode/pythonmode and vim-scripts/indentpython.vim

from vimcmdline.

Related Issues (20)

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.