Last active
October 31, 2024 17:45
-
-
Save glektarssza/b14d203ee86781d769d57781862ca4d3 to your computer and use it in GitHub Desktop.
Vim Configuration
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
set nocompatible | |
filetype off | |
set packpath^=~/.vim | |
set runtimepath^=~/.vim | |
execute pathogen#infect() | |
set encoding=utf-8 | |
set fileformats=unix | |
filetype plugin indent on | |
set updatetime=300 | |
set signcolumn=yes | |
let g:load_doxygen_syntax = 1 | |
if (empty($TMUX)) | |
if (has("nvim")) | |
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
endif | |
if (has("termguicolors")) | |
set termguicolors | |
endif | |
endif | |
if (has("autocmd") && !has("gui_running")) | |
augroup colorset | |
autocmd! | |
let s:white = { "gui": "#ABB2BF", "cterm": "145", "cterm16": "7" } | |
autocmd ColorScheme * call onedark#set_highlight("Normal", { "fg": s:white }) | |
autocmd ColorScheme * call onedark#set_highlight("Terminal", { "fg": s:white }) | |
augroup END | |
endif | |
set background=dark | |
let g:onedark_hide_endofbuffer = 1 | |
let g:onedark_termcolors = 256 | |
let g:onedark_terminal_italics = 1 | |
let g:ycm_python_interpreter_path = '~/scoop/apps/python/current/python.exe' | |
syntax on | |
colorscheme onedark | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set showcmd | |
set backspace=indent,eol,start | |
set nostartofline | |
set ruler | |
set wildmenu | |
set colorcolumn=80,120 | |
map <C-o> :NERDTreeToggle<CR> | |
let g:lightline = { | |
\ 'colorscheme': 'onedark', | |
\ } | |
if (has("autocmd")) | |
autocmd FileType c,cpp ClangFormatAutoEnable | |
endif | |
function Dos2Unix() | |
e ++ff=dos | |
set ff=unix | |
endfunction |
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
https://github.com/itchyny/lightline.vim.git | |
https://github.com/preservim/nerdtree.git | |
https://github.com/Xuyuanp/nerdtree-git-plugin.git | |
https://github.com/joshdick/onedark.vim.git | |
https://github.com/airblade/vim-gitgutter.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment