diff options
author | Robin Obůrka <r.oburka@gmail.com> | 2014-05-28 18:36:13 +0200 |
---|---|---|
committer | Robin Obůrka <r.oburka@gmail.com> | 2014-05-28 18:36:13 +0200 |
commit | 4346e3449d7cd1765737e654871eaffaae427feb (patch) | |
tree | 68b5c86a6e3735f3a91b5fe60535a5613b3e134a | |
parent | Typo in vimrc (diff) | |
download | vim_sync-4346e3449d7cd1765737e654871eaffaae427feb.tar.xz |
Typo in vimrc
-rw-r--r-- | .vimrc | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -73,7 +73,11 @@ set autowrite "operations like :q or :e will ask, not fail set confirm +"enable line breaks +set wrap + "break lines only in words +" WARNING: This setting is eliminated by :set list set linebreak "set nice chars for tabs and eols @@ -111,19 +115,27 @@ set <S-F3>=O1;2R " =========== " key mapping " =========== -imap <Home> <esc>I map <F2> :w<cr> imap <F2> <esc>:w<cr>a + +"reformat text map <F3> {gq} imap <F3> <esc>{gq}a map <S-F3> mmgggqG'm imap <S-F3> <esc>mmgggqG'ma + +"buffer manipulation 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> + +"user-friendly home +imap <Home> <esc>I + +"toggle button for text width map <F12> :set textwidth=80<cr> map <S-F12> :set textwidth=0<cr> |