|start | find | index | login or register | edit|
by earl, 4957 days agoviktor 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 :)
4 active users
|earl.strain.at • esa3 • online for 6931 days • c'est un vanilla site|