better syntastic, tex; cleanup

This commit is contained in:
2018-02-10 12:19:50 +01:00
parent 9a72c97413
commit 6a134772e6
3 changed files with 52 additions and 41 deletions

View File

@@ -1,2 +1 @@
setlocal foldmethod=syntax foldlevel=99 setlocal foldmethod=syntax
let javaScript_fold=1

1
ftplugin/tex.vim Normal file
View File

@@ -0,0 +1 @@
setlocal foldmethod=syntax

View File

@@ -1,5 +1,5 @@
"Syntax " Syntax
"{{{ " {{{
filetype plugin indent on filetype plugin indent on
syntax enable syntax enable
syntax sync maxlines=100 syntax sync maxlines=100
@@ -9,10 +9,10 @@ augroup customft
autocmd! autocmd!
autocmd BufNewFile,BufRead *.vim* set filetype=vim autocmd BufNewFile,BufRead *.vim* set filetype=vim
augroup END augroup END
"}}} " }}}
"Options " Options
"{{{ " {{{
set expandtab set expandtab
set shiftwidth=4 set shiftwidth=4
set tabstop=4 set tabstop=4
@@ -26,38 +26,49 @@ set hlsearch
set incsearch set incsearch
set laststatus=2 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:block-Cursor
set guicursor+=n-v-i-c:blinkon0 set guicursor+=n-v-i-c:blinkon0
set guioptions-=e set guioptions=
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
set guioptions-=m
set guioptions-=T
set langmenu=en_US.UTF-8 set langmenu=en_US.UTF-8
"}}} " }}}
"Tagbar stuff " Tagbar stuff
"{{{ " {{{
let g:tagbar_autofocus = 1 let g:tagbar_autofocus = 1
"}}} " }}}
"
" LatexBox stuff
" {{{
let g:LatexBox_no_mappings = 1
" }}}
"YouCompleteMe stuff " YouCompleteMe stuff
"{{{ " {{{
set completeopt-=preview set completeopt-=preview
let g:ycm_autoclose_preview_window_after_completion = 1 let g:ycm_autoclose_preview_window_after_completion = 1
set shortmess+=c set shortmess+=c
"}}} " }}}
"Coding style " Syntastic Stuff
"{{{ " {{{
let g:syntastic_mode_map = {'mode': 'passive'}
" let g:syntastic_aggregate_errors = 1
" }}}
" Coding style
" {{{
augroup badstyle augroup badstyle
autocmd! autocmd!
autocmd BufWinEnter * call clearmatches() autocmd BufWinEnter * call clearmatches()
@@ -73,10 +84,10 @@ augroup trailingwhite
\ | match TrailingWhite '\v\s+$' | endif \ | match TrailingWhite '\v\s+$' | endif
autocmd InsertEnter * match TrailingWhite '' autocmd InsertEnter * match TrailingWhite ''
augroup END augroup END
"}}} " }}}
"Mappings " Mappings
"{{{ " {{{
let mapleader = "," let mapleader = ","
let maplocalleader = "," let maplocalleader = ","
nnoremap q <nop> nnoremap q <nop>
@@ -105,27 +116,27 @@ nnoremap <leader>l <c-w><c-l>
nnoremap <leader>se :syntax enable<cr> nnoremap <leader>se :syntax enable<cr>
nnoremap <leader>so :syntax off<cr> nnoremap <leader>so :syntax off<cr>
nnoremap <leader>fl mf081F<space>r<cr>`f:delm<cr>
vnoremap <leader>" <esc>`>a"<esc>`<i"<esc> vnoremap <leader>" <esc>`>a"<esc>`<i"<esc>
vnoremap <c-c> "+y vnoremap <c-c> "+y
" }}}
onoremap p i( " Mappings for Plugins
onoremap qd i" " {{{
onoremap qs i'
"}}}
"Mappings for Plugins
"{{{
nnoremap <leader>N :NERDTree<cr> nnoremap <leader>N :NERDTree<cr>
nnoremap <leader>] :YcmCompleter GoTo<cr> nnoremap <leader>] :YcmCompleter GoTo<cr>
nnoremap <leader>ye :YcmShowDetailedDiagnostic<cr> nnoremap <leader>ye :YcmShowDetailedDiagnostic<cr>
nnoremap <leader>yf :YcmCompleter FixIt<cr>:ccl<cr> nnoremap <leader>yf :YcmCompleter FixIt<cr>:ccl<cr>
nnoremap <leader>yd :YcmDiags<cr> nnoremap <leader>yd :YcmDiags<cr>
nnoremap <leader>sd :SyntasticSetLoclist<cr>:lopen<cr>
nnoremap <leader>sc :w<cr>:SyntasticCheck<cr>
nnoremap <leader>T :TagbarToggle<cr> nnoremap <leader>T :TagbarToggle<cr>
"}}} " }}}
"Abbreviations " Abbreviations
"{{{ " {{{
iabbrev rr return iabbrev rr return
iabbrev itt import iabbrev itt import
cabbrev w!! w !sudo tee > /dev/null %<cr> cabbrev w!! w !sudo tee > /dev/null %<cr>
"}}} " }}}