Last active
August 24, 2024 09:08
-
-
Save andybp85/e5075c69d45c6d8d012ea89199935ea6 to your computer and use it in GitHub Desktop.
vim config 2024. needs vim-plug
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 nocompatible | |
set encoding=utf-8 | |
set ffs=unix,dos,mac | |
set number | |
set relativenumber | |
set ruler | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set cursorline | |
hi CursorLine term=bold cterm=bold guibg=Grey40 | |
set lazyredraw | |
set backspace=indent,eol,start | |
set copyindent | |
set shiftround | |
set showmatch | |
set smartcase | |
set hlsearch | |
set incsearch | |
set modelines=1 | |
set showcmd | |
set ttimeout | |
set timeoutlen=1000 ttimeoutlen=0 | |
set mouse=a | |
set colorcolumn=120 | |
set wildmode=longest,list,full | |
set wildmenu | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip | |
set backup | |
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set backupskip=/tmp/*,/private/tmp/* | |
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set writebackup | |
set conceallevel=1 | |
let mapleader=" " | |
cnoreabbrev W w | |
cnoreabbrev Q q | |
cnoreabbrev Wq wq | |
cnoreabbrev WQ wq | |
nmap <leader>w :w!<cr> | |
nmap <leader>q :q<cr> | |
nmap <leader>wa :wa<cr> | |
nmap <leader>wq :wq<cr> | |
nmap <leader>qa :qa<cr> | |
nmap <leader>wqa :wqa<cr> | |
call plug#begin() | |
Plug 'tpope/vim-sensible' | |
Plug 'phanviet/vim-monokai-pro' | |
Plug 'kien/rainbow_parentheses.vim' | |
Plug 'bling/vim-airline' | |
Plug 'elzr/vim-json' | |
Plug 'Valloric/YouCompleteMe' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } | |
Plug 'junegunn/fzf.vim' | |
call plug#end() | |
set termguicolors | |
colorscheme monokai_pro | |
let g:pymode_python = 'python3' | |
nmap <leader>t :Files<cr> | |
set secure |
Author
andybp85
commented
Jan 17, 2023
•
vim compile:
> export PYTHON_CONFIGURE_OPTS="--enable-framework"
> arch --arm64 pyenv install 3.12.3
> pyenv global 3.12.3
> python -m venv penv
> source penv/bin/activate
> ./configure --with-features=huge --enable-multibyte --enable-gtk3-check --with-python3-command=python --enable-python3interp=yes
> sudo make install
vim plug:
> vim
:PlugInstall
YouCompleteMe (use penv
created above)
> brew install cmake go
> cd .vim/plugged/YouCompleteMe/
> python install.py --all
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment