Last active
June 25, 2022 18:44
-
-
Save sidewinder040/70928c46ecd1ca0f0708c45862c2c892 to your computer and use it in GitHub Desktop.
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
colorscheme delek | |
:let mapleader = " " | |
set timeout timeoutlen=500 " Set timeout length to 500 ms | |
function! ToggleLineNumber() | |
if v:version > 703 | |
set norelativenumber! | |
endif | |
set nu! | |
set nonumber! | |
endfunction | |
nnoremap <leader>r :call ToggleLineNumber()<CR> | |
set nu | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
syntax on | |
set smartindent | |
" turn relative line numbers on | |
set relativenumber | |
set rnu | |
" *** Vim Plug *** https://github.com/junegunn/vim-plug | |
" Use command - curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | |
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
" Specify a directory for plugins | |
" - For Neovim: stdpath('data') . '/plugged' | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
Plug 'scrooloose/syntastic' | |
Plug 'valloric/youcompleteme' | |
Plug 'tpope/vim-fugitive' | |
Plug 'powerline/powerline' | |
" Initialize plugin system | |
call plug#end() | |
" Syntastic Config | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
" Powerline Status | |
" Copy /usr/share/powerline/configs to .config/powerline/ | |
python3 from powerline.vim import setup as powerline_setup | |
python3 powerline_setup() | |
python3 del powerline_setup | |
set laststatus=2 " Always display the statusline in all windows | |
set showtabline=2 " Always display the tabline, even if there is only one tab | |
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline) | |
set t_Co=256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment