added vimrc settings for moving in wraped lines
This commit is contained in:
@@ -55,6 +55,12 @@ set number
|
|||||||
" don't allow wrap
|
" don't allow wrap
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
||||||
|
" in wrap mode,
|
||||||
|
" show next lines instead of '@'
|
||||||
|
" break on words
|
||||||
|
set display=lastline
|
||||||
|
set lbr
|
||||||
|
|
||||||
" using alternate buffer with Explore, ':b#'
|
" using alternate buffer with Explore, ':b#'
|
||||||
" =0 ot go back to explore buffer
|
" =0 ot go back to explore buffer
|
||||||
" =1 ot go back to last edited file
|
" =1 ot go back to last edited file
|
||||||
@@ -66,6 +72,7 @@ set nowrap
|
|||||||
"let g:netrw_altfile = 0
|
"let g:netrw_altfile = 0
|
||||||
|
|
||||||
" choose how to print list in :Explore window
|
" choose how to print list in :Explore window
|
||||||
|
" alternatively you can hit 'i' inside Explore window to switch between styles
|
||||||
" =0 is default
|
" =0 is default
|
||||||
" =3 is tree style
|
" =3 is tree style
|
||||||
let g:netrw_liststyle = 3
|
let g:netrw_liststyle = 3
|
||||||
@@ -115,6 +122,19 @@ vnoremap <C-S-Right> <Esc>`><Right>gvxpgv<Right>o<Right>o
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
"---------------------------------------------------------------
|
||||||
|
" to move cursor inside wrapping
|
||||||
|
"---------------------------------------------------------------
|
||||||
|
" https://vim.fandom.com/wiki/Move_cursor_by_display_lines_when_wrapping
|
||||||
|
|
||||||
|
nnoremap <Down> gj
|
||||||
|
nnoremap <Up> gk
|
||||||
|
vnoremap <Down> gj
|
||||||
|
vnoremap <Up> gk
|
||||||
|
inoremap <Down> <C-o>gj
|
||||||
|
inoremap <Up> <C-o>gk
|
||||||
|
|
||||||
|
|
||||||
"---------------------------------------------------------------
|
"---------------------------------------------------------------
|
||||||
" put swap files in a special directory
|
" put swap files in a special directory
|
||||||
"---------------------------------------------------------------
|
"---------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user