Created
May 16, 2019 12:11
-
-
Save redlotus/add331cd1736a3c4a31d15d9c8f6a91b to your computer and use it in GitHub Desktop.
ginit.vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" for windows | |
" Gui | |
GuiTabline 0 | |
GuiPopupmenu 0 | |
GuiLinespace 1 | |
Guifont Fira Code:h10 | |
set termguicolors | |
" enable plugins | |
filetype on | |
syntax enable | |
" basic settings | |
set laststatus=2 " Always show the statusline | |
"set term=$TERM | |
set encoding=utf-8 " Necessary to show unicode glyphs | |
" if $TERM!="linux" " if we are not in tty | |
" set t_Co=256 " Tell that terminal supports 256 colors | |
" endif | |
set tabstop=4 " Number of spaces that a <Tab> in the file counts for. | |
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE | |
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent. | |
set expandtab " insert space when hitting TABs | |
set shiftround " round indent to multiple of 'shiftwidth' | |
set autoindent " auto indentation | |
set cindent " c indentation | |
set nu " Toggle line numbering | |
set noruler " Display the cursor position, using powerline instead to show stats | |
set noswapfile " no swap files | |
set ignorecase " ignore case in search | |
set smartcase " if uppercase letter, dont ignore | |
" set ttyfast " yes we have fast terminal connection | |
" set shell=bash | |
set backspace=indent,eol,start " backspace behavior (indent -> eol -> start) | |
set backup " backup :) | |
set backupdir=~/.config/nvim/backup " backup directory | |
set pumheight=15 " limit popup menu height | |
set termguicolors | |
call plug#begin('~/.config/nvim/plugged/') | |
" My Bundles here: | |
"Plug 'chriskempson/base16-vim' | |
"Plug 'altercation/vim-colors-solarized' | |
Plug 'iCyMind/NeoSolarized' | |
Plug 'rust-lang/rust.vim' | |
"Plug 'Chiel92/vim-autoformat' | |
Plug 'sbdchd/neoformat' | |
Plug 'scrooloose/nerdtree' | |
" replaced by vista.vim | |
"Plug 'majutsushi/tagbar' | |
Plug 'plasticboy/vim-markdown' | |
Plug 'tpope/vim-fugitive' | |
" replaced by lightline.vim | |
Plug 'tpope/vim-surround' | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'zchee/deoplete-jedi' | |
Plug 'sebastianmarkow/deoplete-rust' | |
" Plug 'mhartington/nvim-typescript' | |
" Plug 'bling/vim-bufferline' | |
Plug 'mileszs/ack.vim' | |
Plug 'Yggdroot/LeaderF', { 'do': '.\install.bat' } | |
" typescript | |
" Plug 'leafgarland/typescript-vim' | |
" Presentation | |
"Plug 'tybenz/vimdeck' | |
"Plug 'inkarkat/vim-SyntaxRange' | |
" scala | |
" Plug 'derekwyatt/vim-scala' | |
" clojure | |
"Plug 'tpope/vim-fireplace' | |
Plug 'tpope/vim-surround' | |
" Plug 'clojure-vim/acid.nvim', { 'do': ':UpdateRemotePlugins' } | |
" rest client | |
Plug 'diepm/vim-rest-console' | |
" Plug 'vim-syntastic/syntastic' replaced by ale | |
Plug 'OmniSharp/omnisharp-vim' | |
Plug 'w0rp/ale' | |
"Plug 'herrbischoff/cobalt2.vim' | |
"Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' } | |
"Plug 'Shougo/denite.nvim' | |
Plug 'alaviss/nim.nvim' | |
Plug 'phpactor/phpactor' , {'do': 'composer install', 'for': 'php'} | |
Plug 'kristijanhusak/deoplete-phpactor' | |
Plug 'morhetz/gruvbox' | |
Plug 'liuchengxu/vista.vim' | |
Plug 'itchyny/lightline.vim' | |
call plug#end() | |
filetype plugin indent on | |
" If there are uninstalled bundles found on startup, | |
" this will conveniently prompt you to install them. | |
" Font and color settings | |
" solarized | |
set background=dark | |
"let g:solarized_termcolors=16 | |
"colorscheme NeoSolarized | |
colorscheme gruvbox | |
" code folding | |
set foldmethod=indent | |
set foldlevel=99 | |
" hilight under cursor | |
set cursorline " enable hilight | |
" hi cursorline cterm=NONE ctermbg=252 | |
" hi cursorcolumn cterm=NONE ctermbg=252 | |
" Complete options (disable preview scratch window) | |
" set completeopt = menu,menuone,longest | |
" SuperTab option for context aware completion | |
" let g:SuperTabDefaultCompletionType='context' | |
" set completeopt=menuone,longest,preview | |
" fzf | |
" set rtp+=~/.fzf | |
" deoplete | |
let g:deoplete#enable_at_startup = 1 | |
" ag | |
if executable('ag') | |
let g:ackprg = 'ag --vimgrep' | |
endif | |
" vista | |
let g:vista#renderer#enable_icon = 0 | |
" move around | |
map <c-j> <c-w>j | |
map <c-k> <c-w>k | |
map <c-l> <c-w>l | |
map <c-h> <c-w>h | |
" keybindings | |
nmap <silent> <F2> :Vista!!<CR> | |
nmap <silent> <F3> :NERDTreeToggle<CR> | |
" formatter | |
"let g:formatter_yapf_style = 'google' | |
" python | |
let g:python_host_prog = 'C:\Python27\python.exe' | |
let g:python3_host_prog = 'c:\Users\Fjr3P\AppData\Local\Programs\Python\Python37\python.exe' | |
let g:deoplete#sources#jedi#enable_typeinfo = 0 | |
" rust | |
let g:formatters_rs = ['c:\Users\Fjr3P\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustfmt'] | |
let g:deoplete#sources#rust#racer_binary = 'c:\Users\Fjr3P\.cargo\bin\racer' | |
let g:deoplete#sources#rust#rust_source_path = 'c:\Users\Fjr3P\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\src\rust\src\' | |
let g:deoplete#sources#rust#show_duplicates = 1 | |
" php | |
let g:neoformat_php_php_beautifier = { | |
\ 'exe': 'php_beautifier', | |
\ 'args': ['--filters "NewLines(before=if:switch:T_CLASS,after=T_COMMENT:function)"'] | |
\ } | |
let g:neoformat_enabled_php = ['php_beautifier'] | |
" dotnet | |
let g:OmniSharp_selector_ui = '' | |
" syntastic | |
"set statusline+=%#warningmsg# | |
"set statusline+=%{SyntasticStatuslineFlag()} | |
"set statusline+=%* | |
"let g:syntastic_always_populate_loc_list = 1 | |
"let g:syntastic_auto_loc_list = 1 | |
"let g:syntastic_check_on_open = 0 | |
"let g:syntastic_check_on_wq = 0 | |
"let g:OmniSharp_server_user_mono = 1 | |
" ale | |
let g:ale_set_highlights = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment