-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_v2.vim
54 lines (46 loc) · 1.21 KB
/
init_v2.vim
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
syntax on
let mapleader = ","
set shell=zsh
set laststatus=2
set nowrap " don't wrap lines
set tabstop=2 " a tab is two spaces
set shiftwidth=2 " an autoindent (with <<) is two spaces
set softtabstop=2 " if we have smart tabs, treat like hard tabs
set expandtab " Use spaces instead of tags
set list " Show invisible characters
set lazyredraw
set ttyfast
set number
set textwidth=100
set colorcolumn=+1
set clipboard=unnamed " copy to system clipboard
set hlsearch
set ignorecase
set smartcase
set noswapfile
call plug#begin('~/.config/nvim/plugged')
Plug 'scrooloose/nerdtree'
Plug 'tpope/vim-commentary'
Plug 'dominikduda/vim_current_word'
Plug 'tpope/vim-endwise'
Plug 'thaerkh/vim-indentguides'
Plug 'tpope/vim-rails'
Plug 'dracula/vim', { 'as': 'dracula' }
call plug#end()
" System
nnoremap <Leader>w :w<CR>
nnoremap <Leader>q :q<CR>
nnoremap <Leader>o :only<CR>
nnoremap <CR> G
nnoremap <BS> gg
vnoremap < <gv
vnoremap > >gv
" ------------------------------------------|
" NERDtree
map <silent><leader>n :NERDTreeToggle<CR>
map <silent><leader>m :NERDTreeFind<cr>
let g:NERDTreeWinPos = "right"
" ------------------------------------------|
"
set termguicolors
color dracula