diff --git a/colors/snowhite.vim b/colors/snowhite.vim index 8ccf855..66238b0 100644 --- a/colors/snowhite.vim +++ b/colors/snowhite.vim @@ -75,5 +75,3 @@ hi DiffAdd ctermbg=156 guibg=#afff87 gui=none cterm=none hi DiffChange ctermbg=229 guibg=#ffffaf gui=none cterm=none hi DiffText ctermbg=159 guibg=#afffff gui=none cterm=none hi DiffDelete ctermbg=210 ctermfg=124 guibg=#ff8787 guifg=#af0000 gui=none cterm=none - -" vim: sw=2 diff --git a/ftplugin/rust.vim b/ftplugin/rust.vim new file mode 100644 index 0000000..45a703e --- /dev/null +++ b/ftplugin/rust.vim @@ -0,0 +1,2 @@ +nnoremap x :term cargo run +iabbrev print println!("{}", diff --git a/ftplugin/tex.vim b/ftplugin/tex.vim index 1650c65..b61d93f 100644 --- a/ftplugin/tex.vim +++ b/ftplugin/tex.vim @@ -7,6 +7,8 @@ iabbrev sb \subsection iabbrev ssb \subsubsection iabbrev td \todo iabbrev mb \mathbf +iabbrev ie i.e.\@ +iabbrev eg e.g.\@ nnoremap x :Latexmk nnoremap lv :LatexView diff --git a/plugin/comment.vim b/plugin/comment.vim index bc2905a..8718627 100644 --- a/plugin/comment.vim +++ b/plugin/comment.vim @@ -4,6 +4,7 @@ let s:comment_map = { \ 'go': '\/\/', \ 'java': '\/\/', \ 'javascript': '\/\/', + \ 'rust': '\/\/', \ 'vhdl': '--', \ 'python': '#', \ 'vim': '"', @@ -11,6 +12,9 @@ let s:comment_map = { \ 'plaintex': '%', \ 'sh': '#', \ 'make': '#', + \ 'vuejs': '\/\/', + \ 'vue': '\/\/', + \ 'cmake': '#' \ } let s:block_map = { diff --git a/plugin/settings.vim b/plugin/settings.vim index d1bb43b..a2fcb3c 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -9,6 +9,11 @@ augroup customvimft autocmd! autocmd BufNewFile,BufRead *.vim* set filetype=vim augroup END + +augroup customvueft + autocmd! + autocmd BufNewFile,BufRead *.vue set filetype=vue +augroup END " }}} " Options @@ -53,6 +58,12 @@ let g:tagbar_autofocus = 1 let g:tagbar_map_close = "qT" " }}} +" Python-syntax stuff +" {{{ +let g:python_highlight_all = 1 +let g:python_highlight_operators = 0 +" }}} + " Webdev stuff " {{{ let g:user_emmet_install_global = 0 @@ -108,6 +119,10 @@ let g:syntastic_go_checkers = ['go'] hi def link Unstylish ColorColumn hi def link TrailingWhite Unstylish +" Related to Fugitive +hi! link diffAdded Comment +hi! link diffRemoved String + augroup badstyle autocmd! autocmd BufWinEnter * call clearmatches() @@ -136,7 +151,7 @@ augroup END if has('terminal') augroup terminalsettings autocmd! - autocmd TerminalOpen * setlocal nonu + autocmd TerminalOpen * setlocal nonu tws="20x0" augroup END endif " }}} @@ -200,6 +215,7 @@ vnoremap x"+P " {{{ nnoremap N :NERDTree nnoremap ] :YcmCompleter GoTo +nnoremap yt :YcmCompleter GetType nnoremap ye :YcmShowDetailedDiagnostic nnoremap yh :YcmCompleter GetDoc nnoremap yf :YcmCompleter FixIt:ccl