Contents |
Best read tips
Edit
- Insert current directory name : print in the file the current Dir
- Toggle gvim window size : winaltkeys & Alt key problem; special behavior in Win32XP
- Search and replace: I/i: case sensitive/insensitive; \n vs \r is different stuff for searching and replacing; delimiters can be changed; register use (=@a)
- Word count#Counting occurrences of a pattern
- Vim buffer FAQ
- Converting tabs to spaces:
:retab(to change all the existing tab characters to match the current tab settings) - Unicode:
- Sort lines:
:sort n(numeric sort),:sort!(sort in reverse)
Still to be applied
Edit
- Power of g: :[range]g[lobal]/{pattern}/[cmd]
Python and Vim
Edit
- Compile a separate copy of Vim for Python coding: using Py instead of VimScript
Setting up Vim as Python IDE
Edit
- Evaluate current line using Python +
- Execute Python from within current file: do it or not? Preprocessing text!
- IPython integration: IPython has these Vi/Vim shortcuts: <C-W>, <C-H>; it's useful to edit ???.py in Vim, save it, and then
%run -t ???.pyin IPython. Main unsolved problems: IPython & IronPython integration (somewhere found that it's done, but no clear way to do it on Win32 [as always, for Unix'es/Linux'es it's straightforward...]) - Speed up Python coding : SuperTab!
- Python - check syntax and run script, a better solution is IPython integration with Vim (esp. for longer than 5-10 lines of Py)
- Outline editing of Python programs : Python folding; any Vim syntax scripts dedicated specifically for Py? Would be useful:
def,class, long loops, longif-(then)-else:folding.