From bbc400d7aacedef0d618446f0e95e01583b9b1d6 Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Thu, 7 Sep 2017 22:20:08 +0200 Subject: Add something --- install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.sh b/install.sh index 513863b..e0dde54 100755 --- a/install.sh +++ b/install.sh @@ -43,3 +43,8 @@ yaourt -S otf-fira-code #git clone https://github.com/VundleVim/Vundle.vim.git vim/.vim/bundle/Vundle.vim #vim +PluginInstall +qall + +## The service doesn't work on my system... +#./stow-services services/twmnd.service +#stow twmnd +#sed -i s/absolute_position=1920x25/absolute_position=3840x25/g ~/.config/twmn/twmn.conf -- cgit v1.2.1 From e8084024390440c7a956fcd465f67c1db61ae606 Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Thu, 7 Sep 2017 22:47:28 +0200 Subject: Change vim to nvim --- zsh/.zsh/aliases.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh index 9c8afd3..1f0a882 100755 --- a/zsh/.zsh/aliases.zsh +++ b/zsh/.zsh/aliases.zsh @@ -29,9 +29,9 @@ alias cp="cp -r" alias scp="scp -r" alias xsel="xsel -b" alias fuck='sudo $(fc -ln -1)' -alias v="vim" -alias vi="vim" -alias emacs="vim" +alias v="nvim" +alias vi="nvim" +alias emacs="nvim" alias g="git" alias ga="git add" alias gap="git add -p" -- cgit v1.2.1 From 4c47b226a0956d8dde9e2bb9f2daf39ddcc4519b Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Thu, 7 Sep 2017 22:47:57 +0200 Subject: Add some plugins --- nvim/.config/nvim/init.vim | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 1bc22c8..73562ff 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -16,7 +16,7 @@ Plugin 'VundleVim/Vundle.vim' " Neomake build tool (mapped below to ) Plugin 'benekastah/neomake' " Autocomplete for python -"Plugin 'davidhalter/jedi-vim' +Plugin 'davidhalter/jedi-vim' " Remove extraneous whitespace when edit mode is exited "Plugin 'thirtythreeforty/lessspace.vim' @@ -33,8 +33,15 @@ Plugin 'airblade/vim-gitgutter' " Tab completion Plugin 'ervandew/supertab' +" Syntax for openscad files Plugin 'sirtaj/vim-openscad' +" NERDtree plugin +Plugin 'scrooloose/nerdtree' + +" NERDTree git plugin +Plugin 'Xuyuanp/nerdtree-git-plugin' + " After all plugins... call vundle#end() filetype plugin indent on @@ -121,4 +128,27 @@ nnoremap :w:Neomake autocmd BufNewFile,BufRead *.tex,*.bib noremap :w:newr !make:setlocal buftype=nofile:setlocal bufhidden=hide:setlocal noswapfile autocmd BufNewFile,BufRead *.tex,*.bib imap +" NERDTree keybinding +map :NERDTreeToggle +autocmd StdinReadPre * let s:std_in=1 +autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif + +" NERDTress File highlighting +function! NERDTreeHighlightFile(extension, fg, bg, guifg, guibg) + exec 'autocmd filetype nerdtree highlight ' . a:extension .' ctermbg='. a:bg .' ctermfg='. a:fg .' guibg='. a:guibg .' guifg='. a:guifg + exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#' +endfunction +call NERDTreeHighlightFile('jade', 'green', 'none', 'green', '#151515') +call NERDTreeHighlightFile('ini', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('md', 'blue', 'none', '#3366FF', '#151515') +call NERDTreeHighlightFile('yml', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('config', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('conf', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('json', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('html', 'yellow', 'none', 'yellow', '#151515') +call NERDTreeHighlightFile('styl', 'cyan', 'none', 'cyan', '#151515') +call NERDTreeHighlightFile('css', 'cyan', 'none', 'cyan', '#151515') +call NERDTreeHighlightFile('coffee', 'Red', 'none', 'red', '#151515') +call NERDTreeHighlightFile('js', 'Red', 'none', '#ffa500', '#151515') +call NERDTreeHighlightFile('php', 'Magenta', 'none', '#ff00ff', '#151515') -- cgit v1.2.1 From 2b73d3d6427892a6cf951b4122a3681aa23f2182 Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Thu, 7 Sep 2017 23:27:43 +0200 Subject: Add some plugins --- nvim/.config/nvim/init.vim | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 73562ff..11b67d6 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -42,6 +42,49 @@ Plugin 'scrooloose/nerdtree' " NERDTree git plugin Plugin 'Xuyuanp/nerdtree-git-plugin' +" Global Auto Completion +Plugin 'ajh17/VimCompletesMe' + +" PHP Auto Completion +Plugin 'shawncplus/phpcomplete.vim' + +" Better syntax and highlighting +Plugin 'pangloss/vim-javascript' + +" Better Json +Plugin 'elzr/vim-json' + +" Syntax checker +Plugin 'scrooloose/syntastic' + +" Git command managament from nvim +"Plugin 'tpope/vim-fugitive' + +" Git plugin of fugitive plugin for view log of git +Plugin 'gregsexton/gitv' + +" View tree of the file historic +Plugin 'mbbill/undotree' + +" Ack search tool +" Read more here : https://github.com/mileszs/ack.vim#can-i-use-ag-the-silver-searcher-with-this +Plugin 'mileszs/ack.vim' + +" matchit +Plugin 'isa/vim-matchit' + +" Unicode + Plugin 'chrisbra/unicode.vim' + +" Colorize text for exemple #fff +Plugin 'lilydjwg/colorizer' + +" html5 +Plugin 'othree/html5.vim' + +" Markdon hightlighting +Plugin 'gabrielelana/vim-markdown' + " After all plugins... call vundle#end() filetype plugin indent on -- cgit v1.2.1 From 3f254be6c9773038671060a484685a37c416a5fe Mon Sep 17 00:00:00 2001 From: NeodarZ Date: Thu, 7 Sep 2017 23:49:12 +0200 Subject: Remove buggy plugin --- nvim/.config/nvim/init.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 11b67d6..e4e7284 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -51,9 +51,6 @@ Plugin 'shawncplus/phpcomplete.vim' " Better syntax and highlighting Plugin 'pangloss/vim-javascript' -" Better Json -Plugin 'elzr/vim-json' - " Syntax checker Plugin 'scrooloose/syntastic' -- cgit v1.2.1