summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpack/ache/start/installPlugin.sh27
-rwxr-xr-xplugin/misc-bindings.vim4
-rw-r--r--plugin/neo.vim6
-rwxr-xr-xplugin/perso.vim37
-rwxr-xr-xplugin/viminfo.vim18
5 files changed, 72 insertions, 20 deletions
diff --git a/pack/ache/start/installPlugin.sh b/pack/ache/start/installPlugin.sh
index 4654507..536711d 100755
--- a/pack/ache/start/installPlugin.sh
+++ b/pack/ache/start/installPlugin.sh
@@ -8,3 +8,30 @@ git clone https://github.com/godlygeek/tabular
# python-mode
git clone https://github.com/python-mode/python-mode
+
+# Deoplete // Completion for Language
+git clone https://github.com/Shougo/deoplete.nvim
+
+# Neosnippet, completion for snippets
+git clone https://github.com/Shougo/neosnippet.vim
+git clone https://github.com/Shougo/neosnippet-snippets
+
+
+# Much simpler Rainbow Parenthses
+git clone https://github.com/junegunn/rainbow_parentheses.vim
+
+# Active it
+echo ":RainbowParentheses" >> ./rainbow_parentheses.vim/plugin/rainbow_parentheses.vim
+
+# Vim node ? Usefull to navigate between node package
+# Through require and import
+git clone https://github.com/moll/vim-node
+
+# Vim Java script
+git clone https://github.com/pangloss/vim-javascript
+
+ # Syntax checker
+git clone https://github.com/vim-syntastic/syntastic
+
+ # Colorizer
+git clone https://github.com/lilydjwg/colorizer
diff --git a/plugin/misc-bindings.vim b/plugin/misc-bindings.vim
index 4f9021d..596962d 100755
--- a/plugin/misc-bindings.vim
+++ b/plugin/misc-bindings.vim
@@ -11,8 +11,8 @@ nnoremap <F1> <Esc>
" << it's one less key to hit every time I want to save a file >>
" -- Steve Losh (again)
-nnoremap ; :
-vnoremap ; :
+"nnoremap ; :
+"vnoremap ; :
" From Kalenz's Vim config. Life changing.
nnoremap <Space> <C-w>
diff --git a/plugin/neo.vim b/plugin/neo.vim
new file mode 100644
index 0000000..0b9826f
--- /dev/null
+++ b/plugin/neo.vim
@@ -0,0 +1,6 @@
+"" Neovim stuffs
+
+au VimLeave * set guicursor=a:hor100-blinkon1000
+set concealcursor-=n
+
+:tnoremap <C-b> <C-\>
diff --git a/plugin/perso.vim b/plugin/perso.vim
index ccda728..8d7c9ff 100755
--- a/plugin/perso.vim
+++ b/plugin/perso.vim
@@ -9,6 +9,14 @@ set t_Co=256
"map <leader>k <C-W>k
"map <leader>h <C-W>h
"map <leader>l <C-W>l
+
+imap <C-N> <C-P>
+
+
+imap <C-P> <C-N>
+
+
+
filetype plugin indent on
" Color :
@@ -129,3 +137,32 @@ set incsearch
au BufNewFile *.c 0r ~/.vim/template/skel.c
+let g:deoplete#enable_at_startup = 1
+" Plugin key-mappings.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+imap <C-k> <Plug>(neosnippet_expand_or_jump)
+smap <C-k> <Plug>(neosnippet_expand_or_jump)
+xmap <C-k> <Plug>(neosnippet_expand_target)
+
+" SuperTab like snippets behavior.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+"imap <expr><TAB>
+" \ pumvisible() ? "\<C-n>" :
+" \ neosnippet#expandable_or_jumpable() ?
+" \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
+\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+
+" For conceal markers.
+
+if has('conceal')
+ set conceallevel=2 concealcursor=niv
+ endif
+
+map <C-l> :exec &conceallevel ? "set conceallevel=0" : "set conceallevel=2"<CR>
+
+" Start interactive EasyAlign in visual mode (e.g. vipga)
+xmap ga <Plug>(EasyAlign)
+
+" Start interactive EasyAlign for a motion/text object (e.g. gaip)
+nmap ga <Plug>(EasyAlign)
diff --git a/plugin/viminfo.vim b/plugin/viminfo.vim
deleted file mode 100755
index c543518..0000000
--- a/plugin/viminfo.vim
+++ /dev/null
@@ -1,18 +0,0 @@
-" viminfo.vim
-" Viminfo parameters
-
-set viminfo='20,\"50,<100,n~/.vimtmp/viminfo
-
-" From the Vim wiki
-" http://vim.wikia.com/wiki/Restore_cursor_to_file_position_in_previous_editing_session
-function! ResCur()
- if line("'\"") <= line("$")
- normal! g`"
- return 1
- endif
-endfunction
-
-augroup resCur
- autocmd!
- autocmd BufWinEnter * call ResCur()
-augroup END