Created
May 29, 2021 21:09
-
-
Save AlphaLawless/a94e78a12d2707b7c9db90ff6eace51b to your computer and use it in GitHub Desktop.
My vimrc config
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
"INDENTION OPTIONS// | |
set autoindent " New lines inherit the indentation of previous lines. | |
set expandtab " Convert tabs to spaces. | |
set shiftround " When shifting lines, round the indentation to the nearest multiple of shiftwidth. | |
set shiftwidth=2 " When shifting, indent using two spaces. | |
set smarttab " Insert tabstop number of spaces when the tab key is pressed. | |
set tabstop=2 " Insert using 2 spaces. | |
filetype plugin indent on " Enable indentation rules that are file-type specific. | |
" SEARCH OPTIONS// | |
set hlsearch " Enable search highlighting. | |
set ignorecase " Ignore case when searching. | |
set incsearch " Incremental search that shows partial matches. | |
set smartcase " Automatically switch search to case-sensitive when search query contains an uppercase letter. | |
" PERFOMANCE OPTIONS// | |
set complete-=i " Limit the files searched for auto-completes. | |
set lazyredraw " Don't update scren during macro and script execution. | |
" TEXT RENDERING OPTIONS// | |
set display+=lastline " Always try to show a paragraph's last line. | |
set encoding=utf-8 " Use an encoding that support unicode. | |
"set linebreak " Avoid wrapping a line in the middle of a word. | |
set scrolloff=1 " The number of screen lines to keep above and below the cursor. | |
set sidescrolloff=5 " The number of screen columns to keep to the left and right of the cursor. | |
set wrap " Enable line wrapping. | |
syntax enable " Enable syntax highlighting. | |
syntax on " Enable the syntax. | |
" USER INTERFACE OPTIONS// | |
set laststatus=2 " Always display the status bar. | |
set ruler " Always show cursor position. | |
set wildmenu " Display command line's tab complete options as a menu. | |
set number " Show line numbers on the sidebar. | |
set cursorline " Highlight the line currently under cursor. | |
set mouse=a " Enable mouse for scrolling and resizing. | |
set nowrap | |
set showmatch | |
" CODE FOLDING OPTIONS// | |
"set foldmethod=indent Fold based on indention levels. | |
"set foldnestmax=99 Only ninety nine fold up to three nested levels. | |
" ANOTHER OPTIONS// | |
set guifont=DroidSansMono\ Nerd\ Font\ Mono:h12 " font to Dev icons. | |
set clipboard=unnamedplus | |
set t_Co=256 | |
highlight ColorColumn ctermbg=DarkMagenta guibg=#302442 | |
if exists('+colorcolumn') | |
set colorcolumn=140 | |
else | |
au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80va.\+', -1) | |
endif | |
" KEYS MAP OPTIONS// | |
let g:indentLine_enabled=0 | |
let g:NERDSpaceDelims=1 | |
let g:NERDDefaultAlign='left' | |
" AIRLINE OPTIONS// | |
let g:airline_theme='dracula' | |
let g:airline#extensions#tabline#enabled=1 | |
let g:airline#extensions#tabline#formatter='default' | |
let g:airline_powerline_fonts=1 | |
let g:airline_statusline_ontop=0 | |
set laststatus=2 | |
" NAVEGATIONS OPTIONS// | |
map <c-k>i :IndentLinesToggle<cr> | |
map cc <Plug>NERDCommenterInvert | |
map <C-n> :NERDTreeToggle<cr> | |
" NAVEGATIONS BETWEEN BUFFERS// | |
nnoremap <M-Right> :bn<cr> | |
nnoremap <M-Left> :bp<cr> | |
nnoremap <C-x> :bp \| bd #<cr> | |
" VIM CTRLP// | |
let g:ctrlp_custom_ignore = 'v[ /] .(swp|zip)$' | |
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] | |
let g:ctrlp_show_hidden = 1 | |
" VIM ALE (Eslint)// | |
let g:ale_linters = { | |
\ 'python': ['flake8', 'pylint' ], | |
\ 'javascript': ['eslint'] | |
\} | |
let g:ale_completion_enabled=0 | |
"THEME OPTIONS// | |
packadd! dracula | |
colorscheme dracula | |
" MISCELLANEOUS OPTIONS// | |
"set shell " The shell used to execute commands. | |
set history=1000 " Increase the undo limit. | |
" PATH$// | |
source ~/.vim/coc.nvimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment