mirror of
https://github.com/gryf/.vim.git
synced 2026-03-27 16:23:31 +01:00
Compare commits
12 Commits
0.0.1
...
9f2bf32892
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f2bf32892 | |||
| 61fc307d68 | |||
| a16be876d6 | |||
| a874ec9d16 | |||
| bc85cef317 | |||
| 7425fe57f1 | |||
| 7ce6c45ffc | |||
| 84675df236 | |||
| a03cd412e4 | |||
| 6de69ddc5c | |||
| 34555fba68 | |||
| 5c5c46c252 |
30
vimrc
30
vimrc
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user