From 8bc9b5b9e6e215d9c145ff9233f5e4dd1491d27d Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Wed, 14 Jun 2017 18:51:33 +0100 Subject: [PATCH 1/3] New plugins --- .vimrc | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.vimrc b/.vimrc index f855a61..16b46f0 100644 --- a/.vimrc +++ b/.vimrc @@ -29,6 +29,8 @@ inoremap { {}O inoremap {{ { inoremap {} {} +"remove whitespace +nnoremap :let _s=@/ :%s/\s\+$//e :let @/=_s :nohl :unlet _s "Sane window management map h @@ -36,9 +38,9 @@ map j map k map l -:nnoremap :bnext -:nnoremap :bprevious -:noremap :Autoformat +nnoremap :bnext +nnoremap :bprevious +noremap :Autoformat "CTRL-N to open Nerd Tree map :NERDTreeToggle @@ -64,26 +66,28 @@ Plugin 'evanmiller/nginx-vim-syntax' " My Plugins here: " " original repos on github -Plugin 'tpope/vim-fugitive' +Plugin 'tpope/vim-dispatch' +Plugin 'airblade/vim-gutter' +Plugin 'Xuyuanp/nerdtree-git-plugin' " Plugin 'fholgado/minibufexpl.vim' Plugin 'Valloric/YouCompleteMe' Plugin 'marijnh/tern_for_vim' -Plugin 'https://github.com/kien/ctrlp.vim' -Plugin 'https://github.com/klen/python-mode.git' -Plugin 'https://github.com/godlygeek/tabular.git' +Plugin 'kien/ctrlp.vim' +Plugin 'klen/python-mode' +Plugin 'godlygeek/tabulart' Plugin 'taglist.vim' Plugin 'mattn/emmet-vim' -Plugin 'tpope/vim-dispatch' +Plugin 'Yggdroot/indentline' Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' Plugin 'ntpeters/vim-better-whitespace' Plugin 'ap/vim-buftabline' -Plugin 'airblade/vim-gitgutter' Plugin 'elzr/vim-json' Plugin 'OmniSharp/omnisharp-vim' Plugin 'OrangeT/vim-csharp' Plugin 'morhetz/gruvbox' +Plugin 'ryanoasis/vim-devicons' let g:JSHintHighlightErrorLine = 0 let g:miniBufExplForceSyntaxEnable = 1 From 783b1802d914f1d2b6d17698c3ca6dcafc0c5306 Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Wed, 14 Jun 2017 20:06:55 +0100 Subject: [PATCH 2/3] New ctrlp --- .vimrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.vimrc b/.vimrc index 16b46f0..6cdc685 100644 --- a/.vimrc +++ b/.vimrc @@ -67,16 +67,15 @@ Plugin 'evanmiller/nginx-vim-syntax' " " original repos on github Plugin 'tpope/vim-dispatch' -Plugin 'airblade/vim-gutter' Plugin 'Xuyuanp/nerdtree-git-plugin' " Plugin 'fholgado/minibufexpl.vim' Plugin 'Valloric/YouCompleteMe' Plugin 'marijnh/tern_for_vim' -Plugin 'kien/ctrlp.vim' +Plugin 'ctrlpvim/ctrlp.vim' Plugin 'klen/python-mode' -Plugin 'godlygeek/tabulart' Plugin 'taglist.vim' Plugin 'mattn/emmet-vim' +Plugin 'ryanoasis/vim-devicons' Plugin 'Yggdroot/indentline' Plugin 'vim-airline/vim-airline' @@ -87,7 +86,6 @@ Plugin 'elzr/vim-json' Plugin 'OmniSharp/omnisharp-vim' Plugin 'OrangeT/vim-csharp' Plugin 'morhetz/gruvbox' -Plugin 'ryanoasis/vim-devicons' let g:JSHintHighlightErrorLine = 0 let g:miniBufExplForceSyntaxEnable = 1 From dda830a93f2e4084e4c0659b484c0271547431eb Mon Sep 17 00:00:00 2001 From: Fergal Moran Date: Thu, 15 Jun 2017 20:20:34 +0100 Subject: [PATCH 3/3] Added fonts --- .vimrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index 6cdc685..16dbee2 100644 --- a/.vimrc +++ b/.vimrc @@ -1,6 +1,6 @@ set nocompatible filetype off - +set encoding=utf8 set rtp+=~/.vim/bundle/vundle/ call vundle#rc() @@ -9,6 +9,8 @@ call vundle#rc() "Auto reload .vimrc autocmd! bufwritepost .vimrc source % +autocmd FileType nerdtree setlocal nolist + "De-insaneify copy & paste set pastetoggle= set clipboard=unnamed @@ -59,10 +61,12 @@ set smartcase Plugin 'Chiel92/vim-autoformat' Plugin 'gmarik/vundle' Plugin 'scrooloose/nerdtree' +Plugin 'tiagofumo/vim-nerdtree-syntax-highlight' Plugin 'scrooloose/syntastic' Plugin 'leafgarland/typescript-vim' Plugin 'SirVer/ultisnips' Plugin 'evanmiller/nginx-vim-syntax' +Plugin 'chr4/nginx.vim' " My Plugins here: " " original repos on github @@ -75,7 +79,6 @@ Plugin 'ctrlpvim/ctrlp.vim' Plugin 'klen/python-mode' Plugin 'taglist.vim' Plugin 'mattn/emmet-vim' -Plugin 'ryanoasis/vim-devicons' Plugin 'Yggdroot/indentline' Plugin 'vim-airline/vim-airline' @@ -87,10 +90,21 @@ Plugin 'OmniSharp/omnisharp-vim' Plugin 'OrangeT/vim-csharp' Plugin 'morhetz/gruvbox' +Plugin 'ryanoasis/vim-devicons' + +" step 2: font configuration +" " These are the basic settings to get the font to work (required): +set guifont=Droid\ Sans\ Mono\ for\ Powerline\ Nerd\ Font\ Complete\ 12 +set encoding=utf-8 +" " required if using https://github.com/bling/vim-airline +let g:airline_powerline_fonts=1 + + let g:JSHintHighlightErrorLine = 0 let g:miniBufExplForceSyntaxEnable = 1 let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 1 " These are the tweaks I apply to YCM's config, you don't need them but they " might help.