Adding vim stuff

This commit is contained in:
Debucquoy Anthony 2023-04-21 07:41:11 +02:00
parent cdbe23d2fd
commit 32b2e68cc7
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
3 changed files with 25 additions and 7 deletions

View File

@ -43,3 +43,11 @@ endsnippet
snippet set "prepare for a set in tex {}" i
\\\\{ ${1:${VISUAL:e}} \\\\} $0
endsnippet
snippet forall "forall"
\forall $0
endsnippet
snippet exists "exists"
\exists $0
endsnippet

View File

@ -0,0 +1,6 @@
syn region djangotagmarkers start="{{" end="}}"
syn region djangovariablemarkers start="{%" end="%}"
command! -nargs=+ HiLink hi def link <args>
HiLink djangotagmarkers PreProc
HiLink djangovariablemarkers PreProc
delcommand HiLink

18
vimrc
View File

@ -1,6 +1,6 @@
"python executing
autocmd BufWritePost *.py map <F11> <ESC>:!clear && python & read<CR>
autocmd BufWritePost *.py map <F12> <ESC>:!clear && python % & read<CR>
autocmd BufWritePost *.py map <F11> <ESC>:vert term python -i %<CR>
autocmd BufWritePost *.py map <F12> <ESC>:vert term python %<CR>
" autocmd FileType python set sw=4
" autocmd FileType python set ts=4
@ -9,16 +9,16 @@ autocmd BufWritePost *.py map <F12> <ESC>:!clear && python % & read<CR>
" let g:AutoPairsMapCR = 0 "Workaround for 27_AutoPairsReturn
" imap <silent><CR> <CR><Plug>AutoPairsReturn
noremap <c-w>v :vsplit .<cr>
noremap <c-w>s :split .<cr>
nnoremap <C-p> :GFiles<CR>
nnoremap <C-g> :Ag<CR>
let python_highlight_all=1
let g:pymode_python = 'python3'
let g:pymode_options_max_line_length = 120
" let g:ctrlp_cmd = 'CtrlPTag'
nnoremap <c-p> <plug>(YCMFindSymbolInDirectory)
nnoremap <c-P> <plug>(YCMFindSymbolInWorkspace)
" nnoremap <c-p> <plug>(YCMFindSymbolInDirectory)
" nnoremap <c-P> <plug>(YCMFindSymbolInWorkspace)
"Documentation
nnoremap K :execute 'vert term' &keywordprg '<cexpr>'<cr>
@ -76,7 +76,7 @@ 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
" Plugin 'preservim/nerdtree' "Directory Visulaliser :Nerdtree
"useful in multiple languages
Plugin 'SirVer/ultisnips' "fast write
@ -93,6 +93,7 @@ Plugin 'ycm-core/YouCompleteMe' "completion tool
"git
Plugin 'mhinz/vim-signify' "git diff show
Plugin 'tpope/vim-fugitive' "for the :Git <command>
"php
" Plugin 'StanAngeloff/php.vim' "php syntax
@ -130,6 +131,9 @@ Plugin 'tikhomirov/vim-glsl'
Plugin 'hdiniz/vim-gradle'
Plugin 'junegunn/fzf', {'do': { -> fzf#install() }}
Plugin 'junegunn/fzf.vim'
call vundle#end()
filetype plugin indent on