Skip to content

Instantly share code, notes, and snippets.

@wsrast
Created May 14, 2020 19:00
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 wsrast/6a3c772383b6a02b9bc272ffe10b7b55 to your computer and use it in GitHub Desktop.
Save wsrast/6a3c772383b6a02b9bc272ffe10b7b55 to your computer and use it in GitHub Desktop.
nvim settings
set history=700
set nocp
color delek
syntax on
set autoindent
set backup
set backupdir=~/vim/tmp
set bg=dark
set clipboard=unnamedplus
set cmdheight=2
set hlsearch
set ignorecase
set laststatus=2
set lbr
set noexpandtab
set number
set ruler
set scrolloff=5
set shiftwidth=2
set showmode
set showcmd
set smartcase
set smartindent
set tabstop=2
set wrap
set packpath^=~/.vim
set runtimepath^=~/.vim
" --- Plugins ---
execute pathogen#infect()
if exists ('g:vscode')
" VS Code Extensions
else
" Neovim Extensions
syntax on
autocmd vimenter * NERDTree
" Go to previous (last accessed) window
autocmd VimEnter * wincmd p
" map Ctrl-n to open NERDTree
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
endif
" --- Keybinds
nnoremap <c-h> <c-w>h
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nnoremap <c-l> <c-w>l
nnoremap <c-\> <c-w>w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment