summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 09:55:14 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 09:55:14 +0200
commit089b41ca5d485c717b62aca8551befc7da224552 (patch)
treeab3e28f967e01fba5bf8f0f301c31a071adf0f1d /.vimrc
parentList buffers with space (diff)
downloadvim_sync-089b41ca5d485c717b62aca8551befc7da224552.tar.xz
Use <cr> entity instead of keystroke <Enter> in vimrc
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc20
1 files changed, 10 insertions, 10 deletions
diff --git a/.vimrc b/.vimrc
index 14137ef..439cbb5 100644
--- a/.vimrc
+++ b/.vimrc
@@ -112,20 +112,20 @@ set <S-F3>=O1;2R
" key mapping
" ===========
imap <Home> <esc>I
-map <F2> :w<Enter>
-imap <F2> <esc>:w<Enter>a
+map <F2> :w<cr>
+imap <F2> <esc>:w<cr>a
map <F3> {gq}
imap <F3> <esc>{gq}a
map <S-F3> mmgggqG'm
imap <S-F3> <esc>mmgggqG'ma
-map <M-PageUp> :bp<Enter>
-imap <M-PageUp> <Esc>:bp<Enter>a
-map <M-PageDown> :bn<Enter>
-imap <M-PageDown> <Esc>:bn<Enter>a
-map <Space> :bn<Enter>
-map <S-Space> :bp<Enter>
-map <F12> :set textwidth=80<Enter>
-map <S-F12> :set textwidth=0<Enter>
+map <M-PageUp> :bp<cr>
+imap <M-PageUp> <Esc>:bp<cr>a
+map <M-PageDown> :bn<cr>
+imap <M-PageDown> <Esc>:bn<cr>a
+map <Space> :bn<cr>
+map <S-Space> :bp<cr>
+map <F12> :set textwidth=80<cr>
+map <S-F12> :set textwidth=0<cr>
"esc boost
inoremap kj <ESC>