From 33dc358be0ef835e3918442769b638aa10616ee2 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Thu, 7 Nov 2019 20:57:15 -0800 Subject: [PATCH] small quality of life improvements 1. erase the line under cursor with ,dd 2. free ,h ,j ,k ,l by mapping ,w to This will require some adjustments --- ftplugin/c.vim | 4 ++++ ftplugin/markdown.vim | 2 +- plugin/settings.vim | 13 ++++++++----- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ftplugin/c.vim b/ftplugin/c.vim index a500415..26b8225 100644 --- a/ftplugin/c.vim +++ b/ftplugin/c.vim @@ -1,5 +1,9 @@ iabbrev prn printf("\n"); +cabbrev Help term ++close man + nnoremap fb ][% nnoremap fe ][ +nnoremap h :term ++rows=15 ++close man +nnoremap x :term ++rows=15 %:p:h/run setlocal foldmethod=syntax foldlevel=99 diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index fc4e502..a2ce35f 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -1,3 +1,3 @@ setlocal list -nnoremap x :term ++close grip -b % +nnoremap x :term ++close ++rows=5 grip -b % diff --git a/plugin/settings.vim b/plugin/settings.vim index a2fcb3c..60f67d9 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -89,6 +89,7 @@ let g:LatexBox_latexmk_options = '-outdir=build -shell-escape' " {{{ set completeopt-=preview let g:ycm_autoclose_preview_window_after_completion = 0 +let g:ycm_key_detailed_diagnostics = '' let g:ycm_filetype_blacklist = { \ 'tex': 1, \ 'plaintex': 1, @@ -151,7 +152,7 @@ augroup END if has('terminal') augroup terminalsettings autocmd! - autocmd TerminalOpen * setlocal nonu tws="20x0" + autocmd TerminalOpen * setlocal nonu termwinsize="20x0" augroup END endif " }}} @@ -193,10 +194,12 @@ nnoremap sl :pedit $MYVIMRC nnoremap ss :execute 'pedit' my_settings_file nnoremap sv :source $MYVIMRC:execute 'source' my_settings_file nnoremap st :source % -nnoremap k -nnoremap j -nnoremap h -nnoremap l +" nnoremap k +" nnoremap j +" nnoremap h +" nnoremap l +nnoremap w +nnoremap dd cc nnoremap se :syntax enable nnoremap so :syntax off