Last active
November 29, 2017 07:18
-
-
Save NeoTheFox/0c1eaeb0ee142e99654121bb9926cfd4 to your computer and use it in GitHub Desktop.
My NeoVim 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
set nocompatible " be iMproved, required | |
filetype off " required | |
set termguicolors | |
set clipboard=unnamedplus | |
syntax on | |
set nu | |
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_en | |
autocmd BufRead,BufNewFile *.txt setlocal spell spelllang=ru_ru | |
"PLUGINS | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'zchee/deoplete-clang' | |
Plug 'zchee/deoplete-jedi' | |
Plug 'sebastianmarkow/deoplete-rust' | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'iCyMind/NeoSolarized' | |
Plug 'scrooloose/nerdtree' | |
Plug 'tpope/vim-surround' | |
Plug 'Yggdroot/indentLine' | |
Plug 'neomake/neomake' | |
Plug 'chriskempson/vim-tomorrow-theme' | |
Plug 'reedes/vim-pencil' | |
Plug 'kshenoy/vim-signature' | |
Plug 'pangloss/vim-javascript' | |
Plug 'lervag/vimtex' | |
Plug 'vim-scripts/a.vim' | |
Plug 'lifepillar/vim-solarized8' | |
Plug 'rust-lang/rust.vim' | |
Plug 'quabug/vim-gdscript' | |
call plug#end() | |
" Idents | |
" Vim | |
let g:indentLine_color_term = 239 | |
"GVim | |
let g:indentLine_color_gui = '#A4E57E' | |
let g:indentLine_char = '¦' | |
"Solarized" | |
" set background=dark | |
colorscheme solarized8_dark | |
" let g:ariline#theme = solarized | |
"Add sudo write | |
command W :execute ':silent w !sudo tee % > /dev/null' | :edit! | |
"Enable Deoplete | |
let g:deoplete#enable_at_startup = 1 | |
if !exists('g:deoplete#omni#input_patterns') | |
let g:deoplete#omni#input_patterns = {} | |
endif | |
" let g:deoplete#disable_auto_complete = 1 | |
autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif | |
inoremap <expr><tab> pumvisible() ? "\<c-n>" : "\<tab>" | |
let g:deoplete#sources#clang#libclang_path = '/usr/lib/libclang.so' | |
let g:deoplete#sources#clang#clang_header = '/usr/include/clang' | |
let g:deoplete#sources#rust#racer_binary='/usr/bin/racer' | |
let g:deoplete#sources#rust#rust_source_path='/usr/src/rust/src/' | |
"NeoMake | |
autocmd! BufWritePost *.cpp Neomake | |
autocmd! BufWritePost *.hpp Neomake | |
"Make it more friendly to cyrillic (phonetic layout) | |
set langmap=яq,вw,еe,рr,тt,ыy,иi,оo,пp,ш[,щ],э\\,аa,сs,дd,фf,гg,чh,йj,кk,лl,зz,хx,цc,жv,бb,нn,мm,ю`,ь=,ЯQ,ВW,ЕE,РR,ТT,ЫY,ИI,ОO,ПP,Ш{,Щ},Э\|,АA,СS,ДD,ФF,ГG,ЧH,ЙJ,КK,ЛL,ЗZ,ХX,ЦC,ЖV,БB,НN,МM,Ю~,Ь+ | |
"Word processor mode | |
func! WordProcessorMode() | |
setlocal formatoptions=1 | |
setlocal noexpandtab | |
map j gj | |
map k gk | |
setlocal spell spelllang=en_us | |
"set thesaurus+=/Users/sbrown/.vim/thesaurus/mthesaur.txt | |
set complete+=s | |
set formatprg=par | |
setlocal wrap | |
setlocal linebreak | |
endfu | |
com! WP call WordProcessorMode() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment