-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALE Plugin only works if I run :PlugInstall in the current vim session #613
Comments
Please post your Vim configuration file. |
I got the same problem in GVim, tough the problem might be solved using Below is my .gvimrc file content. set nocompatible
set laststatus=2
" ------------------------------
" gui and fonts
" ------------------------------
set guioptions-=T
set lines=40
set columns=100
set guifont=MesloLGM\ Nerd\ Font
" ------------------------------
" set tabs to space
" ------------------------------
set expandtab
set tabstop=4
set softtabstop=0
set shiftwidth=4
" -----------------------------
" set linespace
" -----------------------------
set linespace=0
" -----------------------------
" set splitting settings
" -----------------------------
set splitbelow
set splitright
" =============================
" VimPlug-Bundles
" =============================
call plug#begin('~/.vim/plugged')
" Plug 'Valloric/YouCompleteMe'
" Plug 'sirver/ultisnips'
Plug 'sjl/Gundo.vim'
Plug 'vim-airline/vim-airline'
Plug 'morhetz/gruvbox'
Plug 'mhinz/vim-janah'
Plug 'mhinz/vim-startify'
Plug 'mhinz/vim-signify'
Plug 'myusuf3/numbers.vim'
Plug 'scrooloose/syntastic'
Plug 'honza/vim-snippets'
Plug 'tpope/vim-surround'
Plug 'scrooloose/nerdcommenter'
Plug 'lilydjwg/colorizer'
Plug 'Townk/vim-autoclose'
Plug 'vim-scripts/closetag.vim'
Plug 'wakatime/vim-wakatime'
Plug 'tpope/vim-fugitive'
Plug 'scrooloose/nerdtree'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'airblade/vim-gitgutter'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'reedes/vim-pencil'
Plug 'ryanoasis/vim-devicons'
call plug#end()
" ----------------------------
" Syntax highlighting
" ----------------------------
set background=dark
colorscheme gruvbox
set encoding=utf-8 nobomb
" --- performance / buffer ---
set hidden
set lazyredraw
set ttyfast
" --- history / file handling ---
set history=999
set undolevels=999
set autoread
" -- backup and swap files ---
set nobackup
set nowritebackup
set noswapfile
" --- search ---
set hlsearch
set incsearch
" ============================
" Plugin Settings
" ============================
" ----------------------------
" Airline
" ----------------------------
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#ctrlp#show_adjacent_modes=1
let g:airline#extensions#wordcount#enabled=1
let g:airline#extensions#syntastic#enabled=1
let g:airline#extensons#branch#format=1
let g:airline#extensions#tabline#buffer_idx_mode=1
" ----------------------------
" number
" ----------------------------
let g:numbers_exclude=['tagbar', 'gundo', 'minibufexpl', 'nerdtree']
set number
" ----------------------------
" nerd-commenter
" ----------------------------
let g:NERDSpaceDelims=1
let g:NERDCommentEmptyLines=1
let g:NERDTrimTrailingWhitespace=1
" ----------------------------
" indent guides
" ----------------------------
let g:indent_guides_start_level=2
" ----------------------------
" ultisnips
" ----------------------------
let g:UltiSnipsExpandTrigger="<C-Enter>"
let g:UltiSnipsJumpForwardTrigger="<C-b>"
let g:UltiSnipsJumpBackwardTrigger="<C-l>"
let g:UltiSnipsUsePythonVersion=3
let g:UltiSnipsRemoveSelectModeMappings=0
" ----------------------------
" NerdTree
" ----------------------------
map <C-e> :NERDTreeToggle<CR>
" ----------------------------
" Tagbar
" ----------------------------
nmap <F7> :TagbarToggle<CR>
" ----------------------------
" Gundo
" ----------------------------
nmap <F8> :GundoToggle<CR>
" ----------------------------
" Vim Pencil
" ----------------------------
let g:pencil#WrapModeDefault='soft'
nmap <leader>sp :SoftPencil<CR>
nmap <leader>hp :HardPencil<CR>
" ----------------------------
" ctrlp
" ----------------------------
if isdirectory(expand("~/.vim/bundle/ctrlp.vim"))
let g:ctrlp_working_path_mode='ra'
endif
" ----------------------------
" Translate
" ----------------------------
map <leader>tr :!trans -t id
|
Hey @junegunn thanks for replying, really big fan of your plugins. Did some more digging today and it turns out that your FZF plug also doesn't work until I run :PlugInstall, so it looks like the problem is more generalized than I initially though. Here goes my vimrc:
|
@bencern You have to put plug block in .vimrc not .gvimrc, see #540 (comment) |
@joaqo A common mistake is not having call plug#begin('~/.vim/plugged2')
Plug 'https://github.com/jeetsukumaran/vim-indentwise.git'
Plug 'https://github.com/tpope/vim-fugitive.git'
Plug 'https://github.com/w0rp/ale.git'
let g:ale_statusline_format = ['☀️️ %d', '🕯️ %d', '']
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
nmap <silent> <C-j> <Plug>(ale_next_wrap)
" let g:ale_sign_error = '❌'
" let g:ale_sign_warning = '⭕'
Plug 'https://github.com/JamshedVesuna/vim-markdown-preview.git'
let vim_markdown_preview_github=1
let vim_markdown_preview_toggle=1
let vim_markdown_preview_hotkey='<C-m>'
let vim_markdown_preview_temp_file=1 " <- This may cause crashing on slow browsers
call plug#end() So I believe the problem's caused by some other configuration you have below ( |
Thanks @junegunn , everything work fine after moving those settings into .vimrc |
@junegunn hey you were absolutely right, removing that debian runtime line fixed the problem. Thanks a lot! |
Hi, I've installed several plugins, including the ALE linter on my normal machine. Thats all working fine and I really love vim-plug, but after porting all my setup to a new machine, I've encountered a strange error with vim-plug + ALE linter:
When I open a python file the linter doesn't run. Nevertheless if I run :PlugInstall while on that file, and then close the installer dashboard that pops up telling me everything is already installed, the linter magically starts working in the already open python file
Also, just noticed fugitive doesn't seem to work at all. Though FZF is working fine.
The text was updated successfully, but these errors were encountered: