views:

53

answers:

1

PEP 8 says:

Python accepts the control-L (i.e. ^L) form feed character as whitespace; Many tools treat these characters as page separators, so you may use them to separate pages of related sections of your file

This look like a great idea for me, but in the text editor I use(kate) "control+L" is for save all files. Someone have any solution?

... or I'm losing something here?

+1  A: 

Ctrl-L simply refers to the character with ASCII code 12 (form feed, new page). It is called Ctrl-L only because some editors allow you to enter it with Ctrl-L. (For instance, in vim, one can type Ctrl-Q Ctrl-L to enter that character, and it also appears as ^L). In Kate, Ctrl-L is a shortcut for saving all files, so you cannot type it that way and I'm not sure there is any way of entering that character easily.

Tamás
ctrl+Q ctrl+L work ok in emacs but don't work in vim
remosu
It works for me in `gvim` in insert mode (not in command mode, though). I don't know if this is because of some configuration option I lazily copied from someone else's `.vimrc`, or this is the default behaviour. Anyway, sorry for the confusion if it doesn't work for you.
Tamás
ups... I was trying this in vim command mode. In insert mode works OK. thanks for your answer.
remosu