4 ms·
Can someone link a vim setup for python, for comparison puposes, perhaps with a short feature comparison? I'm currently a vim user with a fairly basic setup
by lsiebert 14y ago
Can someone link a vim setup for python, for comparison puposes, perhaps with a short feature comparison? I'm currently a vim user with a fairly basic setup (I tried st 2 but couldn't figure it out for managing my work flow) , but I find the idea of emacs attractive.
- tomsthumb 14y agoConque shell can 'run a terminal' inside of vim, but it's a bit buggy. It's not really fair to compare vim and emacs, because vim is _just_ a text editor. Vim + screen or vim + tmux (my preference) is much closer to the same ... category of thing that emacs is. You can split tmux tabs so that you can have vim up in one pane on a 'tab' and python running in another pane in the same 'tab'. Both tmux and screen have decent copy/paste functionality that mimics vim's movement behaviour to some degree. (Tmux also has scriptable sessions, if you like different workflows for different types of projects) If you want a nice vim setup SPF-13 is a decent place to start. There are tmux configs everywhere. Also Ipython does a lot for you as far as completion, looking at documentation, and the like. I think that's kind of what you're after, sorry if it's not.
- chameco 14y agoTmuxinator especially makes doing the vim + tmux thing so much better because it has nice session support (just type "mux <name>" to bring up a session). I've been using it for about six months now, and my current setup can do anything an IDE can in a fraction of a time.
- mrgoldenbrown 14y agoWhat do you use for automatic refactoring? Are there good command line tools for renaming methods across an entire source tree for example?
- tomsthumb 14y agosed can do in place recursive changes for search patterns. if you use vim search and replace across a file it's pretty much the same.
- mrgoldenbrown 14y agoI was thinking of something more context aware than a simple find/replace. If you're changing MyClass.getFoo() to MyClass.getBar(), you only want to do that on instances of MyClass.
- lsiebert 14y agoIf there is a plugin for intelligent refactoring in vim, I have yet to see it. You can use tabdo or buffdo for multiple files, but the class/object parsing isn't there.
- CatMtKing 14y agoYou could run emacs with evil[1]. It's got a lot of the familiar keystrokes and modes. I would install it using el-get. [1] http://emacswiki.org/emacs/Evil http://emacswiki.org/emacs/Evil
- JulianWasTaken 14y agoMy vimrc is at https://github.com/Julian/dotfiles/blob/master/.vimrc https://github.com/Julian/dotfiles/blob/master/.vimrc but it isn't really divided up into Python specific stuff. (It's also a bit in flux as I migrate to tpope/vim-dispatch) I can try elaborating feature-wise when I get home.
- srathbun 14y agoI've got a vim setup hosted on github: https://github.com/srathbun/vim-plugins https://github.com/srathbun/vim-plugins It has Klen's python-mode plugin as a submodule: https://github.com/klen/python-mode https://github.com/klen/python-mode Python-mode provides awesome sause :) To get the repo, clone it recursively, or you won't have all the submodules. `git clone --recursive https://github.com/srathbun/vim-plugins.git https://github.com/srathbun/vim-plugins.git ~/.vim`