Repository navigation
Expand file tree
/
Copy path.vimrc
More file actions
73 lines (48 loc) · 2.11 KB
/
Copy path.vimrc
File metadata and controls
73 lines (48 loc) · 2.11 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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" OLD VIMRC. Moved to lua based nvim config. Check
" nvim folder
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
set noerrorbells
set shiftwidth=4
set incsearch
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
set scrolloff=8
set number
set relativenumber
set tabstop=4 softtabstop=4
set expandtab
set smartindent
"set signcolumn=yes
" New changes
filetype on
set smarttab
set autoindent
set backspace=indent,eol,start
" When using / for search, will smartly search for case sensitive and insensitive
set smartcase
set splitbelow splitright
" Reselect visual selection after indenting
vnoremap < <gv
vnoremap > >gv
"set list
"set listchars=tab:▸\ ,trail:·
set mouse=a
" #################################################################################
" Remaps
" Many ways to switch to normal mode
inoremap jk <Esc>
inoremap jj <Esc>
inoremap kj <Esc>
" Make Shift-Y behave like Shift-c or Shift-d
nnoremap Y y$
" When a mark is placed, '<letter> will mean go to the
" marked line but not column and `<letter> will mean
" go to the exact line and column.
" ` is too far away from home row.
" Now '<letter> === `<letter>
nnoremap ' `
" Easy insertion of a trailing ; or , from insert mode
imap ;; <Esc>A;<Esc>
imap ,, <Esc>A,<Esc>