diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-06 14:54:23 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-06 14:54:23 +1200 |
commit | 6dbda3419aeada6c31a1083af198de4e38ee31b4 (patch) | |
tree | 03e505d334f80cc97c7b11e84f553c127dfb1058 /vim/config/wrap.vim | |
parent | Update markdown/autoformat.vim (diff) | |
download | dotfiles-6dbda3419aeada6c31a1083af198de4e38ee31b4.tar.gz dotfiles-6dbda3419aeada6c31a1083af198de4e38ee31b4.zip |
Consolidate .vimrc and .vim/filetype.vim
And add .vim/script.vim, to be composed in the next commit
Diffstat (limited to 'vim/config/wrap.vim')
-rw-r--r-- | vim/config/wrap.vim | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/vim/config/wrap.vim b/vim/config/wrap.vim deleted file mode 100644 index a2d442fa..00000000 --- a/vim/config/wrap.vim +++ /dev/null @@ -1,40 +0,0 @@ -" Don't wrap by default, but use \w to toggle it on or off quickly -set nowrap -nnoremap <silent> - \ <Leader>w - \ :<C-U>set wrap! wrap?<CR> - -" When wrapping text, if a line is so long that not all of it can be shown on -" the screen, show as much as possible anyway; by default Vim fills the left -" column with @ symbols instead, which I don't find very helpful -set display=lastline - -" Clearly show when the start or end of the row does not correspond to the -" start and end of the line -set listchars+=precedes:<,extends:> - -" When wrapping, j and k should move by screen row, and not to the same -" column number in the previous logical line, which feels very clumsy and is -" seldom particularly helpful; you can use n| to jump to the nth column in a -" line anyway if you need to -nnoremap j gj -nnoremap k gk - -" Line break settings and mappings -if has('linebreak') - - " Break lines at word boundaries if possible - set linebreak - - " Precede continued lines with '...' - set showbreak=... - - " If we have the option, indent wrapped lines as much as the first line - if exists('+breakindent') - set breakindent - endif - - " \b toggles copy-pasteable linebreak settings - nmap <Leader>b <Plug>CopyLinebreakToggle - -endif |