add a comment to vimrc

This commit is contained in:
David Majnemer 2010-03-11 15:46:08 -06:00
parent e31f493bc5
commit 6fc60f70de

12
vimrc
View file

@ -281,13 +281,23 @@ endif
" just continue " just continue
nmap K K<cr> nmap K K<cr>
" stolen from auctex.vim
function! EmacsKill()
if col(".") == strlen(getline(line(".")))+1
let @" = "\<CR>"
return "\<Del>"
else
return "\<C-O>D"
endif
endfunction
" some emacs-isms are OK " some emacs-isms are OK
map! <C-a> <Home> map! <C-a> <Home>
map <C-a> <Home> map <C-a> <Home>
map! <C-e> <End> map! <C-e> <End>
map <C-e> <End> map <C-e> <End>
map <C-k> d$ map <C-k> d$
imap <C-k> <Esc><Right>Di<Right> inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR>
" Disable q and Q " Disable q and Q
map q <Nop> map q <Nop>