Last active
September 18, 2025 01:29
-
-
Save thadeu/191f1b2444b519c6f3678b0dfaaf702e to your computer and use it in GitHub Desktop.
Basic ~/.vimrc to EC2
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() | |
| " List your plugins here | |
| Plug 'tpope/vim-sensible' | |
| Plug 'morhetz/gruvbox' | |
| Plug 'dracula/vim', { 'name': 'dracula' } | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'ghifarit53/tokyonight-vim' | |
| call plug#end() | |
| set termguicolors | |
| let g:tokyonight_style = 'night' " available: night, storm | |
| let g:tokyonight_enable_italic = 1 | |
| colorscheme tokyonight | |
| " colorscheme dracula | |
| " colorscheme gruvbox | |
| " Disable compatibility with vi, enabling modern Vim features | |
| set nocompatible | |
| " Enable syntax highlighting | |
| syntax on | |
| " Display line numbers | |
| set number | |
| " Set tab-related options for consistent indentation | |
| set tabstop=2 " Number of spaces a tab character represents | |
| set shiftwidth=2 " Number of spaces to use for autoindent | |
| set expandtab " Convert tabs to spaces | |
| set autoindent " Copy indent from previous line | |
| set copyindent | |
| " Do not save backup files. | |
| set nobackup | |
| " Ignore capital letters during search. | |
| set ignorecase | |
| " Show the mode you are on the last line. | |
| set showmode | |
| " Show matching words during a search. | |
| set showmatch | |
| " Set the commands to save in history default number is 20. | |
| set history=1000 | |
| " Enable mouse support in all modes | |
| set mouse=a | |
| " Highlight the current line | |
| set cursorline | |
| " Enable searching features | |
| set incsearch " Show search results as you type | |
| set hlsearch " Highlight all search matches | |
| " Improve the command line experience | |
| set wildmenu " Display command line's tab complete options as a menu | |
| set laststatus=2 " Always display the status line | |
| " Make wildmenu behave like similar to Bash completion. | |
| set wildmode=list:longest | |
| " There are certain files that we would never want to edit with Vim. | |
| " Wildmenu will ignore files with these extensions. | |
| set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx | |
| " Set background color scheme (e.g., for dark terminals) | |
| set background=dark |
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
| curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| :PlugInstall |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment