Skip to content

Commit

Permalink
Automatically wrap left and right
Browse files Browse the repository at this point in the history
Allows to move the cursor to the previous/next line after reaching
first/last character in the line using the arrow keys in normal-,
insert- (<,>) and visual mode ([,]) or the h and l keys.

References:
:help whichwrap

GH-22
  • Loading branch information
arcticicestudio committed Aug 2, 2017
1 parent 7c1dc3c commit fb72bb8
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions snowblocks/vim/vimrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
" ++++++++++++++++++++++++++++++++++++++++++++++++++++++
" title Vim Configuration +
" project igloo +
" repository https://github.com/arcticicestudio/igloo +
" author Arctic Ice Studio +
" email [email protected] +
" copyright Copyright (C) 2017 +
" ++++++++++++++++++++++++++++++++++++++++++++++++++++++
" +++++++++++++++++++++++++++++++++++++++++++++++++++++
" title Vim Configuration +
" project igloo +
" repository https://github.com/arcticicestudio/igloo +
" author Arctic Ice Studio +
" email [email protected] +
" copyright Copyright (C) 2017 +
" +++++++++++++++++++++++++++++++++++++++++++++++++++++
"
" [References]
" Google Style Guide
" (https://google.github.io/styleguide/vimscriptguide.xml)
" https://google.github.io/styleguide/vimscriptguide.xml

"+---------+
"+ Plugins +
Expand Down Expand Up @@ -211,7 +211,10 @@ set smarttab
set softtabstop=2
set tabstop=2
set textwidth=160
set whichwrap+=<,>,h,l

" Automatically wrap left and right.
" This allows to move the cursor to the previous/next line after reaching first/last character in the line using the arrow keys in normal-, insert- (<,>) and visual mode ([,]) or the h and l keys.
set whichwrap+=<,>,h,l,[,]
set wrap

"+--- Search ---+
Expand Down

0 comments on commit fb72bb8

Please sign in to comment.