From f2c1578df2e77d2892c8ffe8fda1d9e5a974cc2c Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 30 Mar 2018 09:43:51 +0200 Subject: Add some cool vim plugins --- nvim/.config/nvim/init.vim | 57 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) (limited to 'nvim') diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 6d5b3e4..4e9e1c3 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -102,6 +102,31 @@ Plugin 'palantir/tslint' Plugin 'makerforceio/CoVim' +Plugin 'lumiliet/vim-twig' + +Plugin 'mattn/emmet-vim' + +Plugin 'cakebaker/scss-syntax.vim' + +Plugin 'gabesoft/vim-ags' + +Plugin 'stephpy/vim-php-cs-fixer' + +Plugin 'dpelle/vim-Grammalecte' + +Plugin 'https://github.com/ctrlpvim/ctrlp.vim.git' + +Plugin 'majutsushi/tagbar' + +Plugin 'ndreynolds/vim-cakephp' + +Plugin 'vim-scripts/textutil.vim' + +Plugin 'terryma/vim-multiple-cursors' + +Plugin 'cespare/vim-toml' + + " After all plugins... call vundle#end() filetype plugin indent on @@ -149,6 +174,8 @@ syntax enable set number showmatch set shiftwidth=4 tabstop=4 softtabstop=4 expandtab autoindent let python_highlight_all = 1 +set list +set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:< """"""" Keybindings """"""" @@ -189,7 +216,7 @@ autocmd BufNewFile,BufRead *.tex,*.bib noremap :w:newr ! autocmd BufNewFile,BufRead *.tex,*.bib imap " NERDTree keybinding -map :NERDTreeToggle +map :NERDTreeToggle autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif @@ -250,3 +277,31 @@ func! CompileRunGcc() exec "!firefox %.html &" endif endfunc + +set textwidth=0 wrapmargin=5 + +let g:ags_agexe = 'ag' +let g:ags_enable_async = 1 +let g:ags_results_per_tab = 0 + +"php-cs-fixer +let g:php_cs_fixer_rules = "@PSR2" + +let g:php_cs_fixer_php_path = "php" " Path to PHP +let g:php_cs_fixer_enable_default_mapping = 1 " Enable the mapping by default (pcd) +let g:php_cs_fixer_dry_run = 0 " Call command with dry-run option +let g:php_cs_fixer_verbose = 0 " Return the output of command if 1, else an inline information. + +let g:grammalecte_cli_py='/usr/share/grammalecte-fr/cli.py' + +nmap :TagbarToggle + +" Controller -> Component +map t yiw:tag /^" +" View -> Helper +map h yiw:tag /^"Helper + + + +let g:ctrlp_map = '' +let g:ctrlp_cmd = 'CtrlP' -- cgit v1.2.1