diff options
author | David Runge <dave@sleepmap.de> | 2021-02-07 16:41:11 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2021-02-07 16:41:11 +0100 |
commit | bd1266f26acb8af4318f4fe708015bcfea2ad4b7 (patch) | |
tree | fd4ba150187c6c77e159e9ac4a57a7f1e99d605b /.vim/custom-functions.vim | |
parent | 266ed7f7533ace0188860dd79d3bc5569dfdd732 (diff) | |
download | dotfiles-bd1266f26acb8af4318f4fe708015bcfea2ad4b7.tar.gz dotfiles-bd1266f26acb8af4318f4fe708015bcfea2ad4b7.tar.bz2 dotfiles-bd1266f26acb8af4318f4fe708015bcfea2ad4b7.tar.xz dotfiles-bd1266f26acb8af4318f4fe708015bcfea2ad4b7.zip |
.vim/* Remove unused configs
.vim/custom-{functions,settings}.vim:
Remove unused settings.
Diffstat (limited to '.vim/custom-functions.vim')
-rw-r--r-- | .vim/custom-functions.vim | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/.vim/custom-functions.vim b/.vim/custom-functions.vim deleted file mode 100644 index ecf92bd..0000000 --- a/.vim/custom-functions.vim +++ /dev/null @@ -1,37 +0,0 @@ -" ================ strip trailing whitespaces ================ -" via: http://rails-bestpractices.com/posts/60-remove-trailing-whitespace -" Strip trailing whitespace -function! <SID>StripTrailingWhitespaces() - " Preparation: save last search, and cursor position. - let _s=@/ - let l = line(".") - let c = col(".") - " Do the business: - %s/\s\+$//e - " Clean up: restore previous search history, and cursor position - let @/=_s - call cursor(l, c) -endfunction -command! StripTrailingWhitespaces call <SID>StripTrailingWhitespaces() -nmap ,w :StripTrailingWhitespaces<CR> -" ================ text wrapping ================ -" http://vimcasts.org/episodes/soft-wrapping-text/ -function! SetupWrapping() - set wrap linebreak nolist - set showbreak=… -endfunction - -" TODO: this should happen automatically for certain file types (e.g. markdown) -command! -nargs=* Wrap :call SetupWrapping()<CR> - -vmap <D-j> gj -vmap <D-k> gk -vmap <D-$> g$ -vmap <D-^> g^ -vmap <D-0> g^ -nmap <D-j> gj -nmap <D-k> gk -nmap <D-$> g$ -nmap <D-^> g^ -nmap <D-0> g^ - |