diff options
Diffstat (limited to '.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> |