Hi all! I'm trying to make recent.vim plguin working with vim-7.0 There is some kind of problem with mapping keys inside plugin:
function! OptionFiles() "let file = bufname("%") if bufname("")=="recent_files" map <Enter> gf set number set noswapfile else set nonumber set swapfile if hasmapto('gf') unmap gf endif endif endfunction command Recent edit ~/.vim/recent_files autocmd BufEnter * :call OptionFiles() I wonder why this function doesn't map Enter key to "gf" combination, when I start vim... There is succesfully created "recent_files" buffer... But keybinding doesn't work :( Can anybody help me with this question -- God bless you! Ilia 2.6.18-gentoo-r4 AMD Athlon(tm) XP 2600+ mailto: [EMAIL PROTECTED] icq: 198233378 VegaTrek Developer: http://wcuniverse.sourceforge.net/vegatrek/ VegaTrek Forum Moderator: http://vegastrike.sourceforge.net/forums/viewforum.php?f=13 ============================================================================ You know you're using the computer too much when: you are trying to fetch the cup of coffee on your desk with the mouse pointer. -- jwj ============================================================================ $gpg --keyserver cryptonomicon.mit.edu --search-keys tillias