vimrc
This commit is contained in:
parent
ae27f5ac08
commit
cb102e6342
45
vim/UltiSnips/markdown_tex.snippets
Normal file
45
vim/UltiSnips/markdown_tex.snippets
Normal file
@ -0,0 +1,45 @@
|
||||
snippet tex "Inline Latex" i
|
||||
\\\\( ${1:${VISUAL}} \\\\) $0
|
||||
endsnippet
|
||||
|
||||
snippet Tex "Latex block" b
|
||||
\\\\[
|
||||
${1:${VISUAL}}
|
||||
\\\\]
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet bb "mathbb" i
|
||||
\mathbb{${1:${VISUAL:R}}} $0
|
||||
endsnippet
|
||||
|
||||
snippet in "\in" i
|
||||
\in $0
|
||||
endsnippet
|
||||
|
||||
snippet text "implement text in tex" i
|
||||
\text{ ${1:${VISUAL:text}} } $0
|
||||
endsnippet
|
||||
|
||||
snippet quad "small space (like a tab)" i
|
||||
\quad $0
|
||||
endsnippet
|
||||
|
||||
snippet br "break a line in tex mode" i
|
||||
\\\\\\\\
|
||||
$0
|
||||
endsnippet
|
||||
|
||||
snippet frac "fractions" i
|
||||
\frac{$1}{$2} $0
|
||||
endsnippet
|
||||
|
||||
snippet beg "Beggin and end with the cursor on the type" i
|
||||
\begin{${1:matrix}}}
|
||||
${2:${VISUAL}}
|
||||
\end{$1}
|
||||
endsnippet
|
||||
|
||||
snippet set "prepare for a set in tex {}" i
|
||||
\\\\{ ${1:${VISUAL:e}} \\\\} $0
|
||||
endsnippet
|
131
vimrc
Executable file
131
vimrc
Executable file
@ -0,0 +1,131 @@
|
||||
"python executing
|
||||
autocmd BufWritePost *.py map <F11> <ESC>:!clear && python & read<CR>
|
||||
autocmd BufWritePost *.py map <F12> <ESC>:!clear && python % & read<CR>
|
||||
|
||||
" autocmd FileType python set sw=4
|
||||
" autocmd FileType python set ts=4
|
||||
" autocmd FileType python set sts=4
|
||||
|
||||
" let g:AutoPairsMapCR = 0 "Workaround for 27_AutoPairsReturn
|
||||
" imap <silent><CR> <CR><Plug>AutoPairsReturn
|
||||
|
||||
map <c-w>v :vsplit .<cr>
|
||||
map <c-w>s :split .<cr>
|
||||
|
||||
let python_highlight_all=1
|
||||
let g:pymode_python = 'python3'
|
||||
let g:pymode_options_max_line_length = 120
|
||||
" let g:ctrlp_cmd = 'CtrlPTag'
|
||||
|
||||
nmap <c-p> <plug>(YCMFindSymbolInDirectory)
|
||||
nmap <c-P> <plug>(YCMFindSymbolInWorkspace)
|
||||
|
||||
let g:UltiSnipsExpandTrigger="<c-l>"
|
||||
let g:UltiSnipsListSnipets="<c-h>"
|
||||
let g:UltiSnipsEditSplit="vertical"
|
||||
|
||||
let g:cpp_attributes_highlight = 1
|
||||
|
||||
let g:ycm_always_populate_location_list = 1
|
||||
|
||||
" let g:completor_clang_binary = "/usr/bin/clang"
|
||||
"fold with space
|
||||
nnoremap <space> za
|
||||
syntax on
|
||||
|
||||
set nu
|
||||
set rnu
|
||||
set hls
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
set encoding=utf-8
|
||||
set nocompatible
|
||||
set ignorecase
|
||||
set nowrap
|
||||
set splitbelow splitright
|
||||
set spelllang+=fr
|
||||
set foldmethod=syntax
|
||||
set foldlevel=99
|
||||
set incsearch
|
||||
set autochdir
|
||||
" set foldcolumn=1
|
||||
set clipboard^=unnamed,unnamedplus
|
||||
|
||||
color desert
|
||||
hi Normal ctermfg=None ctermbg=None
|
||||
hi NonText ctermfg=None ctermbg=None
|
||||
|
||||
packadd termdebug
|
||||
|
||||
filetype off
|
||||
set rtp+=$HOME/.vim/bundle/vundle.vim/
|
||||
call vundle#begin()
|
||||
|
||||
"Mandatory
|
||||
Plugin 'vundleVim/Vundle.vim' "plugin Manager
|
||||
|
||||
"Quality of life (any)
|
||||
Plugin 'itchyny/lightline.vim' "status bar
|
||||
Plugin 'kien/rainbow_parentheses.vim' "Better Raimbow Parentheses
|
||||
Plugin 'mhinz/vim-startify' "start screen
|
||||
Plugin 'lilydjwg/colorizer' "color hexcode
|
||||
Plugin 'jiangmiao/auto-pairs' "auto Pair Brackets
|
||||
Plugin 'Yggdroot/indentLine' "show indent
|
||||
Plugin 'preservim/nerdtree' "Directory Visulaliser :Nerdtree
|
||||
|
||||
"useful in multiple languages
|
||||
Plugin 'SirVer/ultisnips' "fast write
|
||||
Plugin 'honza/vim-snippets' "lib of snips
|
||||
Plugin 'majutsushi/tagbar' "display tagBar with :TagbarToggle
|
||||
" Plugin 'vim-syntastic/syntastic' "errors manager (Seem to be broken with ycm for java)
|
||||
" Plugin 'maralla/completor.vim' "completion menu
|
||||
" Plugin 'tokorom/completor-shell' "Add on of completor.vim for shell scripting
|
||||
Plugin 'tpope/vim-commentary' "comment with <gcc>
|
||||
" Plugin 'dense-analysis/ale' "Async error checker (test usefulness)
|
||||
Plugin 'puremourning/vimspector' "Debugger
|
||||
|
||||
Plugin 'ycm-core/YouCompleteMe' "completion tool
|
||||
|
||||
"git
|
||||
Plugin 'mhinz/vim-signify' "git diff show
|
||||
|
||||
"php
|
||||
" Plugin 'StanAngeloff/php.vim' "php syntax
|
||||
" Plugin 'phpactor/phpactor' "php auto-completion
|
||||
|
||||
"python
|
||||
" Plugin 'python-mode/python-mode' "A python IDE
|
||||
|
||||
"html/css
|
||||
Plugin 'mattn/emmet-vim' "Fast http
|
||||
Plugin 'vim-scripts/loremipsum' "ipsum generator :Loremipsum <word>
|
||||
Plugin 'tpope/vim-surround' "Surround html tags
|
||||
Plugin 'sukima/xmledit' "Edit XML and HTML
|
||||
|
||||
"lua
|
||||
" Plugin 'wsdjeg/vim-lua' "lua syntax
|
||||
|
||||
"markdown
|
||||
Plugin 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vundle'] }
|
||||
|
||||
"c & cpp
|
||||
Plugin 'bfrg/vim-cpp-modern' "Extended vim syntax highlight c++
|
||||
Plugin 'a.vim' "go from hpp to cpp with :A
|
||||
" Plugin 'xavierd/clang_complete' "CLang Complete (don't work with ycm)
|
||||
" Plugin 'ctrlpvim/ctrlp.vim' "ctrl p support
|
||||
Plugin 'cdelledonne/vim-cmake'
|
||||
|
||||
"glsl (shader)
|
||||
Plugin 'tikhomirov/vim-glsl'
|
||||
|
||||
"c sharp
|
||||
" Plugin 'OmniSharp/omnisharp-vim'
|
||||
|
||||
"java
|
||||
|
||||
Plugin 'hdiniz/vim-gradle'
|
||||
|
||||
call vundle#end()
|
||||
|
||||
filetype plugin indent on
|
||||
set omnifunc=syntaxcomplete#Complete
|
Loading…
Reference in New Issue
Block a user