Advertisement
Vahzel

vimrc

Aug 27th, 2019
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 17.96 KB | None | 0 0
  1. "*****************************************************************************
  2. "" Vim-PLug core
  3. "*****************************************************************************
  4. let vimplug_exists=expand('~/.vim/autoload/plug.vim')
  5.  
  6. let g:vim_bootstrap_langs = "go,html,javascript,lua,php,python,rust"
  7. let g:vim_bootstrap_editor = "vim"              " nvim or vim
  8.  
  9. if !filereadable(vimplug_exists)
  10.   if !executable("curl")
  11.     echoerr "You have to install curl or first install vim-plug yourself!"
  12.     execute "q!"
  13.   endif
  14.   echo "Installing Vim-Plug..."
  15.   echo ""
  16.   silent exec "!\curl -fLo " . vimplug_exists . " --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
  17.   let g:not_finish_vimplug = "yes"
  18.  
  19.   autocmd VimEnter * PlugInstall
  20. endif
  21.  
  22. " Required:
  23. call plug#begin(expand('~/.vim/plugged'))
  24.  
  25. "*****************************************************************************
  26. "" Plug install packages
  27. "*****************************************************************************
  28. Plug 'scrooloose/nerdtree'
  29. Plug 'jistr/vim-nerdtree-tabs'
  30. Plug 'tpope/vim-commentary'
  31. Plug 'tpope/vim-fugitive'
  32. Plug 'vim-airline/vim-airline'
  33. Plug 'vim-airline/vim-airline-themes'
  34. Plug 'airblade/vim-gitgutter'
  35. Plug 'vim-scripts/grep.vim'
  36. Plug 'vim-scripts/CSApprox'
  37. Plug 'Raimondi/delimitMate'
  38. Plug 'majutsushi/tagbar'
  39. Plug 'w0rp/ale'
  40. Plug 'Yggdroot/indentLine'
  41. Plug 'avelino/vim-bootstrap-updater'
  42. Plug 'sheerun/vim-polyglot'
  43. Plug 'tpope/vim-rhubarb' " required by fugitive to :Gbrowse
  44. Plug 'ryanoasis/vim-devicons'
  45.  
  46. if isdirectory('/usr/local/opt/fzf')
  47.   Plug '/usr/local/opt/fzf' | Plug 'junegunn/fzf.vim'
  48. else
  49.   Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
  50.   Plug 'junegunn/fzf.vim'
  51. endif
  52. let g:make = 'gmake'
  53. if exists('make')
  54.         let g:make = 'make'
  55. endif
  56. Plug 'Shougo/vimproc.vim', {'do': g:make}
  57.  
  58. "" Vim-Session
  59. Plug 'xolox/vim-misc'
  60. Plug 'xolox/vim-session'
  61.  
  62. "" Snippets
  63. Plug 'SirVer/ultisnips'
  64. Plug 'honza/vim-snippets'
  65.  
  66. "" Color
  67. Plug 'challenger-deep-theme/vim'
  68.  
  69. "*****************************************************************************
  70. "" Custom bundles
  71. "*****************************************************************************
  72.  
  73. " go
  74. "" Go Lang Bundle
  75. Plug 'fatih/vim-go', {'do': ':GoInstallBinaries'}
  76.  
  77.  
  78. " html
  79. "" HTML Bundle
  80. Plug 'hail2u/vim-css3-syntax'
  81. Plug 'gorodinskiy/vim-coloresque'
  82. Plug 'tpope/vim-haml'
  83. Plug 'mattn/emmet-vim'
  84.  
  85.  
  86. " javascript
  87. "" Javascript Bundle
  88. Plug 'jelera/vim-javascript-syntax'
  89.  
  90.  
  91. " lua
  92. "" Lua Bundle
  93. Plug 'xolox/vim-lua-ftplugin'
  94. Plug 'xolox/vim-lua-inspect'
  95.  
  96.  
  97. " php
  98. "" PHP Bundle
  99. Plug 'arnaud-lb/vim-php-namespace'
  100.  
  101.  
  102. " python
  103. "" Python Bundle
  104. Plug 'davidhalter/jedi-vim'
  105. Plug 'raimon49/requirements.txt.vim', {'for': 'requirements'}
  106.  
  107.  
  108. " rust
  109. " Vim racer
  110. Plug 'racer-rust/vim-racer'
  111.  
  112. " Rust.vim
  113. Plug 'rust-lang/rust.vim'
  114.  
  115.  
  116. " vuejs
  117. Plug 'posva/vim-vue'
  118. Plug 'leafOfTree/vim-vue-plugin'
  119.  
  120.  
  121.  
  122. "*****************************************************************************
  123. "*****************************************************************************
  124.  
  125. "" Include user's extra bundle
  126. if filereadable(expand("~/.vimrc.local.bundles"))
  127.  source ~/.vimrc.local.bundles
  128. endif
  129.  
  130. call plug#end()
  131.  
  132. " Required:
  133. filetype plugin indent on
  134.  
  135.  
  136. "*****************************************************************************
  137. "" Basic Setup
  138. "*****************************************************************************"
  139. "" Encoding
  140. set encoding=utf-8
  141. "set fileencoding=utf-8
  142. set fileencodings=utf-8
  143. set ttyfast
  144. set nomodeline
  145.  
  146. "" Fix backspace indent
  147. set backspace=indent,eol,start
  148.  
  149. "" Tabs. May be overridden by autocmd rules
  150. set tabstop=4
  151. set softtabstop=0
  152. set shiftwidth=4
  153. set expandtab
  154.  
  155. "" Map leader to ,
  156. let mapleader=','
  157.  
  158. "" Enable hidden buffers
  159. set hidden
  160.  
  161. "" Searching
  162. set hlsearch
  163. set incsearch
  164. set ignorecase
  165. set smartcase
  166.  
  167. set fileformats=unix,dos,mac
  168.  
  169. if exists('$SHELL')
  170.    set shell=$SHELL
  171. else
  172.    set shell=/bin/sh
  173. endif
  174.  
  175. " session management
  176. let g:session_directory = "~/.vim/session"
  177. let g:session_autoload = "no"
  178. let g:session_autosave = "no"
  179. let g:session_command_aliases = 1
  180.  
  181. "*****************************************************************************
  182. "" Visual Settings
  183. "*****************************************************************************
  184. syntax on
  185. set ruler
  186. set number
  187.  
  188. let no_buffers_menu=1
  189. silent! colorscheme challenger_deep
  190.  
  191. if has('nvim') || has('termguicolors')
  192.  set termguicolors
  193. endif
  194.  
  195. set mousemodel=popup
  196. set t_Co=256
  197. set guioptions=egmrti
  198. "set guifont=FantasqueSansMono\ Nerd\ Font\ 10
  199. set guifont=Monospace\ 10
  200. if has("gui_running")
  201.  if has("gui_mac") || has("gui_macvim")
  202.    set guifont=Menlo:h10
  203.    set transparency=7
  204.  endif
  205. else
  206.  
  207.  
  208.  
  209.  let g:CSApprox_loaded = 1
  210.  
  211.  " IndentLine
  212.  let g:indentLine_enabled = 1
  213.  let g:indentLine_concealcursor = 0
  214.  let g:indentLine_char = ''
  215.  let g:indentLine_faster = 1
  216.  
  217.  
  218.  if $COLORTERM == 'gnome-terminal'
  219.    set term=gnome-256color
  220.  else
  221.    if $TERM == 'xterm'
  222.      set term=xterm-256color
  223.    endif
  224.  endif
  225.  
  226. endif
  227.  
  228.  
  229. if &term =~ '256color'
  230.  set t_ut=
  231. endif
  232.  
  233.  
  234. "" Disable the blinking cursor.
  235. set gcr=a:blinkon0
  236. set scrolloff=3
  237.  
  238. "" Status bar
  239. set laststatus=2
  240.  
  241. "" Use modeline overrides
  242. set modeline
  243. set modelines=10
  244.  
  245. set title
  246. set titleold="Terminal"
  247. set titlestring=%F
  248.  
  249. set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)\
  250.  
  251. " Search mappings: These will make it so that going to the next one in a
  252. " search will center on the line it's found in.
  253. nnoremap n nzzzv
  254. nnoremap N Nzzzv
  255.  
  256. if exists("*fugitive#statusline")
  257.   set statusline+=%{fugitive#statusline()}
  258. endif
  259.  
  260. " vim-airline
  261. let g:airline_theme = 'onedark' "similar to schemecolor hybrid, dracula
  262. let g:airline#extensions#branch#enabled = 1
  263. let g:airline#extensions#ale#enabled = 1
  264. let g:airline#extensions#tabline#enabled = 1
  265. let g:airline#extensions#tagbar#enabled = 1
  266. let g:airline_skip_empty_sections = 1
  267. let g:airline#extensions#tabline#formatter = 'unique_tail'
  268.  
  269. "*****************************************************************************
  270. "" Abbreviations
  271. "*****************************************************************************
  272. "" no one is really happy until you have this shortcuts
  273. cnoreabbrev W! w!
  274. cnoreabbrev Q! q!
  275. cnoreabbrev Qall! qall!
  276. cnoreabbrev Wq wq
  277. cnoreabbrev Wa wa
  278. cnoreabbrev wQ wq
  279. cnoreabbrev WQ wq
  280. cnoreabbrev W w
  281. cnoreabbrev Q q
  282. cnoreabbrev Qall qall
  283.  
  284. "" NERDTree configuration
  285. let g:NERDTreeChDirMode=2
  286. let g:NERDTreeIgnore=['\.rbc$', '\~$', '\.pyc$', '\.db$', '\.sqlite$', '__pycache__']
  287. let g:NERDTreeSortOrder=['^__\.py$', '\/$', '*', '\.swp$', '\.bak$', '\~$']
  288. let g:NERDTreeShowBookmarks=1
  289. let g:nerdtree_tabs_focus_on_files=1
  290. let g:NERDTreeMapOpenInTabSilent = '<RightMouse>'
  291. let g:NERDTreeWinSize = 50
  292. set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.db,*.sqlite
  293. nnoremap <silent> <F2> :NERDTreeFind<CR>
  294. nnoremap <silent> <F3> :NERDTreeToggle<CR>
  295.  
  296. " grep.vim
  297. nnoremap <silent> <leader>f :Rgrep<CR>
  298. let Grep_Default_Options = '-IR'
  299. let Grep_Skip_Files = '*.log *.db'
  300. let Grep_Skip_Dirs = '.git node_modules'
  301.  
  302. " terminal emulation
  303. nnoremap <silent> <leader>sh :terminal<CR>
  304.  
  305.  
  306. "*****************************************************************************
  307. "" Commands
  308. "*****************************************************************************
  309. " remove trailing whitespaces
  310. command! FixWhitespace :%s/\s\+$//e
  311.  
  312. "*****************************************************************************
  313. "" Functions
  314. "*****************************************************************************
  315. if !exists('*s:setupWrapping')
  316.   function s:setupWrapping()
  317.     set wrap
  318.     set wm=2
  319.     set textwidth=79
  320.   endfunction
  321. endif
  322.  
  323. "*****************************************************************************
  324. "" Autocmd Rules
  325. "*****************************************************************************
  326. "" The PC is fast enough, do syntax highlight syncing from start unless 200 lines
  327. augroup vimrc-sync-fromstart
  328.   autocmd!
  329.   autocmd BufEnter * :syntax sync maxlines=200
  330. augroup END
  331.  
  332. "" Remember cursor position
  333. augroup vimrc-remember-cursor-position
  334.   autocmd!
  335.   autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
  336. augroup END
  337.  
  338. "" txt
  339. augroup vimrc-wrapping
  340.   autocmd!
  341.   autocmd BufRead,BufNewFile *.txt call s:setupWrapping()
  342. augroup END
  343.  
  344. "" make/cmake
  345. augroup vimrc-make-cmake
  346.   autocmd!
  347.   autocmd FileType make setlocal noexpandtab
  348.   autocmd BufNewFile,BufRead CMakeLists.txt setlocal filetype=cmake
  349. augroup END
  350.  
  351. set autoread
  352.  
  353. "*****************************************************************************
  354. "" Mappings
  355. "*****************************************************************************
  356.  
  357. "" Split
  358. noremap <Leader>h :<C-u>split<CR>
  359. noremap <Leader>v :<C-u>vsplit<CR>
  360.  
  361. "" Git
  362. noremap <Leader>ga :Gwrite<CR>
  363. noremap <Leader>gc :Gcommit<CR>
  364. noremap <Leader>gsh :Gpush<CR>
  365. noremap <Leader>gll :Gpull<CR>
  366. noremap <Leader>gs :Gstatus<CR>
  367. noremap <Leader>gb :Gblame<CR>
  368. noremap <Leader>gd :Gvdiff<CR>
  369. noremap <Leader>gr :Gremove<CR>
  370.  
  371. " session management
  372. nnoremap <leader>so :OpenSession<Space>
  373. nnoremap <leader>ss :SaveSession<Space>
  374. nnoremap <leader>sd :DeleteSession<CR>
  375. nnoremap <leader>sc :CloseSession<CR>
  376.  
  377. "" Tabs
  378. nnoremap <Tab> gt
  379. nnoremap <S-Tab> gT
  380. nnoremap <silent> <S-t> :tabnew<CR>
  381.  
  382. "" Set working directory
  383. nnoremap <leader>. :lcd %:p:h<CR>
  384.  
  385. "" Opens an edit command with the path of the currently edited file filled in
  386. noremap <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
  387.  
  388. "" Opens a tab edit command with the path of the currently edited file filled
  389. noremap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>
  390.  
  391. "" fzf.vim
  392. set wildmode=list:longest,list:full
  393. set wildignore+=*.o,*.obj,.git,*.rbc,*.pyc,__pycache__
  394. let $FZF_DEFAULT_COMMAND =  "find * -path '*/\.*' -prune -o -path 'node_modules/**' -prune -o -path 'target/**' -prune -o -path 'dist/**' -prune -o  -type f -print -o -type l -print 2> /dev/null"
  395.  
  396. " The Silver Searcher
  397. if executable('ag')
  398.   let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -g ""'
  399.   set grepprg=ag\ --nogroup\ --nocolor
  400. endif
  401.  
  402. " ripgrep
  403. if executable('rg')
  404.   let $FZF_DEFAULT_COMMAND = 'rg --files --hidden --follow --glob "!.git/*"'
  405.   set grepprg=rg\ --vimgrep
  406.   command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>).'| tr -d "\017"', 1, <bang>0)
  407. endif
  408.  
  409. cnoremap <C-P> <C-R>=expand("%:p:h") . "/" <CR>
  410. nnoremap <silent> <leader>b :Buffers<CR>
  411. nnoremap <silent> <leader>e :FZF -m<CR>
  412. "Recovery commands from history through FZF
  413. nmap <leader>y :History:<CR>
  414.  
  415. " snippets
  416. let g:UltiSnipsExpandTrigger="<tab>"
  417. let g:UltiSnipsJumpForwardTrigger="<tab>"
  418. let g:UltiSnipsJumpBackwardTrigger="<c-b>"
  419. let g:UltiSnipsEditSplit="vertical"
  420.  
  421. " ale
  422. let g:ale_linters = {}
  423.  
  424. " Tagbar
  425. nmap <silent> <F4> :TagbarToggle<CR>
  426. let g:tagbar_autofocus = 1
  427.  
  428. " Disable visualbell
  429. set noerrorbells visualbell t_vb=
  430. if has('autocmd')
  431.   autocmd GUIEnter * set visualbell t_vb=
  432. endif
  433.  
  434. "" Copy/Paste/Cut
  435. if has('unnamedplus')
  436.   set clipboard=unnamed,unnamedplus
  437. endif
  438.  
  439. noremap YY "+y<CR>
  440. noremap <leader>p "+gP<CR>
  441. noremap XX "+x<CR>
  442.  
  443. if has('macunix')
  444.   " pbcopy for OSX copy/paste
  445.   vmap <C-x> :!pbcopy<CR>
  446.   vmap <C-c> :w !pbcopy<CR><CR>
  447. endif
  448.  
  449. "" Buffer nav
  450. noremap <leader>z :bp<CR>
  451. noremap <leader>q :bp<CR>
  452. noremap <leader>x :bn<CR>
  453. noremap <leader>w :bn<CR>
  454.  
  455. "" Close buffer
  456. noremap <leader>c :bd<CR>
  457.  
  458. "" Clean search (highlight)
  459. nnoremap <silent> <leader><space> :noh<cr>
  460.  
  461. "" Switching windows
  462. noremap <C-j> <C-w>j
  463. noremap <C-k> <C-w>k
  464. noremap <C-l> <C-w>l
  465. noremap <C-h> <C-w>h
  466.  
  467. "" Vmap for maintain Visual Mode after shifting > and <
  468. vmap < <gv
  469. vmap > >gv
  470.  
  471. "" Move visual block
  472. vnoremap J :m '>+1<CR>gv=gv
  473. vnoremap K :m '<-2<CR>gv=gv
  474.  
  475. "" Open current line on GitHub
  476. nnoremap <Leader>o :.Gbrowse<CR>
  477.  
  478. "*****************************************************************************
  479. "" Custom configs
  480. "*****************************************************************************
  481.  
  482. " go
  483. " vim-go
  484. " run :GoBuild or :GoTestCompile based on the go file
  485. function! s:build_go_files()
  486.   let l:file = expand('%')
  487.   if l:file =~# '^\f\+_test\.go$'
  488.     call go#test#Test(0, 1)
  489.   elseif l:file =~# '^\f\+\.go$'
  490.     call go#cmd#Build(0)
  491.   endif
  492. endfunction
  493.  
  494. let g:go_list_type = "quickfix"
  495. let g:go_fmt_command = "goimports"
  496. let g:go_fmt_fail_silently = 1
  497.  
  498. let g:go_highlight_types = 1
  499. let g:go_highlight_fields = 1
  500. let g:go_highlight_functions = 1
  501. let g:go_highlight_methods = 1
  502. let g:go_highlight_operators = 1
  503. let g:go_highlight_build_constraints = 1
  504. let g:go_highlight_structs = 1
  505. let g:go_highlight_generate_tags = 1
  506. let g:go_highlight_space_tab_error = 0
  507. let g:go_highlight_array_whitespace_error = 0
  508. let g:go_highlight_trailing_whitespace_error = 0
  509. let g:go_highlight_extra_types = 1
  510.  
  511. autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4 softtabstop=4
  512.  
  513. augroup completion_preview_close
  514.   autocmd!
  515.   if v:version > 703 || v:version == 703 && has('patch598')
  516.     autocmd CompleteDone * if !&previewwindow && &completeopt =~ 'preview' | silent! pclose | endif
  517.   endif
  518. augroup END
  519.  
  520. augroup go
  521.  
  522.   au!
  523.   au Filetype go command! -bang A call go#alternate#Switch(<bang>0, 'edit')
  524.   au Filetype go command! -bang AV call go#alternate#Switch(<bang>0, 'vsplit')
  525.   au Filetype go command! -bang AS call go#alternate#Switch(<bang>0, 'split')
  526.   au Filetype go command! -bang AT call go#alternate#Switch(<bang>0, 'tabe')
  527.  
  528.   au FileType go nmap <Leader>dd <Plug>(go-def-vertical)
  529.   au FileType go nmap <Leader>dv <Plug>(go-doc-vertical)
  530.   au FileType go nmap <Leader>db <Plug>(go-doc-browser)
  531.  
  532.   au FileType go nmap <leader>r  <Plug>(go-run)
  533.   au FileType go nmap <leader>t  <Plug>(go-test)
  534.   au FileType go nmap <Leader>gt <Plug>(go-coverage-toggle)
  535.   au FileType go nmap <Leader>i <Plug>(go-info)
  536.   au FileType go nmap <silent> <Leader>l <Plug>(go-metalinter)
  537.   au FileType go nmap <C-g> :GoDecls<cr>
  538.   au FileType go nmap <leader>dr :GoDeclsDir<cr>
  539.   au FileType go imap <C-g> <esc>:<C-u>GoDecls<cr>
  540.   au FileType go imap <leader>dr <esc>:<C-u>GoDeclsDir<cr>
  541.   au FileType go nmap <leader>rb :<C-u>call <SID>build_go_files()<CR>
  542.  
  543. augroup END
  544.  
  545. " ale
  546. :call extend(g:ale_linters, {
  547.     \"go": ['golint', 'go vet'], })
  548.  
  549.  
  550. " html
  551. " for html files, 2 spaces
  552. autocmd Filetype html setlocal ts=2 sw=2 expandtab
  553.  
  554. " Native autocomplete
  555. filetype plugin on
  556. set omnifunc=syntaxcomplete#Complete
  557.  
  558. " javascript
  559. let g:javascript_enable_domhtmlcss = 1
  560.  
  561. " vim-javascript
  562. augroup vimrc-javascript
  563.   autocmd!
  564.   autocmd FileType javascript setl tabstop=4|setl shiftwidth=4|setl expandtab softtabstop=4
  565. augroup END
  566.  
  567.  
  568. " lua
  569.  
  570.  
  571. " php
  572.  
  573.  
  574. " python
  575. " vim-python
  576. augroup vimrc-python
  577.   autocmd!
  578.   autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=8 colorcolumn=79
  579.       \ formatoptions+=croq softtabstop=4
  580.       \ cinwords=if,elif,else,for,while,try,except,finally,def,class,with
  581. augroup END
  582.  
  583. " jedi-vim
  584. let g:jedi#popup_on_dot = 0
  585. let g:jedi#goto_assignments_command = "<leader>g"
  586. let g:jedi#goto_definitions_command = "<leader>d"
  587. let g:jedi#documentation_command = "K"
  588. let g:jedi#usages_command = "<leader>n"
  589. let g:jedi#rename_command = "<leader>r"
  590. let g:jedi#show_call_signatures = "0"
  591. let g:jedi#completions_command = "<C-Space>"
  592. let g:jedi#smart_auto_mappings = 0
  593.  
  594. " ale
  595. :call extend(g:ale_linters, {
  596.     \'python': ['flake8'], })
  597.  
  598. " vim-airline
  599. let g:airline#extensions#virtualenv#enabled = 1
  600.  
  601. " Syntax highlight
  602. " Default highlight is better than polyglot
  603. let g:polyglot_disabled = ['python']
  604. let python_highlight_all = 1
  605.  
  606.  
  607. " rust
  608. " Vim racer
  609. au FileType rust nmap gd <Plug>(rust-def)
  610. au FileType rust nmap gs <Plug>(rust-def-split)
  611. au FileType rust nmap gx <Plug>(rust-def-vertical)
  612. au FileType rust nmap <leader>gd <Plug>(rust-doc)
  613.  
  614.  
  615.  
  616. " vuejs
  617. " vim vue
  618. let g:vue_disable_pre_processors=1
  619. " vim vue plugin
  620. let g:vim_vue_plugin_load_full_syntax = 1
  621.  
  622.  
  623. "*****************************************************************************
  624. "*****************************************************************************
  625.  
  626. "" Include user's local vim config
  627. if filereadable(expand("~/.vimrc.local"))
  628.  source ~/.vimrc.local
  629. endif
  630.  
  631. "*****************************************************************************
  632. "" Convenience variables
  633. "*****************************************************************************
  634.  
  635. "*****************************************************************************
  636. "" Convenience variables
  637. "*****************************************************************************
  638.  
  639. " vim-airline
  640. if !exists('g:airline_symbols')
  641.  let g:airline_symbols = {}
  642.  
  643. endif
  644.  
  645. if !exists('g:airline_powerline_fonts')
  646.  let g:airline#extensions#tabline#left_sep = ' '
  647.  let g:airline#extensions#tabline#left_alt_sep = '|'
  648.  let g:airline_left_sep          = ''
  649.  let g:airline_left_alt_sep      = '»'
  650.  let g:airline_right_sep         = ''
  651.  let g:airline_right_alt_sep     = '«'
  652.  let g:airline#extensions#branch#prefix     = '' "➔, ➥, ⎇
  653.  let g:airline#extensions#readonly#symbol   = ''
  654.  let g:airline#extensions#linecolumn#prefix = ''
  655.  let g:airline#extensions#paste#symbol      = 'ρ'
  656.  let g:airline_symbols.linenr    = ''
  657.  let g:airline_symbols.branch    = ''
  658.  let g:airline_symbols.paste     = 'ρ'
  659.  let g:airline_symbols.paste     = 'Þ'
  660.  let g:airline_symbols.paste     = ''
  661.  let g:airline_symbols.whitespace = 'Ξ'
  662. else
  663.  let g:airline#extensions#tabline#left_sep = ''
  664.  let g:airline#extensions#tabline#left_alt_sep = ''
  665.  
  666.  " powerline symbols
  667.  let g:airline_left_sep = ''
  668.  let g:airline_left_alt_sep = ''
  669.  let g:airline_right_sep = ''
  670.  let g:airline_right_alt_sep = ''
  671.  let g:airline_symbols.branch = ''
  672.  let g:airline_symbols.readonly = ''
  673.  let g:airline_symbols.linenr = ''
  674. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement