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

Compare commits

..

8 Commits

17
vimrc
View File

@@ -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>
@@ -465,6 +465,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 +524,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"
@@ -530,6 +535,10 @@ nmap <Leader>t :Tagbar<CR>
let g:tagbar_compact = 1 let g:tagbar_compact = 1
" Note: see statusline settings for status bar tag conf " Note: see statusline settings for status bar tag conf
"}}} "}}}
"{{{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 +596,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 +758,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