aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-03-30 09:43:51 +0200
committerneodarz <neodarz@neodarz.net>2018-03-30 09:43:51 +0200
commitf2c1578df2e77d2892c8ffe8fda1d9e5a974cc2c (patch)
treeb6b4dcaee20802ff2ce0bcd46e9d5c36c2e00cde /nvim
parent83f075ad1ddb4c4eff0673fdfc2072f7260dc80d (diff)
downloaddotfiles_ascii-f2c1578df2e77d2892c8ffe8fda1d9e5a974cc2c.tar.xz
dotfiles_ascii-f2c1578df2e77d2892c8ffe8fda1d9e5a974cc2c.zip
Add some cool vim plugins
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/init.vim57
1 files changed, 56 insertions, 1 deletions
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 <buffer> <C-b> :w<cr>:new<bar>r !
autocmd BufNewFile,BufRead *.tex,*.bib imap <buffer> <C-b> <Esc><C-b>
" NERDTree keybinding
-map <C-n> :NERDTreeToggle<CR>
+map <C-b> :NERDTreeToggle<CR>
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 (<leader>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 <F8> :TagbarToggle<CR>
+
+" Controller -> Component
+map <leader>t yiw<cr>:tag /^<C-R>"<CR>
+" View -> Helper
+map <leader>h yiw<cr>:tag /^<C-R>"Helper<CR>
+
+
+
+let g:ctrlp_map = '<c-p>'
+let g:ctrlp_cmd = 'CtrlP'