X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/0038a5d6682b9facccbf188b65e1679f5de3b0f9..4c549cf89c1d4afe55f6cf469fe604fda928cce6:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index fcd2f58..0c341cb 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -4,6 +4,11 @@ if has('python3') | endif " space is leader let g:mapleader = " " +" disable netrw +"FIXME: it currently breaks vim-fugitive 2023-04-11 +" instead of opening Git status, a netrw buffer opens instead +let g:loaded_netrwPlugin = 1 + " runtimepath {{{1 set runtimepath ^=$XDG_CONFIG_HOME/vim set runtimepath +=$XDG_CONFIG_HOME/vim/after @@ -288,6 +293,23 @@ Plug 'mtth/scratch.vim' " {{{2 let g:scratch_autohide = 0 "}}} +Plug 'vim-pandoc/vim-pandoc' " {{{2 +Plug 'vim-pandoc/vim-pandoc-syntax' +let g:pandoc#syntax#conceal#use = 1 +let g:pandoc#syntax#conceal#blacklist = [ + \ 'titleblock', + \ 'codeblock_start', + \ 'codeblock_delim', + \ 'atx', + \ ] +let g:pandoc#syntax#codeblocks#embeds#langs = [ + \ 'plantuml', + \ ] +let g:pandoc#keyboard#blacklist_submodule_mappings = [ + \ 'para', + \ ] +"}}} + " Plug 'jenterkin/vim-autosource' " TODO: delete? {{{2 " let g:autosource_hashdir = $XDG_CACHE_HOME . '/vim/vim-autosource' " let g:autosource_conf_names = ['.vimrc', '.vimrc.lua'] @@ -624,6 +646,9 @@ nnoremap ww :Untrail " Source vnoremap S y:execute @@:echo 'Sourced selection.' nnoremap S ^vg_y:execute @@:echo 'Sourced line.' +" Technically this is similar to execute this file, which is usually mapped to +" r and it would make sense to have that for lua files in nvim folder +nnoremap SS :source %:echo 'Sourced file.' " jump to last cursor position noremap ' ` @@ -796,11 +821,9 @@ command! GToggle GitToggle nnoremap gs :GitToggle nnoremap gd :Gdiffsplit -nnoremap gc :echohl WarningMsg \| echo "use \gcc instead" \| echohl None nnoremap gcc :tab G commit -v nnoremap gca :tab G commit -v --amend nnoremap gcf :tab G commit -v --fixup= -nnoremap gp :echohl WarningMsg \| echo "use \gpp instead" \| echohl None nnoremap gpp :Git push \| copen nnoremap gpf :Git push --force-with-lease \| copen nnoremap gll :Git pull @@ -826,6 +849,9 @@ nmap cog IndentGuidesToggle nmap [og IndentGuidesEnable nmap ]og IndentGuidesDisable +" netrw {{{2 +let g:netrw_sort_sequence = '[\/]$,\.\%(h\|hpp\)$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$' + " signature {{{2 " disable '[ mappings