forked from nvim-lua/kickstart.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshared.vim
More file actions
63 lines (60 loc) · 1.22 KB
/
Copy pathshared.vim
File metadata and controls
63 lines (60 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
if !has("nvim")
" Load plugins only in Vim
call plug#begin('~/.vim/plugged')
Plug 'vuciv/golf'
Plug 'tpope/vim-sensible'
"Plug 'tpope/vim-commentary'
"Plug 'preservim/nerdtree'
nnoremap <F6> :NERDTreeToggle<CR>
call plug#end()
set mouse=a
set nocompatible
set backspace=indent,eol,start
syntax on
set encoding=utf-8
set showcmd
set showmode
set hidden
set confirm
set splitbelow
set splitright
set incsearch
set hlsearch
set ignorecase
set smartcase
set autoindent
set smartindent
set termguicolors
set clipboard=unnamedplus
set undofile
endif
" These settings are not defaults, so apply always
set number relativenumber
let mapleader=" "
set nrformats-=octal
set laststatus=2
set path+=**
set scrolloff=5
set wildmenu
set pumheight=10
set complete=.,w,b,u,t,i
set complete-=i
set complete+=kspell
set completeopt=menuone,longest,preview
set ttimeout
set ttimeoutlen=250
set timeoutlen=250
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set undodir=~/.vim/undo
colorscheme lunaperche
set background=dark
" Key mappings
nnoremap <c-j> :bn<CR>
nnoremap oo o<Esc>k
nnoremap OO O<Esc>j
vnoremap K :move '<-2<CR>gv=gv
vnoremap J :move '>+1<CR>gv=gv
nnoremap <U> <nop>