nvim: Remove pencil to fix relative cursor movement
Cursor movement works better for soft-wrapped prose files now: When just using j/k to move vertically, the cursor will jump between the different parts of a single wrapped line. That means you can easily move anywhere you want on your lines, exactly as it's shown to you. If, however, prefixing your j/k move with a number to move a relative number of lines, it will no longer take wrapping into account. That means you can not jump instantly to *any* part of a wrapped lines, however on the other hand the relative line numbers on the side never lie now: You will jump exactly as many lines as are shown on the side. This is a tradeoff I am happily willing to make. Additionally had to remove vim-pencil to get the movement to work, but since it did not provide any visible pros anymore, this should not be a big issue.
This commit is contained in:
parent
ca692d30d0
commit
65df0fb91f
5 changed files with 14 additions and 13 deletions
|
|
@ -5,6 +5,9 @@ let g:pandoc#filetypes#pandoc_markdown = 1
|
|||
let g:pandoc#filetypes#handled = [ "extra", "latex", "markdown", "pandoc", "rst", "textile" ]
|
||||
" disable all default keymaps
|
||||
let g:pandoc#keyboard#use_default_mappings=0
|
||||
" needs to be set for wrapping and unwrapping of lines to work when doing j/k
|
||||
" or gj/gk respectively, to allow precise relative cursor jumping
|
||||
let g:pandoc#keyboard#display_motions=0
|
||||
let g:pandoc#hypertext#use_default_mappings=0
|
||||
" if there's a pdf and an html or similar, open the pdf
|
||||
let g:pandoc#command#prefer_pdf=1
|
||||
|
|
|
|||
|
|
@ -1,4 +0,0 @@
|
|||
" PLUGIN: vim-pencil
|
||||
" set default wrap mode to hard - TODO test which mode works better for
|
||||
" me, it seems hardmode has trouble with markdown lists (see issue #31)
|
||||
let g:pencil#wrapModeDefault = 'soft' " default is 'hard'
|
||||
Loading…
Add table
Add a link
Reference in a new issue