add neovim settings
This commit is contained in:
parent
c345178961
commit
3775a67a98
20
.vimrc
20
.vimrc
|
@ -1,19 +1,30 @@
|
||||||
set nocompatible
|
set nocompatible
|
||||||
filetype off
|
filetype off
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
set rtp+=~/.config/nvim/bundle/Vundle.vim
|
||||||
|
call vundle#begin('~/.config/nvim/bundle')
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
Plugin 'tomasr/molokai'
|
Plugin 'chriskempson/base16-vim'
|
||||||
Plugin 'godlygeek/tabular'
|
Plugin 'godlygeek/tabular'
|
||||||
Plugin 'plasticboy/vim-markdown'
|
Plugin 'plasticboy/vim-markdown'
|
||||||
Plugin 'itchyny/lightline.vim'
|
Plugin 'itchyny/lightline.vim'
|
||||||
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
Plugin 'tpope/vim-surround'
|
||||||
|
Plugin 'scrooloose/nerdtree'
|
||||||
|
Plugin 'scrooloose/nerdcommenter'
|
||||||
|
Plugin 'ctrlpvim/ctrlp.vim'
|
||||||
|
Plugin 'othree/html5.vim'
|
||||||
|
Plugin 'tpope/vim-haml'
|
||||||
|
Plugin 'junegunn/fzf'
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
|
|
||||||
syntax enable
|
syntax enable
|
||||||
set background=dark
|
set background=dark
|
||||||
colorscheme apprentice
|
set termguicolors
|
||||||
|
colorscheme base16-default-dark
|
||||||
hi Search cterm=NONE ctermfg=white ctermbg=red
|
hi Search cterm=NONE ctermfg=white ctermbg=red
|
||||||
hi clear SpecialKey
|
hi clear SpecialKey
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
"Disable vi-compatible backspace behavior
|
"Disable vi-compatible backspace behavior
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
@ -98,6 +109,7 @@ inoremap <buffer><Insert> <nop>
|
||||||
inoremap <buffer><End> <nop>
|
inoremap <buffer><End> <nop>
|
||||||
|
|
||||||
nnoremap ; :
|
nnoremap ; :
|
||||||
|
nnoremap <Leader>b :buffers<CR>:buffer<Space>
|
||||||
|
|
||||||
"Toggle line numbering
|
"Toggle line numbering
|
||||||
nmap <Leader>n :setlocal number!<CR>
|
nmap <Leader>n :setlocal number!<CR>
|
||||||
|
@ -108,6 +120,7 @@ map <C-J> :bnext<CR>
|
||||||
map <C-K> :bprev<CR>
|
map <C-K> :bprev<CR>
|
||||||
map <C-L> :tabn<CR>
|
map <C-L> :tabn<CR>
|
||||||
map <C-H> :tabp<CR>
|
map <C-H> :tabp<CR>
|
||||||
|
map <C-O> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
"Delete single characters without updating the default register
|
"Delete single characters without updating the default register
|
||||||
noremap x "_x
|
noremap x "_x
|
||||||
|
@ -127,7 +140,6 @@ set nofoldenable
|
||||||
|
|
||||||
set grepprg=grep\ -nH\ $*
|
set grepprg=grep\ -nH\ $*
|
||||||
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
let g:powerline_pycmd = "py3"
|
let g:powerline_pycmd = "py3"
|
||||||
let loaded_matchparen = 1
|
let loaded_matchparen = 1
|
||||||
|
|
Loading…
Reference in New Issue