-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.vim
More file actions
48 lines (42 loc) · 1.15 KB
/
init.vim
File metadata and controls
48 lines (42 loc) · 1.15 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
call plug#begin()
Plug 'junegunn/seoul256.vim'
Plug 'scrooloose/nerdtree'
Plug 'jiangmiao/auto-pairs'
Plug 'scrooloose/nerdcommenter'
Plug 'morhetz/gruvbox'
Plug 'joshdick/onedark.vim'
Plug 'tomasiser/vim-code-dark'
call plug#end()
silent! colorscheme codedark
" Toggle comment on the current line (Normal mode)
nnoremap <C-_> :call nerdcommenter#Comment(0, "toggle")<CR>
" Toggle comment on selected lines (Visual mode)
vnoremap <C-_> :call nerdcommenter#Comment(0, "toggle")<CR>
" Map Ctrl+Z to undo
nnoremap <C-z> u
inoremap <C-z> <C-o>u
" Copy selected text to system clipboard with Ctrl+C
vnoremap <C-c> "+y
" Cut selected text to system clipboard with Ctrl+X
vnoremap <C-x> "+d
" Paste from system clipboard with Ctrl+V in normal and insert mode
nnoremap <C-v> "+p
inoremap <C-v> <C-r>+
nnoremap <F3> :lua require('codeforces').show_test_case("3\n1 2 3", "6")<CR>
set nocompatible
set mouse=v
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
" set autoindent
set number
" set wildmode=longest,list
" syntax on
set mouse=a
set clipboard+=unnamedplus
set cursorline
set ttyfast
set noswapfile
nnoremap <F2> :NERDTreeToggle<CR>
let g:NERDTreeWinSize = 25