endif
if (&term =~ "linux")
- set <BS>=\7f
+ execute 'set t_kb=' . nr2char(127)
else
highlight MoreMsg cterm=bold ctermfg=NONE
highlight Question cterm=bold ctermfg=NONE
endif
if (&term =~ "rxvt") || (&term =~ "screen") || (&term =~ "term") || (&term =~ "vt100")
- set <BS>=\7f
+ execute 'set t_kb=' . nr2char(127)
" 'autoselect' to always put selected text on the clipboard;
" 'unnamed' to use the * register like unnamed register '*'
" Restore last known cursor position
function! RestorePosition()
- if exists('b:position_resored')
+ if exists('b:position_restored')
return
endif
if line("'\"") > 0
call cursor(line("'\""), col("'\""))
endif
- let b:position_resored = 1
+ let b:position_restored = 1
endfunction
" When editing a file, always jump to the last cursor position (if saved)