Skip to content

Instantly share code, notes, and snippets.

@Goblin80
Created January 20, 2018 11:57
Show Gist options
  • Save Goblin80/33abd1c6c5304af96dd2f190ceac0b60 to your computer and use it in GitHub Desktop.
Save Goblin80/33abd1c6c5304af96dd2f190ceac0b60 to your computer and use it in GitHub Desktop.
personal (Neo)vim configuration Raw
set nocompatible " be iMproved, required
filetype off " required
syntax on
set number relativenumber
set mouse=a
"set t_Co=256
"recursive lookup when using find
set path+=**
"reduce shift usage by 90%
noremap ; :
"autocompletion in insert mode
inoremap <C-Space> <C-n>
"buffers settings
set hidden
nmap <C-Tab> :bn<CR>
"indent settings
set noautoindent
"set shiftwidth=4
set tabstop=4
"show whitespaces
set listchars=tab:>.,precedes:<
set list
"folding settings
set foldmethod=indent
set nofoldenable
nmap <F9> za
nmap <F10> zi
"NERDTree settings
"let NERDTreeMapOpenInTab='\r'
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"windows only
"let vundle_path="$APPDATA/../Local/nvim/bundle"
"set rtp+=$APPDATA/../Local/nvim/bundle/Vundle.vim
"call vundle#begin(vundle_path)
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'majutsushi/tagbar'
Plugin 'flazz/vim-colorschemes'
Plugin 'scrooloose/nerdcommenter'
Plugin 'tpope/vim-surround'
call vundle#end() " required
filetype plugin indent on " required
"NERD Commenter remap
"let mapleader=","
"set timeout timeoutlen=1500
"Theme config"
set bg=dark
"colorscheme molokai
colorscheme PaperColor
"Toggle NERDTree & Tagbar
nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR>
"Nav tabs
map <A-PageUp> :tabp<cr>
nmap <A-PageDown> :tabp<cr>
map <A-t> :tabnew<cr>
map <A-w> :tabclose<cr>
"open as tabs not buffers (avoiding -p) when opening multiple files
:tab all
"quick file save
nmap <c-s> :w<cr>
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
mkdir -p ~/.config/nvim
cat > ~/.config/nvim/init.vim << EOF
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment