summaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 18:36:13 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2014-05-28 18:36:13 +0200
commit4346e3449d7cd1765737e654871eaffaae427feb (patch)
tree68b5c86a6e3735f3a91b5fe60535a5613b3e134a /.vimrc
parentTypo in vimrc (diff)
downloadvim_sync-4346e3449d7cd1765737e654871eaffaae427feb.tar.xz
Typo in vimrc
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc14
1 files changed, 13 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index a2dd420..4a52a35 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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>