mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
add a comment to vimrc
This commit is contained in:
parent
e31f493bc5
commit
6fc60f70de
1 changed files with 11 additions and 1 deletions
12
vimrc
12
vimrc
|
@ -281,13 +281,23 @@ endif
|
|||
" just continue
|
||||
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
|
||||
map! <C-a> <Home>
|
||||
map <C-a> <Home>
|
||||
map! <C-e> <End>
|
||||
map <C-e> <End>
|
||||
map <C-k> d$
|
||||
imap <C-k> <Esc><Right>Di<Right>
|
||||
inoremap <buffer> <C-K> <C-R>=EmacsKill()<CR>
|
||||
|
||||
" Disable q and Q
|
||||
map q <Nop>
|
||||
|
|
Loading…
Add table
Reference in a new issue