Created
February 19, 2019 15:09
-
-
Save clasqui/1349cad8ab18802c679a67309e321c85 to your computer and use it in GitHub Desktop.
vim config feina
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
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'itchyny/lightline.vim' | |
Plugin 'dracula/vim' | |
Plugin 'junegunn/fzf' | |
Plugin 'junegunn/fzf.vim' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'terryma/vim-multiple-cursors' | |
Plugin 'tpope/vim-surround' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
" If installed using git | |
set rtp+=/home/linuxbrew/.linuxbrew/opt/fzf/bin/fzf | |
set laststatus=2 | |
set noshowmode | |
if !has('gui_running') | |
set t_Co=256 | |
endif | |
color dracula | |
set number relativenumber | |
augroup numbertoggle | |
autocmd! | |
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber | |
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber | |
augroup END | |
map <C-o> :NERDTreeToggle<CR> | |
map ; :Files<CR> | |
let g:lightline = { | |
\ 'colorscheme': 'wombat', | |
\ 'active': { | |
\ 'left': [ [ 'mode', 'paste' ], | |
\ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] | |
\ }, | |
\ 'component_function': { | |
\ 'gitbranch': 'fugitive#head' | |
\ }, | |
\ } | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment