-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
81 lines (69 loc) · 2 KB
/
init.vim
File metadata and controls
81 lines (69 loc) · 2 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
call plug#begin('~/.local/share/nvim/plugged')
" vim configs
set number
set mouse=a " enable mouse
set mousehide " hide when characters are typed
set showtabline=2
set ignorecase " Case sensitive search
set smartcase " Case sensitive when uc present
set nowrap " Do not wrap long lines
set clipboard=unnamed,unnamedplus
set paste " Paste from a windows or from vim
set go+=a " ??
set expandtab " Tabs are spaces, not tabs
set shiftwidth=2 " how many columns text is indented with the reindent operations (<< and >>)
set softtabstop=2 " number of spaces to use for autoindenting
Plug 'scrooloose/nerdtree'
" Status line with bufferline support
Plug 'itchyny/lightline.vim'
" A command-line fuzzy finder written in Go
Plug 'ctrlpvim/ctrlp.vim'
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux
let g:ctrlp_custom_ignore = '\v[\/](\.(git|hg|svn)|node_modules)$'
" Provides insert mode auto-completion for quotes, parens, brackets
Plug 'Raimondi/delimitMate'
let delimitMate_expand_cr = 1
" Emmet suport, remember: <C-Z>,
Plug 'mattn/emmet-vim'
let g:user_emmet_leader_key='<C-Z>'
" Show whitespaces in your code and you can strip them
Plug 'ntpeters/vim-better-whitespace'
" whitestrip on save
autocmd BufWritePre * StripWhitespace
" Move your code lines in a cool way
Plug 'matze/vim-move'
nnoremap <A-1> 1gt
vnoremap <A-1> 1gt
nnoremap <A-2> 2gt
vnoremap <A-2> 2gt
nnoremap <A-3> 3gt
vnoremap <A-3> 3gt
nnoremap <A-4> 4gt
vnoremap <A-4> 4gt
nnoremap <A-5> 5gt
vnoremap <A-5> 5gt
nnoremap <A-6> 6gt
vnoremap <A-6> 6gt
nnoremap <A-7> 7gt
vnoremap <A-7> 7gt
nnoremap <A-8> 8gt
vnoremap <A-8> 8gt
nnoremap <A-9> 9gt
vnoremap <A-9> 9gt
nnoremap <C-w> :q<CR>
vnoremap <C-w> :q<CR>
nnoremap <C-s> :w<CR>
vnoremap <C-s> :w<CR>
:map <C-z> u
:map <C-c> y
:map <C-v> p
:map <C-s> :w <Enter>
:map <C-t> :tabnew <Enter>
:map <C-f> /
:map <F3> n
:map <C-h> :%s/
" nerdtree toggle
map <C-n> :NERDTreeToggle<CR>
" Initialize plugin system
call plug#end()