Last active
September 29, 2023 12:37
-
-
Save sergio-gimenez/7a0ab0e9c113a6008749ebdcccc2b2e8 to your computer and use it in GitHub Desktop.
My vim configuration backup
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
| call plug#begin() | |
| Plug 'preservim/nerdtree' | |
| Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
| Plug 'junegunn/fzf.vim' | |
| Plug 'dense-analysis/ale' | |
| Plug 'itchyny/lightline.vim' | |
| Plug 'tpope/vim-fugitive' | |
| call plug#end() | |
| " Colour lightline bar | |
| set laststatus=2 | |
| " Show line numbers | |
| set number | |
| let g:lightline = { | |
| \ 'colorscheme': 'wombat', | |
| \ 'active': { | |
| \ 'left': [ [ 'mode', 'paste' ], | |
| \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ] | |
| \ }, | |
| \ 'component_function': { | |
| \ 'gitbranch': 'FugitiveHead' | |
| \ }, | |
| \ } | |
| " Mappings to shortcuts: | |
| " ---------------------- | |
| " Map Directory Tree view | |
| map <C-b> :NERDTreeToggle<CR> | |
| " Map fzf plugin | |
| map <C-e> :Files<CR> | |
| "Map Scrolling | |
| map <C-Up> <C-Y> | |
| map <C-Down> <C-E> | |
| let g:ackprg = 'ag --nogroup --nocolor --column' | |
| map <C-S-f> :Ag<CR> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to have vim ready in any machine in 1 minute
Download
vim-plug(plugin manager for vim)Create a
.vimrcfile with the vim configuration. To use mine just copy this gist and paste to a.vimrcfile in your home directory or run in your$HOMEdirectory.:For "search ocurrences in all project" install first silver-searcher first with:
apt-get install silversearcher-agOpen
vimand type:PlugInstall.Ready :)