S
S
shrug2282021-09-12 01:01:13
vim
shrug228, 2021-09-12 01:01:13

How to install and configure airline?

Good evening. Sorry for the stupid question, but I literally went to vim for the first time. Tried to install airline but instead

something like that
68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313830333939372f3835353836372f65393465353432382d663533302d313165322d383039372d6663636161376664666136362e676966
got
This
KgwI4K8.png
. Looking in
:scriptnames
0rsJqyu.png
I didn’t find an airline there and, accordingly, I assume that I’m installing the plugin somehow incorrectly. Config below.
set encoding=utf-8
set nocompatible
set cursorline
set number
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set smartindent
highlight lCursor guifg=NONE guibg=Cyan
filetype plugin indent on
syntax enable

"Установка vim.plug
if empty(glob('~/.vim/autoload/plug.vim')) 
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs 
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 
  autocmd VimEnter * PlugInstall --sync | source 
endif

call plug#begin('~/.vim/bundle') "Тут описаны плагины
Plug 'vim-airline/vim-airline'
call plug#end() 

"Кастомизация airline
let g:airline_powerline_fonts = 1 
let g:airline#extensions#keymap#enabled = 0
let g:airline_section_z = "\ue0a1:%l/%L Col:%c" 
let g:Powerline_symbols='unicode'
let g:airline#extensions#xkblayout#enabled = 0

"Установка темы
set encoding=utf-8
set nocompatible
set cursorline
set number
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=0
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set smartindent
highlight lCursor guifg=NONE guibg=Cyan
filetype plugin indent on
syntax enable

if empty(glob('~/.vim/autoload/plug.vim')) 
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs 
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 
  autocmd VimEnter * PlugInstall --sync | source 
endif

call plug#begin('~/.vim/bundle')
Plug 'vim-airline/vim-airline'
call plug#end() 

let g:airline_powerline_fonts = 1 
let g:airline#extensions#keymap#enabled = 0
let g:airline_section_z = "\ue0a1:%l/%L Col:%c" 
let g:Powerline_symbols='unicode'
let g:airline#extensions#xkblayout#enabled = 0

colorscheme gruvbox

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question