Last active
February 16, 2022 21:01
-
-
Save zabirauf/749eee26a169194fcc0c781d924cee17 to your computer and use it in GitHub Desktop.
Neovim 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
call plug#begin() | |
" Autocompletion | |
Plug 'roxma/nvim-completion-manager' | |
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer --racer-completer --omnisharp-completer --tern-completer' } | |
Plug 'ervandew/supertab' | |
Plug 'SirVer/ultisnips' | |
Plug 'honza/vim-snippets' | |
" Buffer | |
Plug 'gcmt/taboo.vim' | |
Plug 'eugen0329/vim-esearch' | |
" Plugin for the project tree | |
Plug 'scrooloose/nerdtree' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
" Plugin that asynchronously finds and replace across files | |
Plug 'brooth/far.vim' | |
" Plugin that asynchronously does linting | |
Plug 'neomake/neomake' | |
" Syntax checking plugin which is also used by rust.vim | |
Plug 'vim-syntastic/syntastic' | |
" Rust language plugin for syntax higlighting, file detection etc. | |
Plug 'rust-lang/rust.vim' | |
" Vim status bar plugin | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' "Themes for the plugin | |
" Themes for vim | |
Plug 'rakr/vim-one' | |
Plug 'tomasr/molokai' | |
" Interactive command execution | |
Plug 'Shougo/vimproc.vim', {'do' : 'make'} | |
call plug#end() | |
" Colors {{{ | |
colorscheme one | |
set background=dark | |
let g:airline_theme='one' | |
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
set termguicolors | |
" }}} Colors | |
" Spaces & Tabs {{{ | |
set tabstop=4 " number of visual spaces per TAB | |
set softtabstop=4 " number of spaces in tab when editing | |
set shiftwidth=4 " number of spaces to use for autoindent | |
set expandtab " tabs are space | |
set autoindent | |
set copyindent " copy indent from the previous line | |
" }}} Spaces & Tabs | |
" UI Config {{{ | |
set number " show line number | |
set cursorline "highlight current line | |
set wildmenu " visual autocomplete for command menu | |
set showmatch " highlight matching braces | |
set nobackup | |
set noswapfile | |
" }}} UI Config | |
" Search {{{ | |
set incsearch " search as characters are entered | |
set hlsearch " highlight match | |
set ignorecase " ignore case when searching | |
set smartcase " ignore case if search patter is lower case, case-sensitive otherwise | |
" }}} Search | |
" Leader & Mappings {{{ | |
let mapleader="," " leader is comma | |
" Split navigation key mapping | |
nnoremap <C-j> <C-w><C-j> | |
nnoremap <C-k> <C-w><C-k> | |
nnoremap <C-l> <C-w><C-l> | |
nnoremap <C-h> <C-w><C-h> | |
" Buffer mappings | |
"" Next tab | |
nnoremap <tab> :bn<CR> | |
"" Previous tab | |
nnoremap <s-tab> :bp<CR> | |
"" Kill tab | |
nnoremap <leader>bd :bd<CR> | |
"" New tab | |
nnoremap <leader><tab> :tabnew<CR> | |
"" New tab with name | |
nnoremap <leader>tb :TabooOpen | |
"" Rename current tab | |
nnoremap <leader>tr :TabooRename | |
" NERDTree mappings {{{ | |
map <C-n> :NERDTreeToggle<CR> | |
nnoremap <silent> <leader>nf :NERDTreeFind<CR> | |
" }}} NERTTree mappings | |
" NERDTree {{{ | |
let NERDTreeShowHidden=1 | |
" }}} NERDTree | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment