Created
December 14, 2020 21:48
-
-
Save franciscoaguirre/c9979dac083badec18b121753ffad49d to your computer and use it in GitHub Desktop.
Vim configuration
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
| " Plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'dense-analysis/ale' | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'scrooloose/nerdtree' | |
| Plug 'tomtom/tcomment_vim' | |
| Plug 'kien/ctrlp.vim' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'airblade/vim-gitgutter' | |
| Plug 'rust-lang/rust.vim' | |
| Plug 'cespare/vim-toml' | |
| Plug 'ron-rs/ron.vim' | |
| Plug 'patstockwell/vim-monokai-tasty' | |
| call plug#end() | |
| " Basic configuration | |
| set number | |
| let mapleader="," | |
| set timeout timeoutlen=1500 | |
| syntax on | |
| set updatetime=100 | |
| vmap < <gv | |
| vmap > >gv | |
| " Indentation | |
| set tabstop=2 expandtab shiftwidth=2 smarttab | |
| autocmd Filetype python setlocal tabstop=4 expandtab shiftwidth=4 smarttab | |
| " Color Scheme | |
| colorscheme vim-monokai-tasty | |
| " Airline config | |
| let g:airline_theme='monokai_tasty' | |
| " NERDTree config | |
| let NERDTreeShowHidden=1 | |
| let g:NERDTreeChDirMode=2 | |
| autocmd VimEnter * if argc() == 0 | NERDTree | endif | |
| map <C-n> :NERDTreeToggle<CR> | |
| " ALE config | |
| let g:ale_completion_enabled=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment