From 6a134772e6a9492a4b4da273e03aea3e8ee9cbb4 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sat, 10 Feb 2018 12:19:50 +0100 Subject: [PATCH] better syntastic, tex; cleanup --- ftplugin/javascript.vim | 3 +- ftplugin/tex.vim | 1 + plugin/settings.vim | 89 +++++++++++++++++++++++------------------ 3 files changed, 52 insertions(+), 41 deletions(-) create mode 100644 ftplugin/tex.vim diff --git a/ftplugin/javascript.vim b/ftplugin/javascript.vim index 4cbac4a..16ffc97 100644 --- a/ftplugin/javascript.vim +++ b/ftplugin/javascript.vim @@ -1,2 +1 @@ -setlocal foldmethod=syntax foldlevel=99 -let javaScript_fold=1 +setlocal foldmethod=syntax diff --git a/ftplugin/tex.vim b/ftplugin/tex.vim new file mode 100644 index 0000000..16ffc97 --- /dev/null +++ b/ftplugin/tex.vim @@ -0,0 +1 @@ +setlocal foldmethod=syntax diff --git a/plugin/settings.vim b/plugin/settings.vim index 025acbf..6142e5a 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -1,5 +1,5 @@ -"Syntax -"{{{ +" Syntax +" {{{ filetype plugin indent on syntax enable syntax sync maxlines=100 @@ -9,10 +9,10 @@ augroup customft autocmd! autocmd BufNewFile,BufRead *.vim* set filetype=vim augroup END -"}}} +" }}} -"Options -"{{{ +" Options +" {{{ set expandtab set shiftwidth=4 set tabstop=4 @@ -26,38 +26,49 @@ set hlsearch set incsearch set laststatus=2 -"set splitbelow -"}}} +" set splitbelow +" }}} -"Gui stuff -"{{{ +" Globals +" {{{ +let g:tex_fold_enabled = 1 +let g:javaScript_fold=1 +" }}} + +" Gui stuff +" {{{ set guicursor=n-v-i-c:block-Cursor set guicursor+=n-v-i-c:blinkon0 -set guioptions-=e -set guioptions-=l -set guioptions-=L -set guioptions-=r -set guioptions-=R -set guioptions-=m -set guioptions-=T +set guioptions= set langmenu=en_US.UTF-8 -"}}} +" }}} -"Tagbar stuff -"{{{ +" Tagbar stuff +" {{{ let g:tagbar_autofocus = 1 -"}}} +" }}} +" +" LatexBox stuff +" {{{ +let g:LatexBox_no_mappings = 1 +" }}} -"YouCompleteMe stuff -"{{{ +" YouCompleteMe stuff +" {{{ set completeopt-=preview let g:ycm_autoclose_preview_window_after_completion = 1 set shortmess+=c -"}}} +" }}} -"Coding style -"{{{ +" Syntastic Stuff +" {{{ +let g:syntastic_mode_map = {'mode': 'passive'} +" let g:syntastic_aggregate_errors = 1 +" }}} + +" Coding style +" {{{ augroup badstyle autocmd! autocmd BufWinEnter * call clearmatches() @@ -73,10 +84,10 @@ augroup trailingwhite \ | match TrailingWhite '\v\s+$' | endif autocmd InsertEnter * match TrailingWhite '' augroup END -"}}} +" }}} -"Mappings -"{{{ +" Mappings +" {{{ let mapleader = "," let maplocalleader = "," nnoremap q @@ -105,27 +116,27 @@ nnoremap l nnoremap se :syntax enable nnoremap so :syntax off +nnoremap fl mf081Fr`f:delm + vnoremap " `>a"` vnoremap "+y +" }}} -onoremap p i( -onoremap qd i" -onoremap qs i' -"}}} - -"Mappings for Plugins -"{{{ +" Mappings for Plugins +" {{{ nnoremap N :NERDTree nnoremap ] :YcmCompleter GoTo nnoremap ye :YcmShowDetailedDiagnostic nnoremap yf :YcmCompleter FixIt:ccl nnoremap yd :YcmDiags +nnoremap sd :SyntasticSetLoclist:lopen +nnoremap sc :w:SyntasticCheck nnoremap T :TagbarToggle -"}}} +" }}} -"Abbreviations -"{{{ +" Abbreviations +" {{{ iabbrev rr return iabbrev itt import cabbrev w!! w !sudo tee > /dev/null % -"}}} +" }}}