1
0
mirror of https://github.com/gryf/.vim.git synced 2026-03-27 16:23:31 +01:00

Compare commits

...

12 Commits

Author SHA1 Message Date
9f2bf32892 Change riv.vim to vim-rst for restructured text support 2023-02-17 14:11:55 +01:00
61fc307d68 Comment update 2023-02-17 14:11:30 +01:00
a16be876d6 Added vimwiki headers support in tagbar.
Additionally for the vim config, there should be also appropriate ctags
configuration done in ~/.config/ctags/vimwiki.ctags:

--langdef=vimwiki
--langmap=vimwiki:.wiki
--regex-vimwiki=/^=[ \t]+(.+)[ \t]+=$/\1/h,header/
--regex-vimwiki=/^==[ \t]+(.+)[ \t]+==$/. \1/h,header/
--regex-vimwiki=/^===[ \t]+(.+)[ \t]+===$/.   \1/h,header/
--regex-vimwiki=/^====[ \t]+(.+)[ \t]+====$/.     \1/h,header/
--regex-vimwiki=/^=====[ \t]+(.+)[ \t]+=====$/.       \1/h,header/
--regex-vimwiki=/^======[ \t]+(.+)[ \t]+======$/.         \1/h,header/
2023-02-17 13:50:30 +01:00
a874ec9d16 Ale configuration 2023-02-17 13:50:17 +01:00
bc85cef317 Make gui font a bit smaller 2022-10-02 11:27:09 +02:00
7425fe57f1 Turn on spellcheck by default on vimwiki 2022-07-19 19:10:05 +02:00
7ce6c45ffc Replace vim-surrand with vim-sandwich 2022-07-19 19:09:35 +02:00
84675df236 Use old commands for fugitive, new "Git something" is kind of annoying 2022-04-15 10:07:35 +02:00
a03cd412e4 Remove markdown plugin. 2022-04-01 15:51:53 +02:00
6de69ddc5c Use roboto font for gvim. 2022-04-01 15:51:34 +02:00
34555fba68 Add some more filetypes to nuke whitespaces 2022-04-01 15:51:17 +02:00
5c5c46c252 Added xelatex as default parser to rubber 2022-04-01 15:50:32 +02:00

30
vimrc
View File

