Last active
February 10, 2024 10:14
-
-
Save btotr/6cf04977888178f1a45b to your computer and use it in GitHub Desktop.
vi config
This file contains 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
syntax on | |
set fileformat=unix | |
set encoding=UTF-8 | |
au BufNewFile,BufRead *.py | |
\ set tabstop=4 | | |
\ set softtabstop=4 | | |
\ set shiftwidth=4 | | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set autoindent | |
set smartindent | |
set smarttab | |
set expandtab | |
set nowrap | |
set list | |
set listchars=eol:.,tab:>-,trail:~,extends:>,precedes:< | |
set cursorline | |
set number | |
set relativenumber | |
set scrolloff=8 | |
set signcolumn=yes | |
set showcmd | |
set noshowmode | |
set conceallevel=1 | |
set shortmess+=c | |
set formatoptions-=cro | |
set noerrorbells visualbell t_vb= | |
set noswapfile | |
set nobackup | |
set undodir=~/.vim/undodir | |
set undofile | |
set clipboard=unnamed | |
set ignorecase | |
set smartcase | |
set incsearch | |
set hlsearch | |
nnoremap <CR> :noh<CR><CR>:<backspace> | |
so ~/.vim/plugins.vim | |
so ~/.vim/plugin-config.vim | |
"so ~/.vim/autoclose.vim | |
set termguicolors | |
let g:gruvbox_italic=1 | |
colorscheme gruvbox | |
set background=dark | |
hi Normal guibg=NONE ctermbg=NONE | |
let g:terminal_ansi_colors = [ | |
\ '#282828', '#cc241d', '#98971a', '#d79921', | |
\ '#458588', '#b16286', '#689d6a', '#a89984', | |
\ '#928374', '#fb4934', '#b8bb26', '#fabd2f', | |
\ '#83a598', '#d3869b', '#8ec07c', '#ebdbb2', | |
\] |
This file contains 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
"-- INDENTLINE CONFIG | |
let g:indentLine_color_gui = '#423d38' | |
let g:indentLine_setConceal = 0 | |
let g:indentLine_char = '|' | |
"-- POLYGLOT CONFIG | |
"js concealing | |
" let g:javascript_conceal_function="ƒ" | |
" let g:javascript_conceal_null="ø" | |
" let g:javascript_conceal_arrow_function="⇒" | |
"-- NERDTree CONFIG | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
let NERDTreeShowHidden=1 | |
let NERDTreeRespectWildIgnore=1 | |
set wildignore+=*.DS_Store,*.min.* | |
" Start NERDTree when Vim is started without file arguments. | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif | |
" Open the existing NERDTree on each new tab. | |
autocmd BufWinEnter * silent NERDTreeMirror | |
"-- TAGBAR CONFIG | |
nmap <F8> :TagbarToggle<CR> | |
" Extend .jsx support | |
let g:tagbar_type_javascriptreact = { | |
\ 'ctagstype': 'javascript', | |
\ 'kinds': [ | |
\ 'A:array', | |
\ 'P:property', | |
\ 'T:tags', | |
\ 'O:objects', | |
\ 'g:generator functions', | |
\ 'f:functions', | |
\ 'c:classes', | |
\ 'm:methods', | |
\ 'V:variables', | |
\ 'I:imports', | |
\ 'E:exports', | |
\ 's:styled components' | |
\ ]} |
This file contains 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('~/.vim/plugged') | |
Plug 'morhetz/gruvbox' | |
Plug 'scrooloose/nerdtree' | |
Plug 'vim-airline/vim-airline' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'mmai/vim-zenmode' | |
call plug#end() | |
"PlugInstall | |
"PlugUpdate | |
"PlugStatus | |
"PlugClean | |
"PlugUpgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
installation notes:
install vim-plug
move plugins.vim and plugin-config.vim into
~/.vim
.vimrc
should be moved to the home directorry (~/
)within vim enter
:PlugInstall