forked from logan/dotfiles
Added neovim config
This commit is contained in:
parent
33a753e982
commit
d8ae4c1315
2 changed files with 33 additions and 0 deletions
2
.config/.gitignore
vendored
2
.config/.gitignore
vendored
|
@ -30,6 +30,8 @@
|
|||
!flameshot/**
|
||||
!neofetch/
|
||||
!neofetch/**
|
||||
!nvim/
|
||||
!nvim/**
|
||||
!.gitignore
|
||||
|
||||
polybar/default
|
||||
|
|
31
.config/nvim/init.vim
Normal file
31
.config/nvim/init.vim
Normal file
|
@ -0,0 +1,31 @@
|
|||
set nocompatible " choose no compatibility with legacy vi
|
||||
syntax enable
|
||||
set encoding=utf-8
|
||||
set showcmd " display incomplete commands
|
||||
filetype plugin indent on " load file type plugins + indentation
|
||||
|
||||
"" Whitespace
|
||||
set nowrap " don't wrap lines
|
||||
set tabstop=4 shiftwidth=4 " a tab is 4 spaces
|
||||
set expandtab " use spaces, not tabs
|
||||
set backspace=indent,eol,start " backspace through everything in insert mode
|
||||
autocmd BufWritePre * :%s/\s\+$//e " Trim whitespace on file save
|
||||
|
||||
"" Searching
|
||||
set hlsearch " highlight matches
|
||||
set incsearch " incremental searching
|
||||
set ignorecase " searches are case insensitive...
|
||||
set smartcase " ... unless they contain at least one capital letter
|
||||
|
||||
"" Code Editing Stuff
|
||||
set number
|
||||
""set cursorline
|
||||
|
||||
"" Copy and paste
|
||||
vnoremap <C-c> "+y
|
||||
map <C-p> "+P
|
||||
|
||||
"" Misc
|
||||
set mouse=a
|
||||
set ttyfast
|
||||
set backupdir=~/.cache/vim
|
Loading…
Reference in a new issue