@@ -31,7 +31,7 @@ Plug 'gryf/snipmate.vim'
Plug 'gryf/vim-latex-compiler' Plug 'gryf/vim-latex-compiler'
Plug 'gryf/wombat256grf' Plug 'gryf/wombat256grf'
Plug 'gryf/zoom.vim' Plug 'gryf/zoom.vim'
Plug 'gu-fan/riv.vim', { 'for': 'rst' } Plug 'habamax/vim-rst', { 'for': 'rst' }
Plug 'honza/vim-snippets' Plug 'honza/vim-snippets'
Plug 'kazuyukitanimura/jsbeautify' Plug 'kazuyukitanimura/jsbeautify'
Plug 'kien/ctrlp.vim' Plug 'kien/ctrlp.vim'
@@ -42,7 +42,6 @@ Plug 'myhere/vim-nodejs-complete', { 'for': 'javascript' }
Plug 'othree/html5.vim', { 'for': 'html' } Plug 'othree/html5.vim', { 'for': 'html' }
Plug 'pangloss/vim-javascript', { 'for': 'javascript' } Plug 'pangloss/vim-javascript', { 'for': 'javascript' }
Plug 'pcaro90/jpythonfold.vim' Plug 'pcaro90/jpythonfold.vim'
Plug 'plasticboy/vim-markdown', { 'for': 'markdown' }
Plug 'preservim/nerdcommenter' Plug 'preservim/nerdcommenter'
Plug 'preservim/tagbar' Plug 'preservim/tagbar'
Plug 'regedarek/ZoomWin' Plug 'regedarek/ZoomWin'
@@ -52,7 +51,7 @@ Plug 'skammer/vim-css-color'
Plug 'terryma/vim-multiple-cursors' Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-fugitive' Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat' Plug 'tpope/vim-repeat'
Plug 'tpope/vim-surround' Plug 'machakann/vim-sandwich'
Plug 'vim-scripts/DrawIt' Plug 'vim-scripts/DrawIt'
Plug 'vim-scripts/JavaScript-Indent', { 'for': 'javascript' } Plug 'vim-scripts/JavaScript-Indent', { 'for': 'javascript' }
Plug 'vim-scripts/LanguageTool' Plug 'vim-scripts/LanguageTool'
@@ -365,6 +364,7 @@ function s:SetRestSettings() "{{{2
endfunction endfunction
"}}} "}}}
function s:SetVimwikiSettings() "{{{2 function s:SetVimwikiSettings() "{{{2
setlocal spell
map <F5> :Vimwiki2HTML<CR> map <F5> :Vimwiki2HTML<CR>
map <S-F5> :Vimwiki2HTMLBrowse<CR> map <S-F5> :Vimwiki2HTMLBrowse<CR>
map <C-F5> :VimwikiAll2HTML<CR> map <C-F5> :VimwikiAll2HTML<CR>
@@ -423,6 +423,10 @@ if executable('ag')
let g:ackprg = 'ag --vimgrep' let g:ackprg = 'ag --vimgrep'
endif endif
"}}} "}}}
"Ale {{{2
let g:ale_sh_bashate_executable="bashate -i E006"
let g:ale_virtualtext_cursor=0
"}}}
"KickAssembler {{{2 "KickAssembler {{{2
let g:kickass_path = '/opt/KickAssembler/KickAss.jar' let g:kickass_path = '/opt/KickAssembler/KickAss.jar'
"}}} "}}}
@@ -465,6 +469,10 @@ vmap <expr> <C-UP> DVB_Drag('up')
vmap <expr> D DVB_Duplicate() vmap <expr> D DVB_Duplicate()
let g:DVB_TrimWS = 1 let g:DVB_TrimWS = 1
"}}} "}}}
"Fugitive {{{2
" I like simple G* commands, i.e. Gblame over Git blame
let g:fugitive_legacy_commands = 1
"}}}
"Gundo {{{2 "Gundo {{{2
map <Leader>u :GundoToggle<cr> map <Leader>u :GundoToggle<cr>
let g:gundo_prefer_python3 = 1 let g:gundo_prefer_python3 = 1
@@ -520,6 +528,7 @@ let g:riv_auto_format_table = 0
"}}} "}}}
" Rubber / vim-latex-compiler {{{2 " Rubber / vim-latex-compiler {{{2
let g:rubber_make_on_save = 0 let g:rubber_make_on_save = 0
let g:rubber_command = 'xelatex'
" }}} " }}}
"ShowMarks {{{2 "ShowMarks {{{2
let g:showmarks_ignore_type = "hqprm" let g:showmarks_ignore_type = "hqprm"
@@ -528,8 +537,19 @@ let g:showmarks_include = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
"Tagbar {{{2 "Tagbar {{{2
nmap <Leader>t :Tagbar<CR> nmap <Leader>t :Tagbar<CR>
let g:tagbar_compact = 1 let g:tagbar_compact = 1
let g:tagbar_type_vimwiki = {
\ 'ctagstype' : 'vimwiki',
\ 'kinds' : [
\ 'h:header',
\ ],
\ 'sort' : 0
\ }
" Note: see statusline settings for status bar tag conf " Note: see statusline settings for status bar tag conf
"}}} "}}}
"Sandwitch {{{2
" Make sandwitch to use my memorymuscle craved shorcuts for surround
runtime macros/sandwich/keymap/surround.vim
"}}}
"VimWIKI {{{2 "VimWIKI {{{2
let g:vimwiki_list = [{'path': '~/vimwiki/', let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'template_path': '~/vimwiki/', \ 'template_path': '~/vimwiki/',
@@ -587,7 +607,7 @@ function <SID>StripTrailingWhitespaces(force, mode) range
return return
endif endif
if a:force == 1 || &ft =~ 'python\|rst\|wiki\|javascript\|css\|html\|xml' if a:force == 1 || &ft =~ 'python\|rst\|wiki\|javascript\|css\|html\|xml\|yaml\|sh'
" Preparation: save last search, and cursor position. " Preparation: save last search, and cursor position.
let _s=@/ let _s=@/
let l = line(".") let l = line(".")
@@ -749,7 +769,7 @@ command W w !sudo tee "%" > /dev/null
"}}} "}}}
" GUI: detect graphics mode, set colorscheme {{{ " GUI: detect graphics mode, set colorscheme {{{
if has('gui_running') if has('gui_running')
set guifont=DejaVuSansMono\ Nerd\ Font\ Mono\ 12 set guifont=RobotoMono\ Nerd\ Font\ 11
set mouse=a "Enable mouse support set mouse=a "Enable mouse support
" No toolbar, menu, scrollbars, draw simple text tabs. This would keep " No toolbar, menu, scrollbars, draw simple text tabs. This would keep
" window in one place, and also this will conserve space. Tabs are huge " window in one place, and also this will conserve space. Tabs are huge