" ---------------------------------------------------------------------------- " waldek additions essentials " ---------------------------------------------------------------------------- " close all windows except the one you're in nmap o :only " use the arrows for buffer navigation nnoremap nnoremap nnoremap nnoremap " use CTRL-motion for buffer navigation nnoremap h nnoremap j nnoremap k nnoremap l " don't use the arrows for insert navigation inoremap inoremap inoremap inoremap " more natural splits set splitbelow set splitright set splitbelow " ---------------------------------------------------------------------------- " waldek filetype specific " ---------------------------------------------------------------------------- " python3 " ------- " let gi introspection work if has('python3') py3 << EOF import os.path import sys import vim sys.path.insert(0, os.path.join(os.path.expanduser('~'), '.cache/fakegir/')) EOF endif " run code in new window let _pymain="null" map rs :let _pymain=expand('%:p') map ru :let _pymain="null" map r :execute '!x-terminal-emulator -e python3 ~/bin/python/vim_run.py ' . &filetype expand('%:p') _pymain map rr :execute '!x-terminal-emulator -e python3 ~/bin/python/vim_run.py ' . &filetype expand('%:p') "null" " mail " ---- " mail should not wrap for mutt autocmd FileType mail set textwidth=0 " arduino " ------- au BufRead,BufNewFile *.pde set filetype=arduino au BufRead,BufNewFile *.ino set filetype=arduino " vimscript " ---- " mail should not wrap for mutt autocmd FileType vim nnoremap :source % " ---------------------------------------------------------------------------- " waldek plugins specific " ---------------------------------------------------------------------------- " vim-lsp " ------- set foldmethod=expr \ foldexpr=lsp#ui#vim#folding#foldexpr() \ foldtext=lsp#ui#vim#folding#foldtext() " lsp-settings " ------------ " TagBar " ------ nmap c :TagbarToggle " nerdtree " -------- map n :NERDTreeToggle let g:NERDTreeWinSize=30 let g:NERDDefaultAlign = 'left' " vebugger " -------- let g:vebugger_leader='d' " marker specific " --------------- let g:SignatureMap = { \ 'Leader' : "m", \ 'PlaceNextMark' : "mm", \ 'ToggleMarkAtLine' : "m.", \ 'PurgeMarksAtLine' : "m-", \ 'DeleteMark' : "dm", \ 'PurgeMarks' : "m", \ 'PurgeMarkers' : "m", \ 'GotoNextLineAlpha' : "m]", \ 'GotoPrevLineAlpha' : "m[", \ 'GotoNextSpotAlpha' : "M]", \ 'GotoPrevSpotAlpha' : "M[", \ 'GotoNextLineByPos' : "]m", \ 'GotoPrevLineByPos' : "[m", \ 'GotoNextSpotByPos' : "]M", \ 'GotoPrevSpotByPos' : "[M", \ 'GotoNextMarker' : "]-", \ 'GotoPrevMarker' : "[-", \ 'GotoNextMarkerAny' : "]=", \ 'GotoPrevMarkerAny' : "[=", \ 'ListBufferMarks' : "m/", \ 'ListBufferMarkers' : "m?" \ }