|start | find | index | login or register | edit|
Sonntag, 30. Juli 2006 link
viktor wanted a better behaviour for the home key in VIM. pressing home once should take you to the outermost indent level (i.e. right where the actual line content starts). pressing home once more shall take you to the absolute home (column 0). subsequently pressing home again should switch between those two positions.
viktor likes it, i like it, loads of other editors do it that way by default. so i figured others might find it useful as well:
map <silent> <HOME> :call <SID>SwitchingHomeKey()<CR>
just drop it into your vimrc. i can't be bothered to mess with vim's plugin system or vim.org's script repository at the moment :)
5 active users
|earl.strain.at • esa3 • online for 6965 days • c'est un vanilla site|