Skip to content

Instantly share code, notes, and snippets.

@redlotus
Created July 15, 2016 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redlotus/75ebc9648cc4097ddeecb79526b49365 to your computer and use it in GitHub Desktop.
Save redlotus/75ebc9648cc4097ddeecb79526b49365 to your computer and use it in GitHub Desktop.
" enable plugins
filetype on
syntax enable
" basic settings
set laststatus=2 " Always show the statusline
"set term=$TERM
set encoding=utf-8 " Necessary to show unicode glyphs
" if $TERM!="linux" " if we are not in tty
" set t_Co=256 " Tell that terminal supports 256 colors
" endif
set tabstop=4 " Number of spaces that a <Tab> in the file counts for.
set softtabstop=4 " insert/delete 4 spaces when hitting a TAB/BACKSPACE
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent.
set expandtab " insert space when hitting TABs
set shiftround " round indent to multiple of 'shiftwidth'
set autoindent " auto indentation
set cindent " c indentation
set nu " Toggle line numbering
set noruler " Display the cursor position, using powerline instead to show stats
set noswapfile " no swap files
set ignorecase " ignore case in search
set smartcase " if uppercase letter, dont ignore
" set ttyfast " yes we have fast terminal connection
set shell=zsh
set backspace=indent,eol,start " backspace behavior (indent -> eol -> start)
set backup " backup :)
set backupdir=~/.config/nvim/backup " backup directory
set pumheight=15 " limit popup menu height
call plug#begin('~/.config/nvim/plugged/')
" My Bundles here:
Plug 'rust-lang/rust.vim'
Plug 'Chiel92/vim-autoformat'
Plug 'scrooloose/nerdtree'
Plug 'majutsushi/tagbar'
"Plug 'plasticboy/vim-markdown'
Plug 'bling/vim-airline'
Plug 'Shougo/deoplete.nvim'
call plug#end()
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
" Font and color settings
set background=light
colorscheme solarized
" code folding
set foldmethod=indent
set foldlevel=99
" hilight under cursor
set cursorline " enable hilight
" hi cursorline cterm=NONE ctermbg=252
" hi cursorcolumn cterm=NONE ctermbg=252
" Complete options (disable preview scratch window)
" set completeopt = menu,menuone,longest
" SuperTab option for context aware completion
" let g:SuperTabDefaultCompletionType='context'
" set completeopt=menuone,longest,preview
" airline
let g:airline_powerline_fonts=0
" deoplete
let g:deoplete#enable_at_startup=1
" move around
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h
" keybindings
nmap <silent> <F2> :TagbarToggle<CR>
nmap <silent> <F3> :NERDTreeToggle<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment