-
-
Save zenofile/ec01e14f18956bfd8c4fbf38a42f1a7e to your computer and use it in GitHub Desktop.
My .nvimrc for Neovim
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
filetype off " required | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'Raimondi/delimitMate' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'chriskempson/base16-vim' | |
Plug 'tpope/vim-fugitive' | |
Plug 'matze/vim-move' | |
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
Plug 'fatih/vim-go', { 'for': 'go' } | |
call plug#end() | |
let base16colorspace=256 " Access colors present in 256 colorspace | |
filetype plugin indent on " required | |
syntax enable | |
set background=dark | |
hi Normal ctermbg=none | |
filetype indent on | |
" Color Scheme | |
"color gruvbox | |
" Mapping f8 for c++ compiling and executing | |
map <F8> :!g++ % && ./a.out <CR> | |
" Setting Tab and indent Widths | |
set tabstop=4 softtabstop=0 expandtab shiftwidth=4 | |
set smarttab | |
set expandtab | |
set title | |
set autoindent | |
set smartindent | |
"Highlight search results | |
set hlsearch | |
"Show current Position | |
set ruler | |
" Better Search settings | |
set incsearch | |
" Set Encoding | |
set encoding=utf8 | |
" For Line numbers | |
set number | |
" Show matching braces | |
set showmatch | |
" Highlighting current line | |
set cursorline | |
highlight CursorLine cterm=bold ctermbg=NONE ctermfg=NONE guibg=NONE guifg=NONE | |
" Set No backups | |
set nobackup | |
set nowb | |
set noswapfile | |
" Common typos | |
:command WQ wq | |
:command Wq wq | |
:command W w | |
:command Q q | |
" NERDTree shortcuts | |
map <C-n> :NERDTreeToggle<CR> | |
" Enable vim-airline | |
" set laststatus=2 | |
" let g:airline#extensions#tabline#enabled = 1 | |
" let g:airline#extensions#tabline#left_sep = ' ' | |
" let g:airline#extensions#tabline#left_alt_sep = '|' | |
" Vim Go customizations | |
let g:go_highlight_functions = 1 | |
let g:go_highlight_methods = 1 | |
let g:go_highlight_structs = 1 | |
let g:go_highlight_operators = 1 | |
let g:go_highlight_build_constraints = 1 | |
let g:go_fmt_fail_silently = 1 | |
let g:go_play_open_browser = 0 | |
"Vim move keybindings | |
let g:move_key_modifier = 'C' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment