Created
July 7, 2022 18:20
-
-
Save 0x6675636b796f75676974687562/8115b829700bb4d44ac7ab10a1279a59 to your computer and use it in GitHub Desktop.
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
" | |
" .vimrc | |
" | |
" vim:ft=vim | |
" | |
set nocompatible | |
if &term == "xterm" | |
let &term = "xterm-256color" | |
endif | |
if &t_Co > 2 || has("gui_running") | |
if !exists("syntax_on") | |
syntax on | |
endif | |
set hlsearch | |
endif | |
setglobal fileencoding=UTF-8 | |
set fileencodings=UCS-BOM,UTF-8,KOI8-R | |
set termencoding=UTF-8 | |
set encoding=UTF-8 | |
if has("gui_running") | |
if has("gui_gtk2") | |
" Also Cygwin Vim, GTK+ UI | |
" See http://vim.wikia.com/wiki/Using_the_Windows_clipboard_in_Cygwin_Vim | |
set guifont=Courier\ New\ 12 | |
elseif has("x11") | |
let os = substitute(system('uname -s'), "\n", "", "") | |
if os == "Linux" | |
set guifont=-monotype-courier\ new-semilight-r-normal--*-120-*-*-m-*-iso10646-1 | |
elseif os == "Darwin" | |
set guifont=-ibm-courier-medium-r-normal--*-*-*-*-m-*-iso10646-1 | |
endif | |
elseif has("gui_macvim") | |
set guifont=Courier\ New:h18 | |
set noantialias | |
elseif has("gui_win32") | |
" Native MS-Windows Vim | |
" See http://vim.wikia.com/wiki/VimTip21 | |
lang C | |
" Do not use ~/vimfiles | |
set runtimepath+=~/.vim | |
set packpath+=~/.vim | |
set clipboard=unnamedplus | |
set guioptions+=a | |
set guifont=Courier_New:h12:cRUSSIAN:qNONANTIALIASED | |
setglobal fileencoding=CP1251 | |
set fileencodings=UCS-BOM,UTF-8,CP1251 | |
set termencoding=CP866 | |
endif | |
set guioptions+=beFT | |
if version >= 700 | |
set showtabline=2 | |
set guitablabel=%f | |
endif | |
set nomousehide | |
let c_comment_strings=1 | |
else " gui_running | |
set mouse=a | |
if &term == "linux" | |
\ || &term == "screen.linux" | |
\ || &term == "ansi" | |
\ || &term == "xterm" | |
\ || &term == "xterm-color" | |
\ || &term == "xterm-256color" | |
\ || &term == "screen" | |
\ || &term == "screen.xterm-256color" | |
\ || &term == "dtterm" | |
\ || &term == "kterm" | |
\ || &term == "cygwin" | |
" Linux console, screen, XTerm, DtTerm, Solaris RXVT, Cygwin or MSys | |
if &term == "cygwin" | |
setglobal fileencoding=CP1251 | |
set fileencodings=UCS-BOM,UTF-8,CP1251 | |
set termencoding=CP1251 | |
endif " cygwin | |
elseif &term == "sun-color" | |
" SunOS console | |
elseif has("win32") || has("win16") | |
" Windows console | |
lang C | |
" Do not use ~/vimfiles | |
set runtimepath+=~/.vim | |
set packpath+=~/.vim | |
" `unnamedplus` breaks the console (`vim.exe`) version, | |
" resulting in text being only partially copied to the | |
" clipboard. | |
set clipboard=unnamed | |
setglobal fileencoding=CP1251 | |
set fileencodings=UCS-BOM,UTF-8,CP1251 | |
set termencoding=CP866 | |
colorscheme blue | |
set background=dark | |
else | |
" All other terminals | |
endif | |
" See <https://unix.stackexchange.com/a/57911/94327>. | |
" <C-Z> is the same as <Tab>, except that it doesn't break | |
" the ":emenu Systax.Highlight\ Test" command | |
set wildmenu | |
set wildmode=full | |
set langmenu=en_US | |
source $VIMRUNTIME/menu.vim | |
set wildcharm=<C-Z> | |
map <F10> :emenu <C-Z> | |
imap <F10> <Esc>:emenu <C-Z> | |
endif " gui_running | |
" Indent BEGIN | |
set autoindent | |
set noexpandtab | |
set shiftwidth=8 | |
set smartindent | |
set smarttab | |
set tabstop=8 | |
" Indent END | |
set backspace=indent,eol,start | |
set confirm | |
set errorbells | |
set history=1000 | |
set incsearch | |
set laststatus=2 | |
set modeline | |
set modelines=10 | |
set nowrap | |
set number | |
set ruler | |
set showcmd | |
set visualbell | |
" Vundle BEGIN | |
filetype off " required | |
set runtimepath+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'vim-syntastic/syntastic' | |
Plugin 'preservim/nerdtree' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'uguu-org/vim-matrix-screensaver' | |
Plugin 'udalov/kotlin-vim' | |
Plugin 'editorconfig/editorconfig-vim' | |
Plugin 'godlygeek/tabular' | |
Plugin 'preservim/vim-markdown' | |
Plugin 'timcharper/textile.vim' | |
Plugin 'gu-fan/riv.vim' | |
Plugin 'tpope/vim-speeddating' | |
Plugin 'jceb/vim-orgmode' | |
Plugin 'habamax/vim-asciidoctor' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'altercation/vim-colors-solarized' | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Vundle END | |
" Syntastic BEGIN | |
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 = 0 | |
let g:syntastic_check_on_wq = 1 | |
" Syntastic END | |
" Fugitive BEGIN | |
set statusline+=%{fugitive#statusline()} | |
" Fugitive END | |
" Airline BEGIN | |
if !has("gui_running") | |
" Enable the tabline emulation, | |
" but only in the console mode. | |
let g:airline#extensions#tabline#enabled = 1 | |
endif " gui_running | |
" Airline END | |
" preservim/vim-markdown BEGIN | |
let g:vim_markdown_folding_disabled = 1 | |
" preservim/vim-markdown END | |
if &t_Co > 16 || has("gui_running") | |
colorscheme solarized | |
" Special cases | |
if !has("gui_running") && &term == "xterm-256color" | |
let os = substitute(system('uname -s'), "\n", "", "") | |
if os =~ "^\\(MINGW\\(32\\|64\\)\\|MSYS\\)_NT" | |
" This is either Git Bash, or MinTTY (MinGW or MSys). | |
" Use the `default` colorscheme instead. | |
colorscheme default | |
endif " (MINGW(32|64)|MSYS)_NT | |
if os == "Linux" | |
let kernel_release = substitute(system('uname -r'), "\n", "", "") | |
if kernel_release =~ "-microsoft-standard-WSL" | |
" WSL | |
colorscheme default | |
endif " kernel_release | |
endif " Linux | |
endif " !has("gui_running") && &term == "xterm-256color" | |
set background=light | |
endif | |
if has("python3") && filereadable(expand("~/.vimrc.py")) | |
py3file ~/.vimrc.py | |
endif " python3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment